ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/ElectronIDMod.h
Revision: 1.14
Committed: Mon Apr 6 10:41:03 2009 UTC (16 years, 1 month ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.13: +10 -2 lines
Log Message:
minor fixes

File Contents

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