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.22 by bendavid, Wed Aug 3 17:15:43 2011 UTC vs.
Revision 1.26 by bendavid, Sun May 27 17:02:19 2012 UTC

# Line 23 | Line 23
23   #include "MitAna/DataTree/interface/DecayParticleCol.h"
24   #include "MitAna/DataTree/interface/PileupInfoCol.h"
25   #include "MitAna/DataTree/interface/MCParticleCol.h"
26 + #include "MitAna/DataTree/interface/PFCandidateCol.h"
27 +
28 + #include "MitPhysics/Utils/interface/MVATools.h"
29  
30   namespace mithep
31   {
# Line 80 | Line 83 | namespace mithep
83        }
84        void                SetTriggerObjectsName(const char *n)   { fTrigObjectsName = n;       }
85      
86 +
87 +    void                SetPhotonsFromBranch(bool b)           { fPhotonsFromBranch = b;           }
88 +
89      void                SetPVName(const char *n)          { fPVName = n;                 }
90      void                SetPVFromBranch(bool b)           { fPVFromBranch = b;           }
91      void                SetIsData (Bool_t b) { fIsData = b;};
92      void                SetGoodElectronsFromBranch(Bool_t b) { fGoodElectronsFromBranch = b; }
93      void                SetGoodElectronName(TString name) { fGoodElectronName = name; }
94  
95 +    void                SetBdtCutBarrel(double a) {fbdtCutBarrel = a; }
96 +    void                SetBdtCutEndcap(double a) {fbdtCutEndcap = a; }
97 +
98 +    void                SetDoMCR9Scaling(Bool_t b)        { fDoMCR9Scaling = b; }
99 +    void                SetMCR9Scale(Double_t ebscale, Double_t eescale) { fMCR9ScaleEB = ebscale; fMCR9ScaleEE = eescale; }
100 +    void                SetDoMCSigIEtaIEtaScaling(Bool_t b)        { fDoMCSigIEtaIEtaScaling = b; }
101 +    void                SetDoMCWidthScaling(Bool_t b)        { fDoMCWidthScaling = b; }
102 +    void                SetDoMCErrScaling(Bool_t b)        { fDoMCErrScaling = b; }
103 +    void                SetMCErrScale(Double_t ebscale, Double_t eescale) { fMCErrScaleEB = ebscale; fMCErrScaleEE = eescale; }
104 +
105        enum EPhIdType {
106          kIdUndef = 0,       //not defined
107          kTight,             //"Tight"
108          kLoose,             //"Loose"
109          kLooseEM,           //"LooseEM"
110          kBaseLineCiC,        //"2011" Hgg BaseLine CiC
111 +        kBaseLineCiCPF,        //"2012" Hgg BaseLine CiC
112 +        kMITMVAId,          // MingMing MVA ID
113 +        kMITPhSelection,    //MIT loose preselection (for mva)
114 +        kMITPFPhSelection,    //MIT loose preselection (for mva)
115          kCustomId           //"Custom"
116        };
117  
# Line 119 | Line 139 | namespace mithep
139        TString             fPVName;
140        TString             fMCParticleName;
141        TString             fPileUpName;
142 +      TString             fPFCandsName;
143        TString             fPhotonIDType;         //type of photon identification we impose
144        TString             fPhotonIsoType;        //type of photon isolation we impose
145        Double_t            fPhotonPtMin;          //min pt cut
# Line 154 | Line 175 | namespace mithep
175        const VertexCol*    fPV;                   //!
176        const MCParticleCol          *fMCParticles;//!
177        const PileupInfoCol          *fPileUp;     //!  
178 <      bool                fPVFromBranch;
178 >      const PFCandidateCol          *fPFCands;     //!  
179 >
180 >      Double_t fbdtCutBarrel;
181 >      Double_t fbdtCutEndcap;
182 >      int                         fVariableType;
183 >      TString                     fEndcapWeights;
184 >      TString                     fBarrelWeights;
185 >      MVATools                    fTool;
186 >
187 >      Bool_t fDoMCR9Scaling;
188 >      Double_t fMCR9ScaleEB;
189 >      Double_t fMCR9ScaleEE;
190 >      
191 >      Bool_t fDoMCSigIEtaIEtaScaling;
192 >      Bool_t fDoMCWidthScaling;
193 >      
194 >      Bool_t fDoMCErrScaling;
195 >      Double_t fMCErrScaleEB;
196 >      Double_t fMCErrScaleEE;    
197 >
198 >      Bool_t              fPhotonsFromBranch;
199 >      Bool_t              fPVFromBranch;
200        Bool_t              fGoodElectronsFromBranch;
201        Bool_t              fIsData;
202  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines