ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/ElectronIDMod.h
Revision: 1.16
Committed: Tue Apr 7 15:37:09 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009
Changes since 1.15: +4 -5 lines
Log Message:
Cleanup

File Contents

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