ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PhotonIDMod.h
Revision: 1.14
Committed: Tue Feb 1 17:02:21 2011 UTC (14 years, 3 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_020a, Mit_020, Mit_020pre1
Changes since 1.13: +3 -1 lines
Log Message:
synchronize default photon cuts with baseline hgg analysis

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.14 // $Id: PhotonIDMod.h,v 1.13 2010/05/14 12:11:18 sixie Exp $
3 sixie 1.1 //
4     // PhotonIDMod
5     //
6     // This module applies photon identification criteria and exports a pointer to a collection
7     // of "good photons" according to the specified identification scheme.
8     //
9     // Authors: S.Xie, C.Loizides
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITPHYSICS_MODS_PHOTONIDMOD_H
13     #define MITPHYSICS_MODS_PHOTONIDMOD_H
14    
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16 loizides 1.10 #include "MitAna/DataTree/interface/PhotonFwd.h"
17 sixie 1.1
18     namespace mithep
19     {
20     class PhotonIDMod : public BaseMod
21     {
22     public:
23     PhotonIDMod(const char *name="PhotonIDMod",
24 loizides 1.3 const char *title="Photon identification module");
25 sixie 1.1
26 sixie 1.13 Bool_t GetApplySpikeRemoval() const { return fApplySpikeRemoval; }
27 loizides 1.6 Bool_t GetApplyPixelSeed() const { return fApplyPixelSeed; }
28     const char *GetGoodName() const { return GetGoodPhotonsName(); }
29     const char *GetGoodPhotonsName() const { return fGoodPhotonsName; }
30     Double_t GetHadOverEmMax() const { return fHadOverEmMax; }
31     const char *GetIDType() const { return fPhotonIDType; }
32     const char *GetInputName() const { return fPhotonBranchName; }
33     const char *GetIsoType() const { return fPhotonIsoType; }
34     const char *GetOutputName() const { return GetGoodPhotonsName(); }
35     Double_t GetPtMin() const { return fPhotonPtMin; }
36 ceballos 1.11 Bool_t GetApplyFiduciality() const { return fFiduciality; }
37     Double_t GetEtaWidthEB() const { return fEtaWidthEB; }
38     Double_t GetEtaWidthEE() const { return fEtaWidthEE; }
39 ceballos 1.12 Double_t GetAbsEtaMax() const { return fAbsEtaMax; }
40 sixie 1.13 void SetApplySpikeRemoval(Bool_t b) { fApplySpikeRemoval = b; }
41 loizides 1.6 void SetApplyPixelSeed(Bool_t b) { fApplyPixelSeed = b; }
42     void SetGoodName(const char *n) { SetGoodPhotonsName(n); }
43     void SetGoodPhotonsName(const char *n) { fGoodPhotonsName = n; }
44     void SetHadOverEmMax(Double_t hoe) { fHadOverEmMax = hoe; }
45     void SetIDType(const char *type) { fPhotonIDType = type; }
46     void SetInputName(const char *n) { fPhotonBranchName= n; }
47     void SetIsoType(const char *type) { fPhotonIsoType = type; }
48     void SetOutputName(const char *n) { SetGoodPhotonsName(n); }
49     void SetPtMin(Double_t pt) { fPhotonPtMin = pt; }
50 ceballos 1.11 void SetR9Min(Double_t x) { fPhotonR9Min = x; }
51     void SetEtaWidthEB(Double_t x) { fEtaWidthEB = x; }
52     void SetEtaWidthEE(Double_t x) { fEtaWidthEE = x; }
53 ceballos 1.12 void SetAbsEtaMax(Double_t x) { fAbsEtaMax = x; }
54 bendavid 1.14 void SetApplyR9Min(Bool_t b) { fApplyR9Min = b; }
55 sixie 1.1
56     enum EPhIdType {
57     kIdUndef = 0, //not defined
58     kTight, //"Tight"
59     kLoose, //"Loose"
60 ceballos 1.2 kLooseEM, //"LooseEM"
61 sixie 1.1 kCustomId //"Custom"
62     };
63     enum EPhIsoType {
64     kIsoUndef = 0, //not defined
65     kNoIso, //"NoIso"
66 ceballos 1.2 kCombinedIso, //"CombinedIso"
67 sixie 1.1 kCustomIso //"Custom"
68     };
69    
70     protected:
71 loizides 1.5 void Process();
72     void SlaveBegin();
73    
74 loizides 1.6 TString fPhotonBranchName; //name of photon collection (input)
75     TString fGoodPhotonsName; //name of exported "good photon" collection
76     TString fPhotonIDType; //type of photon identification we impose
77     TString fPhotonIsoType; //type of photon isolation we impose
78 loizides 1.4 Double_t fPhotonPtMin; //min pt cut
79 loizides 1.6 Double_t fHadOverEmMax; //maximum of hadronic/em energy
80 sixie 1.13 Bool_t fApplySpikeRemoval; //whether apply spike removal
81 loizides 1.6 Bool_t fApplyPixelSeed; //=true then apply pixel seed constraint
82 ceballos 1.8 Double_t fPhotonR9Min; //min R9 value
83 loizides 1.4 EPhIdType fPhIdType; //!identification scheme
84     EPhIsoType fPhIsoType; //!isolation scheme
85 ceballos 1.11 Bool_t fFiduciality; //=true then apply fiducual requirement
86     Double_t fEtaWidthEB; //max Eta Width in ECAL Barrel
87     Double_t fEtaWidthEE; //max Eta Width in ECAL End Cap
88 ceballos 1.12 Double_t fAbsEtaMax; //max Abs Eta
89 bendavid 1.14 Bool_t fApplyR9Min; //apply R9 min
90 loizides 1.10 const PhotonCol *fPhotons; //!photon branch
91 sixie 1.1
92 loizides 1.6 ClassDef(PhotonIDMod, 1) // Photon identification module
93 sixie 1.1 };
94     }
95     #endif