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.14 by bendavid, Tue Feb 1 17:02:21 2011 UTC vs.
Revision 1.17 by fabstoec, Tue Apr 19 09:13:37 2011 UTC

# Line 14 | Line 14
14  
15   #include "MitAna/TreeMod/interface/BaseMod.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 39 | Line 44 | namespace mithep
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;       }
# Line 52 | Line 63 | namespace mithep
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 <
66 >      void                SetEffAreas(Double_t ecal, Double_t hcal, Double_t track) {
67 >        fEffAreaEcalEE = ecal; fEffAreaHcalEE = hcal; fEffAreaTrackEE = track;
68 >        fEffAreaEcalEB = ecal; fEffAreaHcalEB = hcal; fEffAreaTrackEB = track;
69 >      }
70 >      void                SetEffAreasEEEB(Double_t ecalEE, Double_t hcalEE, Double_t trackEE,
71 >                                          Double_t ecalEB, Double_t hcalEB, Double_t trackEB) {
72 >        fEffAreaEcalEE = ecalEE; fEffAreaHcalEE = hcalEE; fEffAreaTrackEE = trackEE;
73 >        fEffAreaEcalEB = ecalEB; fEffAreaHcalEB = hcalEB; fEffAreaTrackEB = trackEB;
74 >      }
75 >      void                SetTriggerObjectsName(const char *n)   { fTrigObjectsName = n;       }
76 >    
77        enum EPhIdType {
78          kIdUndef = 0,       //not defined
79          kTight,             //"Tight"
# Line 64 | Line 85 | namespace mithep
85          kIsoUndef = 0,      //not defined        
86          kNoIso,             //"NoIso"
87          kCombinedIso,       //"CombinedIso"
88 <        kCustomIso          //"Custom"
88 >        kCustomIso,         //"Custom"
89 >        kMITPUCorrected     //PileUp Corrected Hgg Isolation
90        };
91  
92      protected:
# Line 73 | Line 95 | namespace mithep
95  
96        TString             fPhotonBranchName;     //name of photon collection (input)
97        TString             fGoodPhotonsName;      //name of exported "good photon" collection
98 +      TString             fTrackBranchName;      // name of the track collection (only needed for PU corrected isolation)
99 +      TString             fBeamspotBranchName;   //name of the Beamspot collection (only needed for PU corrected isolation)
100 +      TString             fPileUpDenName;        //name of the PU density collection      
101 +      TString             fConversionName;       //name of conversion branch
102 +      TString             fElectronName;
103 +      TString             fTrigObjectsName;        //name of trigger object collection      
104        TString             fPhotonIDType;         //type of photon identification we impose
105        TString             fPhotonIsoType;        //type of photon isolation we impose
106        Double_t            fPhotonPtMin;          //min pt cut
107        Double_t            fHadOverEmMax;         //maximum of hadronic/em energy
108        Bool_t              fApplySpikeRemoval;    //whether apply spike removal      
109        Bool_t              fApplyPixelSeed;       //=true then apply pixel seed constraint
110 +      Bool_t              fApplyElectronVeto;    //=true then apply electron veto (with no conversion recovery)
111 +      Bool_t              fApplyElectronVetoConvRecovery; //=true then apply electron veto with conversion recovery
112 +      Bool_t              fApplyConversionId;    //=true then apply conversion id cuts
113 +      Bool_t              fApplyTriggerMatching;   //match to hlt photon (default=0)      
114        Double_t            fPhotonR9Min;          //min R9 value
115        EPhIdType           fPhIdType;             //!identification scheme
116        EPhIsoType          fPhIsoType;            //!isolation scheme
# Line 87 | Line 119 | namespace mithep
119        Double_t            fEtaWidthEE;           //max Eta Width in ECAL End Cap
120        Double_t            fAbsEtaMax;            //max Abs Eta
121        Bool_t              fApplyR9Min;           //apply R9 min
122 +      Double_t            fEffAreaEcalEE;
123 +      Double_t            fEffAreaHcalEE;
124 +      Double_t            fEffAreaTrackEE;
125 +      Double_t            fEffAreaEcalEB;
126 +      Double_t            fEffAreaHcalEB;
127 +      Double_t            fEffAreaTrackEB;
128        const PhotonCol    *fPhotons;              //!photon branch
129 <    
129 >      const TrackCol     *fTracks;               //!track branch
130 >      const BeamSpotCol  *fBeamspots;            //!beamspot branch    
131 >      const PileupEnergyDensityCol *fPileUpDen;  //!rho branch
132 >      const DecayParticleCol *fConversions;      //!conversion branch
133 >      const ElectronCol  *fElectrons;            //!electron branch
134 >
135 >
136      ClassDef(PhotonIDMod, 1) // Photon identification module
137    };
138   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines