ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PhotonIDMod.h
Revision: 1.7
Committed: Mon Mar 23 14:23:06 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009, Mit_008
Changes since 1.6: +1 -2 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.7 // $Id: PhotonIDMod.h,v 1.6 2008/12/10 17:28:22 loizides 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     #include "MitAna/DataTree/interface/Collections.h"
17    
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     void SetApplyPixelSeed(Bool_t b) { fApplyPixelSeed = b; }
36     void SetGoodName(const char *n) { SetGoodPhotonsName(n); }
37     void SetGoodPhotonsName(const char *n) { fGoodPhotonsName = n; }
38     void SetHadOverEmMax(Double_t hoe) { fHadOverEmMax = hoe; }
39     void SetIDType(const char *type) { fPhotonIDType = type; }
40     void SetInputName(const char *n) { fPhotonBranchName= n; }
41     void SetIsoType(const char *type) { fPhotonIsoType = type; }
42     void SetOutputName(const char *n) { SetGoodPhotonsName(n); }
43     void SetPtMin(Double_t pt) { fPhotonPtMin = pt; }
44 sixie 1.1
45     enum EPhIdType {
46     kIdUndef = 0, //not defined
47     kTight, //"Tight"
48     kLoose, //"Loose"
49 ceballos 1.2 kLooseEM, //"LooseEM"
50 sixie 1.1 kCustomId //"Custom"
51     };
52     enum EPhIsoType {
53     kIsoUndef = 0, //not defined
54     kNoIso, //"NoIso"
55 ceballos 1.2 kCombinedIso, //"CombinedIso"
56 sixie 1.1 kCustomIso //"Custom"
57     };
58    
59     protected:
60 loizides 1.5 void Process();
61     void SlaveBegin();
62    
63 loizides 1.6 TString fPhotonBranchName; //name of photon collection (input)
64     TString fGoodPhotonsName; //name of exported "good photon" collection
65     TString fPhotonIDType; //type of photon identification we impose
66     TString fPhotonIsoType; //type of photon isolation we impose
67 loizides 1.4 Double_t fPhotonPtMin; //min pt cut
68 loizides 1.6 Double_t fHadOverEmMax; //maximum of hadronic/em energy
69     Bool_t fApplyPixelSeed; //=true then apply pixel seed constraint
70 loizides 1.4 const PhotonCol *fPhotons; //!photon branch
71     EPhIdType fPhIdType; //!identification scheme
72     EPhIsoType fPhIsoType; //!isolation scheme
73 sixie 1.1
74 loizides 1.6 ClassDef(PhotonIDMod, 1) // Photon identification module
75 sixie 1.1 };
76     }
77     #endif