1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.11 |
// $Id: ElectronIDMod.h,v 1.10 2009/03/23 14:23:06 loizides Exp $
|
3 |
loizides |
1.1 |
//
|
4 |
|
|
// ElectronIDMod
|
5 |
|
|
//
|
6 |
loizides |
1.4 |
// This module applies electron identification criteria and exports a pointer to a collection
|
7 |
loizides |
1.5 |
// of "good electrons" according to the specified identification scheme.
|
8 |
loizides |
1.1 |
//
|
9 |
loizides |
1.11 |
// See http://indico.cern.ch/contributionDisplay.py?contribId=1&confId=42251
|
10 |
|
|
//
|
11 |
loizides |
1.4 |
// Authors: S.Xie, C.Loizides
|
12 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
13 |
|
|
|
14 |
loizides |
1.4 |
#ifndef MITPHYSICS_MODS_ELECTRONIDMOD_H
|
15 |
|
|
#define MITPHYSICS_MODS_ELECTRONIDMOD_H
|
16 |
loizides |
1.1 |
|
17 |
|
|
#include "MitAna/TreeMod/interface/BaseMod.h"
|
18 |
|
|
#include "MitAna/DataTree/interface/Collections.h"
|
19 |
|
|
|
20 |
|
|
namespace mithep
|
21 |
|
|
{
|
22 |
|
|
class ElectronIDMod : public BaseMod
|
23 |
|
|
{
|
24 |
|
|
public:
|
25 |
|
|
ElectronIDMod(const char *name="ElectronIDMod",
|
26 |
loizides |
1.4 |
const char *title="Electron identification module");
|
27 |
|
|
|
28 |
loizides |
1.8 |
Double_t GetCaloIsoCut() const { return fCaloIsolationCut; }
|
29 |
|
|
Double_t GetEcalJurIsoCut() const { return fEcalJuraIsoCut; }
|
30 |
|
|
const char *GetGoodName() const { return GetGoodElectronsName(); }
|
31 |
|
|
const char *GetGoodElectronsName() const { return fGoodElectronsName; }
|
32 |
|
|
Double_t GetHcalIsoCut() const { return fHcalIsolationCut; }
|
33 |
|
|
Double_t GetIDLikelihoodCut() const { return fIDLikelihoodCut; }
|
34 |
|
|
const char *GetIDType() const { return fElectronIDType; }
|
35 |
|
|
const char *GetInputName() const { return fElectronBranchName; }
|
36 |
|
|
const char *GetIsoType() const { return fElectronIsoType; }
|
37 |
|
|
const char *GetOutputName() const { return GetGoodElectronsName(); }
|
38 |
|
|
Double_t GetPtMin() const { return fElectronPtMin; }
|
39 |
|
|
Double_t GetTrackIsoCut() const { return fTrackIsolationCut; }
|
40 |
|
|
void SetCaloIsoCut(Double_t cut) { fCaloIsolationCut = cut; }
|
41 |
|
|
void SetEcalJurIsoCut(Double_t cut) { fEcalJuraIsoCut = cut; }
|
42 |
|
|
void SetGoodName(const char *n) { SetGoodElectronsName(n); }
|
43 |
|
|
void SetGoodElectronsName(const char *n) { fGoodElectronsName = n; }
|
44 |
|
|
void SetHcalIsoCut(Double_t cut) { fHcalIsolationCut = cut; }
|
45 |
|
|
void SetIDLikelihoodCut(Double_t cut) { fIDLikelihoodCut = cut; }
|
46 |
|
|
void SetIDType(const char *type) { fElectronIDType = type; }
|
47 |
|
|
void SetInputName(const char *n) { fElectronBranchName = n; }
|
48 |
|
|
void SetIsoType(const char *type) { fElectronIsoType = type; }
|
49 |
|
|
void SetOutputName(const char *n) { SetGoodElectronsName(n); }
|
50 |
|
|
void SetPtMin(Double_t pt) { fElectronPtMin = pt; }
|
51 |
|
|
void SetTrackIsoCut(Double_t cut) { fTrackIsolationCut = cut; }
|
52 |
loizides |
1.4 |
|
53 |
|
|
enum EElIdType {
|
54 |
|
|
kIdUndef = 0, //not defined
|
55 |
|
|
kTight, //"Tight"
|
56 |
|
|
kLoose, //"Loose"
|
57 |
|
|
kLikelihood, //"Likelihood"
|
58 |
loizides |
1.9 |
kNoId, //"NoId"
|
59 |
loizides |
1.4 |
kCustomId //"Custom"
|
60 |
|
|
};
|
61 |
|
|
enum EElIsoType {
|
62 |
|
|
kIsoUndef = 0, //not defined
|
63 |
|
|
kTrackCalo, //"TrackCalo"
|
64 |
|
|
kTrackJura, //"TrackJura"
|
65 |
|
|
kTrackJuraSliding, //"TrackJuraSliding"
|
66 |
|
|
kNoIso, //"NoIso"
|
67 |
|
|
kCustomIso //"Custom"
|
68 |
|
|
};
|
69 |
|
|
|
70 |
loizides |
1.1 |
protected:
|
71 |
loizides |
1.7 |
void Process();
|
72 |
|
|
void SlaveBegin();
|
73 |
|
|
|
74 |
loizides |
1.8 |
TString fElectronBranchName; //name of electron collection (input)
|
75 |
loizides |
1.6 |
TString fGoodElectronsName; //name of exported "good electrons" collection
|
76 |
|
|
TString fElectronIDType; //type of electron ID we impose
|
77 |
|
|
TString fElectronIsoType; //type of electron Isolation we impose
|
78 |
|
|
Double_t fElectronPtMin; //min pt cut
|
79 |
|
|
Double_t fIDLikelihoodCut; //cut value for ID likelihood
|
80 |
|
|
Double_t fTrackIsolationCut; //cut value for track isolation
|
81 |
|
|
Double_t fCaloIsolationCut; //cut value for calo isolation
|
82 |
|
|
Double_t fEcalJuraIsoCut; //cut value for ecal jurassic isolation
|
83 |
|
|
Double_t fHcalIsolationCut; //cut value for hcal isolation
|
84 |
loizides |
1.8 |
const ElectronCol *fElectrons; //!electron collection
|
85 |
loizides |
1.6 |
EElIdType fElIdType; //!identification scheme
|
86 |
|
|
EElIsoType fElIsoType; //!isolation scheme
|
87 |
loizides |
1.1 |
|
88 |
loizides |
1.8 |
ClassDef(ElectronIDMod, 1) // Electron identification module
|
89 |
loizides |
1.1 |
};
|
90 |
|
|
}
|
91 |
|
|
#endif
|