ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/ElectronTools.h
Revision: 1.8
Committed: Thu Feb 17 13:44:55 2011 UTC (14 years, 2 months ago) by bendavid
Content type: text/plain
Branch: MAIN
Changes since 1.7: +1 -1 lines
Log Message:
Updated conversion cuts for vertexing-based removal

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id $
3 //
4 // ElectronTools
5 //
6 // Helper Class for electron Identification decisions.
7 //
8 // Authors: S.Xie
9 //--------------------------------------------------------------------------------------------------
10
11 #ifndef MITPHYSICS_UTILS_ELECTRONTOOLS_H
12 #define MITPHYSICS_UTILS_ELECTRONTOOLS_H
13
14 #include "MitAna/DataTree/interface/Electron.h"
15 #include "MitAna/DataTree/interface/DecayParticleCol.h"
16 #include "MitAna/DataTree/interface/VertexCol.h"
17 #include "MitAna/DataTree/interface/BeamSpotCol.h"
18 #include "MitAna/DataTree/interface/TriggerObjectCol.h"
19 #include "MitCommon/MathTools/interface/MathUtils.h"
20
21 namespace mithep {
22 class ElectronTools {
23 public:
24 ElectronTools();
25
26 enum EElIdType {
27 kIdUndef = 0, //not defined
28 kTight, //"Tight"
29 kLoose, //"Loose"
30 kLikelihood, //"Likelihood"
31 kNoId, //"NoId"
32 kZeeId, //"ZeeId"
33 kCustomIdLoose, //"CustomLoose"
34 kCustomIdTight, //"CustomTight"
35 kVBTFWorkingPoint95Id,
36 kVBTFWorkingPoint90Id,
37 kVBTFWorkingPoint85Id,
38 kVBTFWorkingPoint80Id,
39 kVBTFWorkingPoint70Id
40 };
41
42 enum EElIsoType {
43 kIsoUndef = 0, //not defined
44 kTrackCalo, //"TrackCalo"
45 kTrackJura, //"TrackJura"
46 kTrackJuraCombined, //"TrackJuraCombined"
47 kTrackJuraSliding, //"TrackJuraSliding"
48 kNoIso, //"NoIso"
49 kZeeIso, //"ZeeIso"
50 kCustomIso, //"Custom"
51 kVBTFWorkingPoint95Iso,
52 kVBTFWorkingPoint90Iso,
53 kVBTFWorkingPoint85Iso,
54 kVBTFWorkingPoint80Iso,
55 kVBTFWorkingPoint70Iso
56 };
57
58 static Bool_t PassChargeFilter(const Electron *el);
59 static Bool_t PassConversionFilter(const Electron *el, const DecayParticleCol *conversions,
60 const BaseVertex *vtx, UInt_t nWrongHitsMax );
61 static Bool_t PassCustomID(const Electron *el, EElIdType idType);
62 static Bool_t PassCustomIso(const Electron *el, EElIsoType isoType,
63 Bool_t useCombineIso = kTRUE);
64 static Bool_t PassD0Cut(const Electron *el, const VertexCol *vertices, Double_t fD0Cut);
65 static Bool_t PassD0Cut(const Electron *el, const BeamSpotCol *beamspots, Double_t fD0Cut);
66 static Bool_t PassSpikeRemovalFilter(const Electron *ele);
67 static Bool_t PassTriggerMatching(const Electron *ele, const TriggerObjectCol *trigobjs);
68 static Int_t Classify(const Electron *ele);
69 static Int_t PassTightId(const Electron *ele, const VertexCol *vertices,
70 const DecayParticleCol *conversions, const Int_t typeCuts);
71 static bool compute_cut(double x, double et, double cut_min, double cut_max, bool gtn=false);
72
73 ClassDef(ElectronTools, 0) // Muon tools
74 };
75 }
76
77 #endif