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.20 by fabstoec, Fri Jul 15 17:24:37 2011 UTC vs.
Revision 1.25 by fabstoec, Fri Jan 13 15:27:29 2012 UTC

# Line 20 | Line 20
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 + #include "MitPhysics/Utils/interface/MVATools.h"
28  
29   namespace mithep
30   {
# Line 46 | Line 51 | namespace mithep
51        void                SetApplySpikeRemoval(Bool_t b)    { fApplySpikeRemoval  = b;     }
52        void                SetApplyPixelSeed(Bool_t b)       { fApplyPixelSeed  = b;        }
53        void                SetApplyElectronVeto(Bool_t b)    { fApplyElectronVeto = b;      }
54 +      void                SetInvertElectronVeto(Bool_t b)   { fInvertElectronVeto = b;     }      
55        void                SetApplyElectronVetoConvRecovery(Bool_t b) { fApplyElectronVetoConvRecovery = b; }
56        void                SetApplyConversionId(Bool_t b)    { fApplyConversionId = b;      }
57        void                SetApplyTriggerMatching(Bool_t b)      { fApplyTriggerMatching = b;  }      
# Line 76 | 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
# Line 85 | Line 107 | namespace mithep
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 107 | Line 131 | namespace mithep
131        TString             fPileUpDenName;        //name of the PU density collection      
132        TString             fConversionName;       //name of conversion branch
133        TString             fElectronName;
134 +      TString             fGoodElectronName;
135        TString             fTrigObjectsName;        //name of trigger object collection
136        TString             fPVName;
137 +      TString             fMCParticleName;
138 +      TString             fPileUpName;
139        TString             fPhotonIDType;         //type of photon identification we impose
140        TString             fPhotonIsoType;        //type of photon isolation we impose
141        Double_t            fPhotonPtMin;          //min pt cut
# Line 116 | Line 143 | namespace mithep
143        Bool_t              fApplySpikeRemoval;    //whether apply spike removal      
144        Bool_t              fApplyPixelSeed;       //=true then apply pixel seed constraint
145        Bool_t              fApplyElectronVeto;    //=true then apply electron veto (with no conversion recovery)
146 +      Bool_t              fInvertElectronVeto;    //=true then invert electron veto (for cic selection only atm)      
147        Bool_t              fApplyElectronVetoConvRecovery; //=true then apply electron veto with conversion recovery
148        Bool_t              fApplyConversionId;    //=true then apply conversion id cuts
149        Bool_t              fApplyTriggerMatching;   //match to hlt photon (default=0)      
# Line 139 | Line 167 | namespace mithep
167        const PileupEnergyDensityCol *fPileUpDen;  //!rho branch
168        const DecayParticleCol *fConversions;      //!conversion branch
169        const ElectronCol  *fElectrons;            //!electron branch
170 <      const VertexCol*    fPV;
171 <      bool                fPVFromBranch;
170 >      const ElectronCol  *fGoodElectrons;        //!electron branch
171 >      const VertexCol*    fPV;                   //!
172 >      const MCParticleCol          *fMCParticles;//!
173 >      const PileupInfoCol          *fPileUp;     //!  
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 >
198 >
199  
200      ClassDef(PhotonIDMod, 1) // Photon identification module
201    };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines