fastjet 2.4.5
ConeJetInfo.hpp
Go to the documentation of this file.
00001 #ifndef D0RunIIconeJets_CONEJETINFO_HPP
00002 #define D0RunIIconeJets_CONEJETINFO_HPP
00003 
00004 // --------------------------------------------------------------------------
00005 // ConeJetInfo.hpp
00006 // Purpose: Hold informations about the cone jets that do not fit into
00007 //   a CalTClusterChunk/IntEclusterChunk.
00008 //
00009 // Created: Laurent Duflot 31-JUL-2000
00010 //
00011 // Modified:
00012 //  09-Aug-2000 Laurent Duflot
00013 //   + add initial jet ET (i.e. before split/merge) 
00014 //    1-May-2007 Lars Sonnenschein
00015 //    extracted from D0 software framework and modified to remove subsequent dependencies
00016 // --------------------------------------------------------------------------
00017 
00018 //#define CONEJET_SPLITMERGE_MOD 100
00019 
00020 #include <fastjet/internal/base.hh>
00021 
00022 FASTJET_BEGIN_NAMESPACE
00023 
00024 namespace d0{
00025 
00026 namespace D0RunIIconeJets_CONEJETINFO {
00027 
00028 const int CONEJET_SPLITMERGE_MOD = 100;
00029 
00030 class ConeJetInfo
00031 {
00032 public:
00033   ConeJetInfo(): _seedET(0.), _initial_jet_ET(0.), _nb_split_merge(0) {};
00034   ConeJetInfo( float seedET): _seedET(seedET),  _nb_split_merge(0) {}; 
00035   ConeJetInfo( float seedET, float initialET, int nb_split, int nb_merge): 
00036     _seedET(seedET), _initial_jet_ET(initialET), 
00037     _nb_split_merge(nb_merge + CONEJET_SPLITMERGE_MOD*nb_split) {};
00038   ~ConeJetInfo() {};
00039 
00040   float seedET() const {return _seedET;};
00041   float initialET() const { return _initial_jet_ET; };
00042   int nbSplit() const {return _nb_split_merge/CONEJET_SPLITMERGE_MOD;};
00043   int nbMerge() const {return _nb_split_merge%CONEJET_SPLITMERGE_MOD;};
00044   int SplitMergeWord() const {return _nb_split_merge;};
00045 
00046   void initialET(float ET) { _initial_jet_ET = ET;};
00047   void splitted() { _nb_split_merge += CONEJET_SPLITMERGE_MOD;};
00048   void merged() { _nb_split_merge += 1;};
00049 
00050 
00051 private:
00052   float _seedET;
00053   float _initial_jet_ET;  // stable cone ET before split/merge
00054   int _nb_split_merge;
00055   
00056 };
00057 
00058 }
00059 
00060 }  // namespace d0
00061 
00062 FASTJET_END_NAMESPACE
00063 
00064 #endif
00065 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines