ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/ElectronTools.h
Revision: 1.3
Committed: Wed May 12 19:06:21 2010 UTC (14 years, 11 months ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.2: +3 -1 lines
Log Message:
adding official Egamma cuts

File Contents

# User Rev Content
1 sixie 1.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 sixie 1.2 #include "MitAna/DataTree/interface/BeamSpotCol.h"
18 sixie 1.1 #include "MitCommon/MathTools/interface/MathUtils.h"
19    
20     namespace mithep {
21     class ElectronTools {
22     public:
23     ElectronTools();
24    
25     enum EElIdType {
26     kIdUndef = 0, //not defined
27     kTight, //"Tight"
28     kLoose, //"Loose"
29     kLikelihood, //"Likelihood"
30     kNoId, //"NoId"
31     kZeeId, //"ZeeId"
32     kCustomIdLoose, //"CustomLoose"
33     kCustomIdTight, //"CustomTight"
34     kVBTFWorkingPoint95Id,
35     kVBTFWorkingPoint90Id,
36     kVBTFWorkingPoint80Id,
37     kVBTFWorkingPoint70Id
38     };
39    
40     enum EElIsoType {
41     kIsoUndef = 0, //not defined
42     kTrackCalo, //"TrackCalo"
43     kTrackJura, //"TrackJura"
44     kTrackJuraCombined, //"TrackJuraCombined"
45     kTrackJuraSliding, //"TrackJuraSliding"
46     kNoIso, //"NoIso"
47     kZeeIso, //"ZeeIso"
48     kCustomIso, //"Custom"
49     kVBTFWorkingPoint95Iso,
50     kVBTFWorkingPoint90Iso,
51     kVBTFWorkingPoint80Iso,
52     kVBTFWorkingPoint70Iso
53     };
54    
55     static Bool_t PassChargeFilter(const Electron *el);
56     static Bool_t PassConversionFilter(const Electron *el, const DecayParticleCol *conversions,
57     Bool_t WrongHitsRequirement );
58     static Bool_t PassCustomID(const Electron *el, EElIdType idType);
59     static Bool_t PassCustomIso(const Electron *el, EElIsoType isoType);
60     static Bool_t PassD0Cut(const Electron *el, const VertexCol *vertices,
61     Double_t fD0Cut, Bool_t fReverseD0Cut);
62 sixie 1.2 static Bool_t PassD0Cut(const Electron *el, const BeamSpotCol *beamspots,
63     Double_t fD0Cut, Bool_t fReverseD0Cut);
64 sixie 1.1 static Bool_t PassSpikeRemovalFilter(const Electron *ele);
65 ceballos 1.3 static Int_t Classify(const Electron *ele);
66     static Int_t PassTightId(const Electron *ele, const VertexCol *vertices,
67     const DecayParticleCol *conversions, const Int_t typeCuts);
68 sixie 1.1
69     ClassDef(ElectronTools, 0) // Muon tools
70     };
71     }
72    
73     #endif