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.25 by fabstoec, Fri Jan 13 15:27:29 2012 UTC

# Line 24 | Line 24
24   #include "MitAna/DataTree/interface/PileupInfoCol.h"
25   #include "MitAna/DataTree/interface/MCParticleCol.h"
26  
27 + #include "MitPhysics/Utils/interface/MVATools.h"
28 +
29   namespace mithep
30   {
31    class PhotonIDMod : public BaseMod
# Line 80 | Line 82 | namespace mithep
82        }
83        void                SetTriggerObjectsName(const char *n)   { fTrigObjectsName = n;       }
84      
85 +
86 +    void                SetPhotonsFromBranch(bool b)           { fPhotonsFromBranch = b;           }
87 +
88      void                SetPVName(const char *n)          { fPVName = n;                 }
89      void                SetPVFromBranch(bool b)           { fPVFromBranch = b;           }
90      void                SetIsData (Bool_t b) { fIsData = b;};
91      void                SetGoodElectronsFromBranch(Bool_t b) { fGoodElectronsFromBranch = b; }
92      void                SetGoodElectronName(TString name) { fGoodElectronName = name; }
93  
94 +    void                SetBdtCutBarrel(double a) {fbdtCutBarrel = a; }
95 +    void                SetBdtCutEndcap(double a) {fbdtCutEndcap = a; }
96 +
97 +    void                SetDoMCR9Scaling(Bool_t b)        { fDoMCR9Scaling = b; }
98 +    void                SetMCR9Scale(Double_t ebscale, Double_t eescale) { fMCR9ScaleEB = ebscale; fMCR9ScaleEE = eescale; }
99 +    void                SetDoMCSigIEtaIEtaScaling(Bool_t b)        { fDoMCSigIEtaIEtaScaling = b; }
100 +    void                SetDoMCWidthScaling(Bool_t b)        { fDoMCWidthScaling = b; }
101 +    void                SetDoMCErrScaling(Bool_t b)        { fDoMCErrScaling = b; }
102 +    void                SetMCErrScale(Double_t ebscale, Double_t eescale) { fMCErrScaleEB = ebscale; fMCErrScaleEE = eescale; }
103 +
104        enum EPhIdType {
105          kIdUndef = 0,       //not defined
106          kTight,             //"Tight"
107          kLoose,             //"Loose"
108          kLooseEM,           //"LooseEM"
109          kBaseLineCiC,        //"2011" Hgg BaseLine CiC
110 +        kMITMVAId,          // MingMing MVA ID
111 +        kMITPhSelection,    //MIT loose preselection (for mva)
112          kCustomId           //"Custom"
113        };
114  
# Line 154 | Line 171 | namespace mithep
171        const VertexCol*    fPV;                   //!
172        const MCParticleCol          *fMCParticles;//!
173        const PileupInfoCol          *fPileUp;     //!  
174 <      bool                fPVFromBranch;
174 >
175 >      Double_t fbdtCutBarrel;
176 >      Double_t fbdtCutEndcap;
177 >      int                         fVariableType;
178 >      TString                     fEndcapWeights;
179 >      TString                     fBarrelWeights;
180 >      MVATools                    fTool;
181 >
182 >      Bool_t fDoMCR9Scaling;
183 >      Double_t fMCR9ScaleEB;
184 >      Double_t fMCR9ScaleEE;
185 >      
186 >      Bool_t fDoMCSigIEtaIEtaScaling;
187 >      Bool_t fDoMCWidthScaling;
188 >      
189 >      Bool_t fDoMCErrScaling;
190 >      Double_t fMCErrScaleEB;
191 >      Double_t fMCErrScaleEE;    
192 >
193 >      Bool_t              fPhotonsFromBranch;
194 >      Bool_t              fPVFromBranch;
195        Bool_t              fGoodElectronsFromBranch;
196        Bool_t              fIsData;
197  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines