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 { |
36 |
|
kVBTFWorkingPoint90Id, |
37 |
|
kVBTFWorkingPoint85Id, |
38 |
|
kVBTFWorkingPoint80Id, |
39 |
+ |
kVBTFWorkingPointLowPtId, |
40 |
|
kVBTFWorkingPoint70Id |
41 |
|
}; |
42 |
|
|
43 |
|
enum EElIsoType { |
44 |
< |
kIsoUndef = 0, //not defined |
45 |
< |
kTrackCalo, //"TrackCalo" |
46 |
< |
kTrackJura, //"TrackJura" |
47 |
< |
kTrackJuraCombined, //"TrackJuraCombined" |
48 |
< |
kTrackJuraSliding, //"TrackJuraSliding" |
49 |
< |
kNoIso, //"NoIso" |
50 |
< |
kZeeIso, //"ZeeIso" |
51 |
< |
kCustomIso, //"Custom" |
44 |
> |
kIsoUndef = 0, //"not defined" |
45 |
> |
kTrackCalo, //"TrackCalo" |
46 |
> |
kTrackJura, //"TrackJura" |
47 |
> |
kTrackJuraCombined, //"TrackJuraCombined" |
48 |
> |
kTrackJuraSliding, //"TrackJuraSliding" |
49 |
> |
kTrackJuraSlidingNoCorrection, //"TrackJuraSlidingNoCorrection" |
50 |
> |
kNoIso, //"NoIso" |
51 |
> |
kPFIso, //"PFIso" |
52 |
> |
kPFIsoNoL, //"PFIsoNoL" |
53 |
> |
kZeeIso, //"ZeeIso" |
54 |
> |
kCustomIso, //"Custom" |
55 |
|
kVBTFWorkingPoint95Iso, |
56 |
|
kVBTFWorkingPoint90Iso, |
57 |
|
kVBTFWorkingPoint85Iso, |
61 |
|
|
62 |
|
static Bool_t PassChargeFilter(const Electron *el); |
63 |
|
static Bool_t PassConversionFilter(const Electron *el, const DecayParticleCol *conversions, |
64 |
< |
Bool_t WrongHitsRequirement ); |
64 |
> |
const BaseVertex *vtx, UInt_t nWrongHitsMax=0, Double_t probMin=1e-6, |
65 |
> |
Double_t lxyMin = 2.0, Bool_t matchCkf = kTRUE, Bool_t requireArbitratedMerged = kFALSE); |
66 |
|
static Bool_t PassCustomID(const Electron *el, EElIdType idType); |
67 |
|
static Bool_t PassCustomIso(const Electron *el, EElIsoType isoType, |
68 |
|
Bool_t useCombineIso = kTRUE); |
69 |
< |
static Bool_t PassD0Cut(const Electron *el, const VertexCol *vertices, |
70 |
< |
Double_t fD0Cut, Bool_t fReverseD0Cut); |
71 |
< |
static Bool_t PassD0Cut(const Electron *el, const BeamSpotCol *beamspots, |
66 |
< |
Double_t fD0Cut, Bool_t fReverseD0Cut); |
69 |
> |
static Bool_t PassD0Cut(const Electron *el, const VertexCol *vertices, Double_t fD0Cut, Int_t nVertex = 0); |
70 |
> |
static Bool_t PassD0Cut(const Electron *el, const BeamSpotCol *beamspots, Double_t fD0Cut); |
71 |
> |
static Bool_t PassDZCut(const Electron *el, const VertexCol *vertices, Double_t fDZCut, Int_t nVertex = 0); |
72 |
|
static Bool_t PassSpikeRemovalFilter(const Electron *ele); |
73 |
+ |
static Bool_t PassTriggerMatching(const Electron *ele, const TriggerObjectCol *trigobjs); |
74 |
|
static Int_t Classify(const Electron *ele); |
75 |
|
static Int_t PassTightId(const Electron *ele, const VertexCol *vertices, |
76 |
< |
const DecayParticleCol *conversions, const Int_t typeCuts); |
76 |
> |
const DecayParticleCol *conversions, const Int_t typeCuts, |
77 |
> |
Double_t beta = 1.0); |
78 |
> |
static bool compute_cut(double x, double et, double cut_min, double cut_max, bool gtn=false); |
79 |
|
|
80 |
|
ClassDef(ElectronTools, 0) // Muon tools |
81 |
|
}; |