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.13 by sixie, Fri May 14 12:11:18 2010 UTC vs.
Revision 1.15 by fabstoec, Wed Apr 6 18:03:48 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  
21   namespace mithep
22   {
# Line 44 | Line 47 | namespace mithep
47        void                SetHadOverEmMax(Double_t hoe)     { fHadOverEmMax    = hoe;      }
48        void                SetIDType(const char *type)       { fPhotonIDType    = type;     }
49        void                SetInputName(const char *n)       { fPhotonBranchName= n;        }  
50 +      void                SetTrackName(const char *n)       { fTrackBranchName = n;        }  
51 +      void                SetBeamspotName(const char *n)    { fBeamspotBranchName = n;     }  
52        void                SetIsoType(const char *type)      { fPhotonIsoType   = type;     }
53        void                SetOutputName(const char *n)      { SetGoodPhotonsName(n);       }    
54        void                SetPtMin(Double_t pt)             { fPhotonPtMin     = pt;       }
# Line 51 | Line 56 | namespace mithep
56        void                SetEtaWidthEB(Double_t x)         { fEtaWidthEB      = x;        }
57        void                SetEtaWidthEE(Double_t x)         { fEtaWidthEE      = x;        }
58        void                SetAbsEtaMax(Double_t x)          { fAbsEtaMax       = x;        }
59 <
59 >      void                SetApplyR9Min(Bool_t b)           { fApplyR9Min      = b;        }
60 >      void                SetEffAreas(Double_t ecal, Double_t hcal, Double_t track) {
61 >        fEffAreaEcal = ecal; fEffAreaHcal = hcal; fEffAreaTrack = track;}
62 >    
63 >    
64        enum EPhIdType {
65          kIdUndef = 0,       //not defined
66          kTight,             //"Tight"
# Line 63 | Line 72 | namespace mithep
72          kIsoUndef = 0,      //not defined        
73          kNoIso,             //"NoIso"
74          kCombinedIso,       //"CombinedIso"
75 <        kCustomIso          //"Custom"
75 >        kCustomIso,         //"Custom"
76 >        kMITPUCorrected     //PileUp Corrected Hgg Isolation
77        };
78  
79      protected:
# Line 72 | Line 82 | namespace mithep
82  
83        TString             fPhotonBranchName;     //name of photon collection (input)
84        TString             fGoodPhotonsName;      //name of exported "good photon" collection
85 +      TString             fTrackBranchName;      // name of the track collection (only needed for PU corrected isolation)
86 +      TString             fBeamspotBranchName;   //name of the Beamspot collection (only needed for PU corrected isolation)
87 +      TString             fPileUpDenName;        //name of the PU density collection
88        TString             fPhotonIDType;         //type of photon identification we impose
89        TString             fPhotonIsoType;        //type of photon isolation we impose
90        Double_t            fPhotonPtMin;          //min pt cut
# Line 85 | Line 98 | namespace mithep
98        Double_t            fEtaWidthEB;           //max Eta Width in ECAL Barrel
99        Double_t            fEtaWidthEE;           //max Eta Width in ECAL End Cap
100        Double_t            fAbsEtaMax;            //max Abs Eta
101 +      Bool_t              fApplyR9Min;           //apply R9 min
102 +      Double_t            fEffAreaEcal;
103 +      Double_t            fEffAreaHcal;
104 +      Double_t            fEffAreaTrack;
105        const PhotonCol    *fPhotons;              //!photon branch
106 <    
106 >      const TrackCol     *fTracks;               //!track branch
107 >      const BeamSpotCol  *fBeamspots;            //!beamspot branch    
108 >      const PileupEnergyDensityCol *fPileUpDen;
109 >
110 >
111      ClassDef(PhotonIDMod, 1) // Photon identification module
112    };
113   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines