ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/ElectronTools.h
(Generate patch)

Comparing UserCode/MitPhysics/Utils/interface/ElectronTools.h (file contents):
Revision 1.13 by ceballos, Tue Mar 15 08:34:31 2011 UTC vs.
Revision 1.24 by sixie, Sun Apr 15 12:06:26 2012 UTC

# Line 17 | Line 17
17   #include "MitAna/DataTree/interface/BeamSpotCol.h"
18   #include "MitAna/DataTree/interface/TriggerObjectCol.h"
19   #include "MitCommon/MathTools/interface/MathUtils.h"
20 + #include "MitPhysics/ElectronLikelihood/interface/ElectronLikelihood.h"
21  
22   namespace mithep {
23    class ElectronTools {
# Line 32 | Line 33 | namespace mithep {
33          kZeeId,             //"ZeeId"
34          kCustomIdLoose,     //"CustomLoose"
35          kCustomIdTight,     //"CustomTight"
36 +        kVBTFWorkingPointFakeableId,
37          kVBTFWorkingPoint95Id,
38          kVBTFWorkingPoint90Id,
39          kVBTFWorkingPoint85Id,
40          kVBTFWorkingPoint80Id,
41 <        kVBTFWorkingPoint80LowPtId,
42 <        kVBTFWorkingPoint70Id
41 >        kVBTFWorkingPointLowPtId,
42 >        kVBTFWorkingPoint70Id,
43 >        kMVAID_BDTG_NoIPInfo,
44 >        kMVAID_BDTG_WithIPInfo,
45 >        kMVAID_BDTG_IDIsoCombined
46        };
47  
48        enum EElIsoType {
# Line 47 | Line 52 | namespace mithep {
52          kTrackJuraCombined,            //"TrackJuraCombined"
53          kTrackJuraSliding,             //"TrackJuraSliding"
54          kTrackJuraSlidingNoCorrection, //"TrackJuraSlidingNoCorrection"
55 +        kCombinedRelativeConeAreaCorrected, //"CombinedRelativeConeAreaCorrected"
56          kNoIso,                        //"NoIso"
57          kPFIso,                        //"PFIso"
58          kPFIsoNoL,                     //"PFIsoNoL"
# Line 56 | Line 62 | namespace mithep {
62          kVBTFWorkingPoint90Iso,
63          kVBTFWorkingPoint85Iso,
64          kVBTFWorkingPoint80Iso,
65 <        kVBTFWorkingPoint70Iso
65 >        kVBTFWorkingPoint70Iso,
66 >        kMVAIso_BDTG_IDIsoCombined
67 >      };
68 >
69 >      enum EElectronEffectiveAreaType {
70 >        kEleChargedIso03,
71 >        kEleNeutralHadronIso03,
72 >        kEleGammaIso03,
73 >        kEleGammaIsoVetoEtaStrip03,
74 >        kEleChargedIso04,
75 >        kEleNeutralHadronIso04,
76 >        kEleGammaIso04,
77 >        kEleGammaIsoVetoEtaStrip04,
78 >        kEleNeutralHadronIso007,
79 >        kEleHoverE,
80 >        kEleHcalDepth1OverEcal,
81 >        kEleHcalDepth2OverEcal,
82 >        kEleGammaIsoDR0p0To0p1,
83 >        kEleGammaIsoDR0p1To0p2,
84 >        kEleGammaIsoDR0p2To0p3,
85 >        kEleGammaIsoDR0p3To0p4,
86 >        kEleGammaIsoDR0p4To0p5,
87 >        kEleNeutralHadronIsoDR0p0To0p1,
88 >        kEleNeutralHadronIsoDR0p1To0p2,
89 >        kEleNeutralHadronIsoDR0p2To0p3,
90 >        kEleNeutralHadronIsoDR0p3To0p4,
91 >        kEleNeutralHadronIsoDR0p4To0p5
92 >      };
93 >      
94 >      enum EElectronEffectiveAreaTarget {
95 >        kEleEANoCorr,
96 >        kEleEAData2011,
97 >        kEleEASummer11MC,
98 >        kEleEAFall11MC
99        };
100  
101        static Bool_t       PassChargeFilter(const Electron *el);
102        static Bool_t       PassConversionFilter(const Electron *el, const DecayParticleCol *conversions,
103 <                                               const BaseVertex *vtx, UInt_t nWrongHitsMax=1, Double_t probMin=1e-6,
104 <                                               Double_t lxyMin = 2.0, Bool_t matchCkf = kFALSE, Bool_t requireArbitratedMerged = kTRUE);
103 >                                               const BaseVertex *vtx, UInt_t nWrongHitsMax=0, Double_t probMin=1e-6,
104 >                                               Double_t lxyMin = 2.0, Bool_t matchCkf = kTRUE, Bool_t requireArbitratedMerged = kFALSE, Double_t trkptMin = -99.);
105        static Bool_t       PassCustomID(const Electron *el, EElIdType idType);
106        static Bool_t       PassCustomIso(const Electron *el, EElIsoType isoType,
107                                          Bool_t useCombineIso = kTRUE);
108 <      static Bool_t       PassD0Cut(const Electron *el, const VertexCol *vertices, Double_t fD0Cut);
108 >      static Bool_t       PassD0Cut(const Electron *el, const VertexCol *vertices, Double_t fD0Cut, Int_t nVertex = 0);
109        static Bool_t       PassD0Cut(const Electron *el, const BeamSpotCol *beamspots, Double_t fD0Cut);
110 +      static Bool_t       PassDZCut(const Electron *el, const VertexCol *vertices, Double_t fDZCut, Int_t nVertex = 0);
111        static Bool_t       PassSpikeRemovalFilter(const Electron *ele);
112        static Bool_t       PassTriggerMatching(const Electron *ele, const TriggerObjectCol *trigobjs);
113        static Int_t        Classify(const Electron *ele);
# Line 75 | Line 115 | namespace mithep {
115                                        const DecayParticleCol *conversions, const Int_t typeCuts,
116                                        Double_t beta = 1.0);
117        static bool         compute_cut(double x, double et, double cut_min, double cut_max, bool gtn=false);
118 +      static Double_t     Likelihood(ElectronLikelihood *LH, const Electron *ele);
119 +      static Double_t     ElectronEffectiveArea(EElectronEffectiveAreaType type, Double_t Eta,
120 +                                                EElectronEffectiveAreaTarget EffectiveAreaTarget = kEleEAData2011);
121  
122      ClassDef(ElectronTools, 0) // Muon tools
123    };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines