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 |
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 |
kTrackJuraSlidingNoCorrection, //"TrackJuraSlidingNoCorrection"
|
50 |
kNoIso, //"NoIso"
|
51 |
kPFIso, //"PFIso"
|
52 |
kPFIsoNoL, //"PFIsoNoL"
|
53 |
kZeeIso, //"ZeeIso"
|
54 |
kCustomIso, //"Custom"
|
55 |
kVBTFWorkingPoint95Iso,
|
56 |
kVBTFWorkingPoint90Iso,
|
57 |
kVBTFWorkingPoint85Iso,
|
58 |
kVBTFWorkingPoint80Iso,
|
59 |
kVBTFWorkingPoint70Iso
|
60 |
};
|
61 |
|
62 |
static Bool_t PassChargeFilter(const Electron *el);
|
63 |
static Bool_t PassConversionFilter(const Electron *el, const DecayParticleCol *conversions,
|
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, Double_t trkptMin = -99.);
|
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, 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,
|
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 |
};
|
82 |
}
|
83 |
|
84 |
#endif
|