Fork me on GitHub

Ignore:
Timestamp:
Mar 11, 2009, 12:55:49 PM (16 years ago)
Author:
Xavier Rouby
Message:

better constructors for muon/electron/photon. IsolPt and EtRatio added for muons/electrons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/ExRootAnalysis/interface/BlockClasses.h

    r318 r323  
    209209public:
    210210  TRootGenParticle() {_initialised=false;}
     211  TRootGenParticle(const int pid): PID(pid) {_initialised=false;}
    211212  TRootGenParticle(GenParticle* part);
    212213
     
    243244//------------------------------------------------------------------------------
    244245
    245 class TRootElectron: public TRootParticle
    246 {
    247 public:
    248   TRootElectron() {};
     246class TRootElectron: public TRootParticle {
     247public:
     248  TRootElectron():Charge(-999), IsolFlag(false), IsolPt(UNDEFINED), EtaCalo(UNDEFINED), PhiCalo(UNDEFINED), EHoverEE(UNDEFINED){};
     249  static TCompare *fgCompare; //!
    249250  int Charge; // particle Charge [RawHepEventParticle::pid()]
    250   static TCompare *fgCompare; //!
    251 
     251  bool IsolFlag; // stores the result of the isolation test
     252  float IsolPt;  // sum of pt around the electron, for isolation criteria
    252253  float EtaCalo; // particle pseudorapidity when entering the calo,
    253254  float PhiCalo; // particle azimuthal angle in rad when entering the calo
     255  float EHoverEE;
     256
    254257  void SetEtaPhiCalo(const float eta, const float phi) {EtaCalo=eta; PhiCalo=phi;};
    255258
    256   float EHoverEE;
    257   bool IsolFlag;
    258 
    259259  ClassDef(TRootElectron, 1)
    260260};
     
    262262//------------------------------------------------------------------------------
    263263
    264 class TRootPhoton: public TRootParticle
    265 {
    266 public:
    267   TRootPhoton() {};
     264class TRootPhoton: public TRootParticle {
     265public:
     266  TRootPhoton() : EHoverEE(UNDEFINED) {};
    268267  static TCompare *fgCompare; //!
    269268
     
    275274//------------------------------------------------------------------------------
    276275
    277 class TRootMuon: public TRootParticle
    278 {
    279 public:
    280   TRootMuon() {};
     276class TRootMuon: public TRootParticle {
     277public:
     278  TRootMuon():Charge(-999), IsolFlag(false), IsolPt(UNDEFINED), EtaCalo(UNDEFINED), PhiCalo(UNDEFINED),
     279              EHoverEE(UNDEFINED), EtRatio(UNDEFINED) {};
     280  static TCompare *fgCompare; //!
    281281  int Charge; // particle Charge [RawHepEventParticle::pid()]
    282282  bool IsolFlag;
     283  float IsolPt;
    283284  float EtaCalo; // particle pseudorapidity when entering the calo,
    284285  float PhiCalo; // particle azimuthal angle in rad when entering the calo
     286  float EHoverEE; // hadronic energy over electromagnetic energy
     287  float EtRatio;  // calo Et in NxN-tower grid around the muon over the muon Et
     288
    285289  void SetEtaPhiCalo(const float eta, const float phi) {EtaCalo=eta; PhiCalo=phi;};
    286 
    287   float EHoverEE;
    288   static TCompare *fgCompare; //!
    289 
    290290  ClassDef(TRootMuon, 1)
    291291};
Note: See TracChangeset for help on using the changeset viewer.