ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/ElectronIDMod.h
Revision: 1.18
Committed: Mon Jun 1 17:31:38 2009 UTC (15 years, 11 months ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.17: +5 -2 lines
Log Message:
minor updates on anti-cuts

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 ceballos 1.18 // $Id: ElectronIDMod.h,v 1.17 2009/04/30 06:34:02 ceballos 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.13 // 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.13 Bool_t GetApplyConversionFilter() const { return fApplyConvFilter; }
29 ceballos 1.14 Bool_t GetApplyD0Cut() const { return fApplyD0Cut; }
30 loizides 1.8 Double_t GetCaloIsoCut() const { return fCaloIsolationCut; }
31     Double_t GetEcalJurIsoCut() const { return fEcalJuraIsoCut; }
32     const char *GetGoodName() const { return GetGoodElectronsName(); }
33     const char *GetGoodElectronsName() const { return fGoodElectronsName; }
34     Double_t GetHcalIsoCut() const { return fHcalIsolationCut; }
35     Double_t GetIDLikelihoodCut() const { return fIDLikelihoodCut; }
36     const char *GetIDType() const { return fElectronIDType; }
37     const char *GetInputName() const { return fElectronBranchName; }
38     const char *GetIsoType() const { return fElectronIsoType; }
39     const char *GetOutputName() const { return GetGoodElectronsName(); }
40     Double_t GetPtMin() const { return fElectronPtMin; }
41     Double_t GetTrackIsoCut() const { return fTrackIsolationCut; }
42 ceballos 1.17 Bool_t GetReverseIsoCut() const { return fReverseIsoCut; }
43 ceballos 1.18 Bool_t GetReverseD0Cut() const { return fReverseD0Cut; }
44 loizides 1.13 void SetApplyConversionFilter(Bool_t b) { fApplyConvFilter = b; }
45 ceballos 1.14 void SetApplyD0Cut(Bool_t b) { fApplyD0Cut = b; }
46 loizides 1.8 void SetCaloIsoCut(Double_t cut) { fCaloIsolationCut = cut; }
47     void SetEcalJurIsoCut(Double_t cut) { fEcalJuraIsoCut = cut; }
48     void SetGoodName(const char *n) { SetGoodElectronsName(n); }
49     void SetGoodElectronsName(const char *n) { fGoodElectronsName = n; }
50     void SetHcalIsoCut(Double_t cut) { fHcalIsolationCut = cut; }
51     void SetIDLikelihoodCut(Double_t cut) { fIDLikelihoodCut = cut; }
52     void SetIDType(const char *type) { fElectronIDType = type; }
53     void SetInputName(const char *n) { fElectronBranchName = n; }
54     void SetIsoType(const char *type) { fElectronIsoType = type; }
55     void SetOutputName(const char *n) { SetGoodElectronsName(n); }
56     void SetPtMin(Double_t pt) { fElectronPtMin = pt; }
57     void SetTrackIsoCut(Double_t cut) { fTrackIsolationCut = cut; }
58 ceballos 1.12 void SetD0Cut(Double_t cut) { fD0Cut = cut; }
59 ceballos 1.17 void SetReverseIsoCut(Bool_t b) { fReverseIsoCut = b; }
60 ceballos 1.18 void SetReverseD0Cut(Bool_t b) { fReverseD0Cut = b; }
61 loizides 1.4
62     enum EElIdType {
63     kIdUndef = 0, //not defined
64     kTight, //"Tight"
65     kLoose, //"Loose"
66     kLikelihood, //"Likelihood"
67 loizides 1.9 kNoId, //"NoId"
68 loizides 1.4 kCustomId //"Custom"
69     };
70     enum EElIsoType {
71     kIsoUndef = 0, //not defined
72     kTrackCalo, //"TrackCalo"
73     kTrackJura, //"TrackJura"
74     kTrackJuraSliding, //"TrackJuraSliding"
75     kNoIso, //"NoIso"
76     kCustomIso //"Custom"
77     };
78    
79 loizides 1.1 protected:
80 ceballos 1.12 void Process();
81     void SlaveBegin();
82 loizides 1.7
83 ceballos 1.12 TString fElectronBranchName; //name of electron collection (input)
84     TString fConversionBranchName; //name of electron collection (input)
85 loizides 1.16 TString fGoodElectronsName; //name of exported "good electrons" col
86 ceballos 1.12 TString fVertexName; //name of vertex collection
87     TString fElectronIDType; //type of electron ID we impose
88     TString fElectronIsoType; //type of electron Isolation we impose
89     Double_t fElectronPtMin; //min pt cut
90     Double_t fIDLikelihoodCut; //cut value for ID likelihood
91     Double_t fTrackIsolationCut; //cut value for track isolation
92     Double_t fCaloIsolationCut; //cut value for calo isolation
93     Double_t fEcalJuraIsoCut; //cut value for ecal jurassic isolation
94     Double_t fHcalIsolationCut; //cut value for hcal isolation
95 loizides 1.13 Bool_t fApplyConvFilter; //whether remove conversions
96 loizides 1.16 Bool_t fApplyD0Cut; //whether apply d0 cut
97 loizides 1.13 Double_t fD0Cut; //max d0
98     EElIdType fElIdType; //!identification scheme
99     EElIsoType fElIsoType; //!isolation scheme
100 ceballos 1.12 const ElectronCol *fElectrons; //!electron collection
101     const DecayParticleCol *fConversions; //!conversion collection
102 loizides 1.16 const VertexCol *fVertices; //!vertices branches
103 ceballos 1.18 Bool_t fReverseIsoCut; //!apply reversion iso cut (default=0)
104     Bool_t fReverseD0Cut; //!apply reversion d0 cut (default=0)
105 ceballos 1.17
106 loizides 1.8 ClassDef(ElectronIDMod, 1) // Electron identification module
107 loizides 1.1 };
108     }
109     #endif