FastJet 3.0.2
ConeJetInfo.hpp
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 // This file is distributed with FastJet under the terms of the GNU
00019 // General Public License (v2). Permission to do so has been granted
00020 // by Lars Sonnenschein and the D0 collaboration (see COPYING for
00021 // details)
00022 //
00023 // History of Changes in FastJet compared tothe original version of
00024 // ConeJetInfo.hpp
00025 //
00026 // 2011-12-13  Gregory Soyez  <soyez@fastjet.fr>
00027 // 
00028 //        * added license information
00029 //
00030 // 2011-11-14  Gregory Soyez  <soyez@fastjet.fr>
00031 //
00032 //         * changed the name of a few parameters to avoid a gcc
00033 //           -Wshadow warning
00034 //
00035 // 2009-01-17  Gregory Soyez  <soyez@fastjet.fr>
00036 //
00037 //        * put the code in the fastjet::d0 namespace
00038 //
00039 // --------------------------------------------------------------------------
00040 
00041 
00042 //#define CONEJET_SPLITMERGE_MOD 100
00043 
00044 #include <fastjet/internal/base.hh>
00045 
00046 FASTJET_BEGIN_NAMESPACE
00047 
00048 namespace d0{
00049 
00050 namespace D0RunIIconeJets_CONEJETINFO {
00051 
00052 const int CONEJET_SPLITMERGE_MOD = 100;
00053 
00054 class ConeJetInfo
00055 {
00056 public:
00057   ConeJetInfo(): _seedET(0.), _initial_jet_ET(0.), _nb_split_merge(0) {};
00058   ConeJetInfo( float seedET_in): _seedET(seedET_in),  _nb_split_merge(0) {}; 
00059   ConeJetInfo( float seedET_in, float initialET_in, int nb_split, int nb_merge): 
00060     _seedET(seedET_in), _initial_jet_ET(initialET_in), 
00061     _nb_split_merge(nb_merge + CONEJET_SPLITMERGE_MOD*nb_split) {};
00062   ~ConeJetInfo() {};
00063 
00064   float seedET() const {return _seedET;};
00065   float initialET() const { return _initial_jet_ET; };
00066   int nbSplit() const {return _nb_split_merge/CONEJET_SPLITMERGE_MOD;};
00067   int nbMerge() const {return _nb_split_merge%CONEJET_SPLITMERGE_MOD;};
00068   int SplitMergeWord() const {return _nb_split_merge;};
00069 
00070   void initialET(float ET) { _initial_jet_ET = ET;};
00071   void splitted() { _nb_split_merge += CONEJET_SPLITMERGE_MOD;};
00072   void merged() { _nb_split_merge += 1;};
00073 
00074 
00075 private:
00076   float _seedET;
00077   float _initial_jet_ET;  // stable cone ET before split/merge
00078   int _nb_split_merge;
00079   
00080 };
00081 
00082 }
00083 
00084 }  // namespace d0
00085 
00086 FASTJET_END_NAMESPACE
00087 
00088 #endif
00089 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends