ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PhotonIDMod.h
(Generate patch)

Comparing UserCode/MitPhysics/Mods/interface/PhotonIDMod.h (file contents):
Revision 1.8 by ceballos, Wed Apr 15 17:53:14 2009 UTC vs.
Revision 1.16 by bendavid, Tue Apr 12 22:14:21 2011 UTC

# Line 13 | Line 13
13   #define MITPHYSICS_MODS_PHOTONIDMOD_H
14  
15   #include "MitAna/TreeMod/interface/BaseMod.h"
16 < #include "MitAna/DataTree/interface/Collections.h"
16 > #include "MitAna/DataTree/interface/PhotonFwd.h"
17 > #include "MitAna/DataTree/interface/TrackCol.h"
18 > #include "MitAna/DataTree/interface/BeamSpotCol.h"
19 > #include "MitAna/DataTree/interface/PileupEnergyDensityCol.h"
20 > #include "MitAna/DataTree/interface/DecayParticleCol.h"
21 > #include "MitAna/DataTree/interface/ElectronCol.h"
22  
23   namespace mithep
24   {
# Line 23 | Line 28 | namespace mithep
28        PhotonIDMod(const char *name="PhotonIDMod",
29                    const char *title="Photon identification module");
30  
31 +      Bool_t              GetApplySpikeRemoval()      const { return fApplySpikeRemoval;   }
32        Bool_t              GetApplyPixelSeed()         const { return fApplyPixelSeed;      }
33        const char         *GetGoodName()               const { return GetGoodPhotonsName(); }  
34        const char         *GetGoodPhotonsName()        const { return fGoodPhotonsName;     }  
# Line 32 | Line 38 | namespace mithep
38        const char         *GetIsoType()                const { return fPhotonIsoType;       }
39        const char         *GetOutputName()             const { return GetGoodPhotonsName(); }  
40        Double_t            GetPtMin()                  const { return fPhotonPtMin;         }
41 +      Bool_t              GetApplyFiduciality()       const { return fFiduciality;         }
42 +      Double_t            GetEtaWidthEB()             const { return fEtaWidthEB;          }
43 +      Double_t            GetEtaWidthEE()             const { return fEtaWidthEE;          }
44 +      Double_t            GetAbsEtaMax()              const { return fAbsEtaMax;           }
45 +      void                SetApplySpikeRemoval(Bool_t b)    { fApplySpikeRemoval  = b;     }
46        void                SetApplyPixelSeed(Bool_t b)       { fApplyPixelSeed  = b;        }
47 +      void                SetApplyElectronVeto(Bool_t b)    { fApplyElectronVeto = b;      }
48 +      void                SetApplyElectronVetoConvRecovery(Bool_t b) { fApplyElectronVetoConvRecovery = b; }
49 +      void                SetApplyConversionId(Bool_t b)    { fApplyConversionId = b;      }
50 +      void                SetApplyTriggerMatching(Bool_t b)      { fApplyTriggerMatching = b;  }      
51        void                SetGoodName(const char *n)        { SetGoodPhotonsName(n);       }  
52        void                SetGoodPhotonsName(const char *n) { fGoodPhotonsName = n;        }  
53        void                SetHadOverEmMax(Double_t hoe)     { fHadOverEmMax    = hoe;      }
54        void                SetIDType(const char *type)       { fPhotonIDType    = type;     }
55        void                SetInputName(const char *n)       { fPhotonBranchName= n;        }  
56 +      void                SetTrackName(const char *n)       { fTrackBranchName = n;        }  
57 +      void                SetBeamspotName(const char *n)    { fBeamspotBranchName = n;     }  
58        void                SetIsoType(const char *type)      { fPhotonIsoType   = type;     }
59        void                SetOutputName(const char *n)      { SetGoodPhotonsName(n);       }    
60        void                SetPtMin(Double_t pt)             { fPhotonPtMin     = pt;       }
61 <      void                SetR9Min(Double_t x)              { fPhotonR9Min     = x;       }
62 <
61 >      void                SetR9Min(Double_t x)              { fPhotonR9Min     = x;        }
62 >      void                SetEtaWidthEB(Double_t x)         { fEtaWidthEB      = x;        }
63 >      void                SetEtaWidthEE(Double_t x)         { fEtaWidthEE      = x;        }
64 >      void                SetAbsEtaMax(Double_t x)          { fAbsEtaMax       = x;        }
65 >      void                SetApplyR9Min(Bool_t b)           { fApplyR9Min      = b;        }
66 >      void                SetEffAreas(Double_t ecal, Double_t hcal, Double_t track) {
67 >        fEffAreaEcal = ecal; fEffAreaHcal = hcal; fEffAreaTrack = track;}
68 >      void                SetTriggerObjectsName(const char *n)   { fTrigObjectsName = n;       }
69 >        
70 >    
71 >    
72        enum EPhIdType {
73          kIdUndef = 0,       //not defined
74          kTight,             //"Tight"
# Line 54 | Line 80 | namespace mithep
80          kIsoUndef = 0,      //not defined        
81          kNoIso,             //"NoIso"
82          kCombinedIso,       //"CombinedIso"
83 <        kCustomIso          //"Custom"
83 >        kCustomIso,         //"Custom"
84 >        kMITPUCorrected     //PileUp Corrected Hgg Isolation
85        };
86  
87      protected:
# Line 63 | Line 90 | namespace mithep
90  
91        TString             fPhotonBranchName;     //name of photon collection (input)
92        TString             fGoodPhotonsName;      //name of exported "good photon" collection
93 +      TString             fTrackBranchName;      // name of the track collection (only needed for PU corrected isolation)
94 +      TString             fBeamspotBranchName;   //name of the Beamspot collection (only needed for PU corrected isolation)
95 +      TString             fPileUpDenName;        //name of the PU density collection      
96 +      TString             fConversionName;       //name of conversion branch
97 +      TString             fElectronName;
98 +      TString             fTrigObjectsName;        //name of trigger object collection      
99        TString             fPhotonIDType;         //type of photon identification we impose
100        TString             fPhotonIsoType;        //type of photon isolation we impose
101        Double_t            fPhotonPtMin;          //min pt cut
102        Double_t            fHadOverEmMax;         //maximum of hadronic/em energy
103 +      Bool_t              fApplySpikeRemoval;    //whether apply spike removal      
104        Bool_t              fApplyPixelSeed;       //=true then apply pixel seed constraint
105 +      Bool_t              fApplyElectronVeto;    //=true then apply electron veto (with no conversion recovery)
106 +      Bool_t              fApplyElectronVetoConvRecovery; //=true then apply electron veto with conversion recovery
107 +      Bool_t              fApplyConversionId;    //=true then apply conversion id cuts
108 +      Bool_t              fApplyTriggerMatching;   //match to hlt photon (default=0)      
109        Double_t            fPhotonR9Min;          //min R9 value
72      const PhotonCol    *fPhotons;              //!photon branch
110        EPhIdType           fPhIdType;             //!identification scheme
111        EPhIsoType          fPhIsoType;            //!isolation scheme
112 <    
112 >      Bool_t              fFiduciality;          //=true then apply fiducual requirement
113 >      Double_t            fEtaWidthEB;           //max Eta Width in ECAL Barrel
114 >      Double_t            fEtaWidthEE;           //max Eta Width in ECAL End Cap
115 >      Double_t            fAbsEtaMax;            //max Abs Eta
116 >      Bool_t              fApplyR9Min;           //apply R9 min
117 >      Double_t            fEffAreaEcal;
118 >      Double_t            fEffAreaHcal;
119 >      Double_t            fEffAreaTrack;
120 >      const PhotonCol    *fPhotons;              //!photon branch
121 >      const TrackCol     *fTracks;               //!track branch
122 >      const BeamSpotCol  *fBeamspots;            //!beamspot branch    
123 >      const PileupEnergyDensityCol *fPileUpDen;  //!rho branch
124 >      const DecayParticleCol *fConversions;      //!conversion branch
125 >      const ElectronCol  *fElectrons;            //!electron branch
126 >
127 >
128      ClassDef(PhotonIDMod, 1) // Photon identification module
129    };
130   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines