ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PhotonIDMod.h
Revision: 1.6
Committed: Wed Dec 10 17:28:22 2008 UTC (16 years, 4 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2, Mit_008pre1, Mit_006b, Mit_006a
Changes since 1.5: +26 -16 lines
Log Message:
Added naming convention: SetInputName/SetOutputName etc.

File Contents

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