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.22 by bendavid, Wed Aug 3 17:15:43 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 > #include "MitAna/DataTree/interface/VertexCol.h"
23 > #include "MitAna/DataTree/interface/DecayParticleCol.h"
24 > #include "MitAna/DataTree/interface/PileupInfoCol.h"
25 > #include "MitAna/DataTree/interface/MCParticleCol.h"
26  
27   namespace mithep
28   {
# Line 23 | Line 32 | namespace mithep
32        PhotonIDMod(const char *name="PhotonIDMod",
33                    const char *title="Photon identification module");
34  
35 +      Bool_t              GetApplySpikeRemoval()      const { return fApplySpikeRemoval;   }
36        Bool_t              GetApplyPixelSeed()         const { return fApplyPixelSeed;      }
37        const char         *GetGoodName()               const { return GetGoodPhotonsName(); }  
38        const char         *GetGoodPhotonsName()        const { return fGoodPhotonsName;     }  
# Line 32 | Line 42 | namespace mithep
42        const char         *GetIsoType()                const { return fPhotonIsoType;       }
43        const char         *GetOutputName()             const { return GetGoodPhotonsName(); }  
44        Double_t            GetPtMin()                  const { return fPhotonPtMin;         }
45 +      Bool_t              GetApplyFiduciality()       const { return fFiduciality;         }
46 +      Double_t            GetEtaWidthEB()             const { return fEtaWidthEB;          }
47 +      Double_t            GetEtaWidthEE()             const { return fEtaWidthEE;          }
48 +      Double_t            GetAbsEtaMax()              const { return fAbsEtaMax;           }
49 +      void                SetApplySpikeRemoval(Bool_t b)    { fApplySpikeRemoval  = b;     }
50        void                SetApplyPixelSeed(Bool_t b)       { fApplyPixelSeed  = b;        }
51 +      void                SetApplyElectronVeto(Bool_t b)    { fApplyElectronVeto = b;      }
52 +      void                SetInvertElectronVeto(Bool_t b)   { fInvertElectronVeto = b;     }      
53 +      void                SetApplyElectronVetoConvRecovery(Bool_t b) { fApplyElectronVetoConvRecovery = b; }
54 +      void                SetApplyConversionId(Bool_t b)    { fApplyConversionId = b;      }
55 +      void                SetApplyTriggerMatching(Bool_t b)      { fApplyTriggerMatching = b;  }      
56        void                SetGoodName(const char *n)        { SetGoodPhotonsName(n);       }  
57        void                SetGoodPhotonsName(const char *n) { fGoodPhotonsName = n;        }  
58        void                SetHadOverEmMax(Double_t hoe)     { fHadOverEmMax    = hoe;      }
59        void                SetIDType(const char *type)       { fPhotonIDType    = type;     }
60        void                SetInputName(const char *n)       { fPhotonBranchName= n;        }  
61 +      void                SetTrackName(const char *n)       { fTrackBranchName = n;        }  
62 +      void                SetBeamspotName(const char *n)    { fBeamspotBranchName = n;     }  
63        void                SetIsoType(const char *type)      { fPhotonIsoType   = type;     }
64        void                SetOutputName(const char *n)      { SetGoodPhotonsName(n);       }    
65        void                SetPtMin(Double_t pt)             { fPhotonPtMin     = pt;       }
66 <      void                SetR9Min(Double_t x)              { fPhotonR9Min     = x;       }
66 >      void                SetR9Min(Double_t x)              { fPhotonR9Min     = x;        }
67 >      void                SetEtaWidthEB(Double_t x)         { fEtaWidthEB      = x;        }
68 >      void                SetEtaWidthEE(Double_t x)         { fEtaWidthEE      = x;        }
69 >      void                SetAbsEtaMax(Double_t x)          { fAbsEtaMax       = x;        }
70 >      void                SetApplyR9Min(Bool_t b)           { fApplyR9Min      = b;        }
71 >      void                SetApplyFiduciality(Bool_t b)     { fFiduciality = b;            }      
72 >      void                SetEffAreas(Double_t ecal, Double_t hcal, Double_t track) {
73 >        fEffAreaEcalEE = ecal; fEffAreaHcalEE = hcal; fEffAreaTrackEE = track;
74 >        fEffAreaEcalEB = ecal; fEffAreaHcalEB = hcal; fEffAreaTrackEB = track;
75 >      }
76 >      void                SetEffAreasEEEB(Double_t ecalEE, Double_t hcalEE, Double_t trackEE,
77 >                                          Double_t ecalEB, Double_t hcalEB, Double_t trackEB) {
78 >        fEffAreaEcalEE = ecalEE; fEffAreaHcalEE = hcalEE; fEffAreaTrackEE = trackEE;
79 >        fEffAreaEcalEB = ecalEB; fEffAreaHcalEB = hcalEB; fEffAreaTrackEB = trackEB;
80 >      }
81 >      void                SetTriggerObjectsName(const char *n)   { fTrigObjectsName = n;       }
82 >    
83 >    void                SetPVName(const char *n)          { fPVName = n;                 }
84 >    void                SetPVFromBranch(bool b)           { fPVFromBranch = b;           }
85 >    void                SetIsData (Bool_t b) { fIsData = b;};
86 >    void                SetGoodElectronsFromBranch(Bool_t b) { fGoodElectronsFromBranch = b; }
87 >    void                SetGoodElectronName(TString name) { fGoodElectronName = name; }
88  
89        enum EPhIdType {
90          kIdUndef = 0,       //not defined
91          kTight,             //"Tight"
92          kLoose,             //"Loose"
93          kLooseEM,           //"LooseEM"
94 +        kBaseLineCiC,        //"2011" Hgg BaseLine CiC
95          kCustomId           //"Custom"
96        };
97 +
98        enum EPhIsoType {
99          kIsoUndef = 0,      //not defined        
100          kNoIso,             //"NoIso"
101          kCombinedIso,       //"CombinedIso"
102 <        kCustomIso          //"Custom"
102 >        kCustomIso,         //"Custom"
103 >        kMITPUCorrected     //PileUp Corrected Hgg Isolation
104        };
105  
106      protected:
# Line 63 | Line 109 | namespace mithep
109  
110        TString             fPhotonBranchName;     //name of photon collection (input)
111        TString             fGoodPhotonsName;      //name of exported "good photon" collection
112 +      TString             fTrackBranchName;      // name of the track collection (only needed for PU corrected isolation)
113 +      TString             fBeamspotBranchName;   //name of the Beamspot collection (only needed for PU corrected isolation)
114 +      TString             fPileUpDenName;        //name of the PU density collection      
115 +      TString             fConversionName;       //name of conversion branch
116 +      TString             fElectronName;
117 +      TString             fGoodElectronName;
118 +      TString             fTrigObjectsName;        //name of trigger object collection
119 +      TString             fPVName;
120 +      TString             fMCParticleName;
121 +      TString             fPileUpName;
122        TString             fPhotonIDType;         //type of photon identification we impose
123        TString             fPhotonIsoType;        //type of photon isolation we impose
124        Double_t            fPhotonPtMin;          //min pt cut
125        Double_t            fHadOverEmMax;         //maximum of hadronic/em energy
126 +      Bool_t              fApplySpikeRemoval;    //whether apply spike removal      
127        Bool_t              fApplyPixelSeed;       //=true then apply pixel seed constraint
128 +      Bool_t              fApplyElectronVeto;    //=true then apply electron veto (with no conversion recovery)
129 +      Bool_t              fInvertElectronVeto;    //=true then invert electron veto (for cic selection only atm)      
130 +      Bool_t              fApplyElectronVetoConvRecovery; //=true then apply electron veto with conversion recovery
131 +      Bool_t              fApplyConversionId;    //=true then apply conversion id cuts
132 +      Bool_t              fApplyTriggerMatching;   //match to hlt photon (default=0)      
133        Double_t            fPhotonR9Min;          //min R9 value
72      const PhotonCol    *fPhotons;              //!photon branch
134        EPhIdType           fPhIdType;             //!identification scheme
135        EPhIsoType          fPhIsoType;            //!isolation scheme
136 <    
136 >      Bool_t              fFiduciality;          //=true then apply fiducual requirement
137 >      Double_t            fEtaWidthEB;           //max Eta Width in ECAL Barrel
138 >      Double_t            fEtaWidthEE;           //max Eta Width in ECAL End Cap
139 >      Double_t            fAbsEtaMax;            //max Abs Eta
140 >      Bool_t              fApplyR9Min;           //apply R9 min
141 >      Double_t            fEffAreaEcalEE;
142 >      Double_t            fEffAreaHcalEE;
143 >      Double_t            fEffAreaTrackEE;
144 >      Double_t            fEffAreaEcalEB;
145 >      Double_t            fEffAreaHcalEB;
146 >      Double_t            fEffAreaTrackEB;
147 >      const PhotonCol    *fPhotons;              //!photon branch
148 >      const TrackCol     *fTracks;               //!track branch
149 >      const BeamSpotCol  *fBeamspots;            //!beamspot branch    
150 >      const PileupEnergyDensityCol *fPileUpDen;  //!rho branch
151 >      const DecayParticleCol *fConversions;      //!conversion branch
152 >      const ElectronCol  *fElectrons;            //!electron branch
153 >      const ElectronCol  *fGoodElectrons;        //!electron branch
154 >      const VertexCol*    fPV;                   //!
155 >      const MCParticleCol          *fMCParticles;//!
156 >      const PileupInfoCol          *fPileUp;     //!  
157 >      bool                fPVFromBranch;
158 >      Bool_t              fGoodElectronsFromBranch;
159 >      Bool_t              fIsData;
160 >
161 >
162 >
163      ClassDef(PhotonIDMod, 1) // Photon identification module
164    };
165   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines