ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/ElectronIDMod.h
Revision: 1.13
Committed: Sun Apr 5 18:36:26 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.12: +10 -9 lines
Log Message:
Cleanup

File Contents

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