ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PhotonIDMod.h
Revision: 1.12
Committed: Sun Dec 6 14:59:43 2009 UTC (15 years, 5 months ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1, Mit_012i, Mit_012g, Mit_012f, Mit_012e
Changes since 1.11: +4 -1 lines
Log Message:
small updates

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 ceballos 1.12 // $Id: PhotonIDMod.h,v 1.11 2009/08/24 14:46:26 ceballos 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 loizides 1.6 Bool_t GetApplyPixelSeed() const { return fApplyPixelSeed; }
27     const char *GetGoodName() const { return GetGoodPhotonsName(); }
28     const char *GetGoodPhotonsName() const { return fGoodPhotonsName; }
29     Double_t GetHadOverEmMax() const { return fHadOverEmMax; }
30     const char *GetIDType() const { return fPhotonIDType; }
31     const char *GetInputName() const { return fPhotonBranchName; }
32     const char *GetIsoType() const { return fPhotonIsoType; }
33     const char *GetOutputName() const { return GetGoodPhotonsName(); }
34     Double_t GetPtMin() const { return fPhotonPtMin; }
35 ceballos 1.11 Bool_t GetApplyFiduciality() const { return fFiduciality; }
36     Double_t GetEtaWidthEB() const { return fEtaWidthEB; }
37     Double_t GetEtaWidthEE() const { return fEtaWidthEE; }
38 ceballos 1.12 Double_t GetAbsEtaMax() const { return fAbsEtaMax; }
39 loizides 1.6 void SetApplyPixelSeed(Bool_t b) { fApplyPixelSeed = b; }
40     void SetGoodName(const char *n) { SetGoodPhotonsName(n); }
41     void SetGoodPhotonsName(const char *n) { fGoodPhotonsName = n; }
42     void SetHadOverEmMax(Double_t hoe) { fHadOverEmMax = hoe; }
43     void SetIDType(const char *type) { fPhotonIDType = type; }
44     void SetInputName(const char *n) { fPhotonBranchName= n; }
45     void SetIsoType(const char *type) { fPhotonIsoType = type; }
46     void SetOutputName(const char *n) { SetGoodPhotonsName(n); }
47     void SetPtMin(Double_t pt) { fPhotonPtMin = pt; }
48 ceballos 1.11 void SetR9Min(Double_t x) { fPhotonR9Min = x; }
49     void SetEtaWidthEB(Double_t x) { fEtaWidthEB = x; }
50     void SetEtaWidthEE(Double_t x) { fEtaWidthEE = x; }
51 ceballos 1.12 void SetAbsEtaMax(Double_t x) { fAbsEtaMax = x; }
52 sixie 1.1
53     enum EPhIdType {
54     kIdUndef = 0, //not defined
55     kTight, //"Tight"
56     kLoose, //"Loose"
57 ceballos 1.2 kLooseEM, //"LooseEM"
58 sixie 1.1 kCustomId //"Custom"
59     };
60     enum EPhIsoType {
61     kIsoUndef = 0, //not defined
62     kNoIso, //"NoIso"
63 ceballos 1.2 kCombinedIso, //"CombinedIso"
64 sixie 1.1 kCustomIso //"Custom"
65     };
66    
67     protected:
68 loizides 1.5 void Process();
69     void SlaveBegin();
70    
71 loizides 1.6 TString fPhotonBranchName; //name of photon collection (input)
72     TString fGoodPhotonsName; //name of exported "good photon" collection
73     TString fPhotonIDType; //type of photon identification we impose
74     TString fPhotonIsoType; //type of photon isolation we impose
75 loizides 1.4 Double_t fPhotonPtMin; //min pt cut
76 loizides 1.6 Double_t fHadOverEmMax; //maximum of hadronic/em energy
77     Bool_t fApplyPixelSeed; //=true then apply pixel seed constraint
78 ceballos 1.8 Double_t fPhotonR9Min; //min R9 value
79 loizides 1.4 EPhIdType fPhIdType; //!identification scheme
80     EPhIsoType fPhIsoType; //!isolation scheme
81 ceballos 1.11 Bool_t fFiduciality; //=true then apply fiducual requirement
82     Double_t fEtaWidthEB; //max Eta Width in ECAL Barrel
83     Double_t fEtaWidthEE; //max Eta Width in ECAL End Cap
84 ceballos 1.12 Double_t fAbsEtaMax; //max Abs Eta
85 loizides 1.10 const PhotonCol *fPhotons; //!photon branch
86 sixie 1.1
87 loizides 1.6 ClassDef(PhotonIDMod, 1) // Photon identification module
88 sixie 1.1 };
89     }
90     #endif