ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PhotonIDMod.h
(Generate patch)

Comparing UserCode/MitPhysics/Mods/interface/PhotonIDMod.h (file contents):
Revision 1.1 by sixie, Sat Nov 29 18:42:01 2008 UTC vs.
Revision 1.13 by sixie, Fri May 14 12:11:18 2010 UTC

# Line 13 | Line 13
13   #define MITPHYSICS_MODS_PHOTONIDMOD_H
14  
15   #include "MitAna/TreeMod/interface/BaseMod.h"
16 < #include "MitAna/DataTree/interface/Collections.h"
16 > #include "MitAna/DataTree/interface/PhotonFwd.h"
17  
18   namespace mithep
19   {
# Line 21 | Line 21 | namespace mithep
21    {
22      public:
23        PhotonIDMod(const char *name="PhotonIDMod",
24 <                    const char *title="Photon identification module");
25 <      ~PhotonIDMod() {}
26 <
27 <      void          SetPhotonBranchName(const char *n) { fPhotonBranchName       = n;    }  
28 <      void          SetGoodPhotonsName(const char *n)  { fGoodPhotonsName        = n;    }  
29 <      void          SetPhotonIDType(const char *type)  { fPhotonIDType           = type; }
30 <      void          SetPhotonIsoType(const char *type) { fPhotonIsoType          = type; }
31 <      void          SetPhotonPtMin(Double_t pt)        { fPhotonPtMin            = pt;   }
24 >                  const char *title="Photon identification module");
25  
26 +      Bool_t              GetApplySpikeRemoval()      const { return fApplySpikeRemoval;   }
27 +      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 +      Bool_t              GetApplyFiduciality()       const { return fFiduciality;         }
37 +      Double_t            GetEtaWidthEB()             const { return fEtaWidthEB;          }
38 +      Double_t            GetEtaWidthEE()             const { return fEtaWidthEE;          }
39 +      Double_t            GetAbsEtaMax()              const { return fAbsEtaMax;           }
40 +      void                SetApplySpikeRemoval(Bool_t b)    { fApplySpikeRemoval  = b;     }
41 +      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 +      void                SetR9Min(Double_t x)              { fPhotonR9Min     = x;        }
51 +      void                SetEtaWidthEB(Double_t x)         { fEtaWidthEB      = x;        }
52 +      void                SetEtaWidthEE(Double_t x)         { fEtaWidthEE      = x;        }
53 +      void                SetAbsEtaMax(Double_t x)          { fAbsEtaMax       = x;        }
54  
55        enum EPhIdType {
56          kIdUndef = 0,       //not defined
57          kTight,             //"Tight"
58          kLoose,             //"Loose"
59 <        kLooseEM,        //"LooseEM"
59 >        kLooseEM,           //"LooseEM"
60          kCustomId           //"Custom"
61        };
62        enum EPhIsoType {
63          kIsoUndef = 0,      //not defined        
64          kNoIso,             //"NoIso"
65 +        kCombinedIso,       //"CombinedIso"
66          kCustomIso          //"Custom"
67        };
68  
69      protected:
70 <      TString       fPhotonBranchName;     //branch name of electron collection
71 <      TString       fGoodPhotonsName;      //name of exported "good electrons" collection
50 <      TString       fPhotonIDType;           //type of electron ID we impose
51 <      TString       fPhotonIsoType;          //type of electron Isolation we impose
52 <      Double_t      fPhotonPtMin;            //min pt cut
53 <      PhotonCol    *fPhotons;                //!electron branch
54 <      EPhIdType     fPhIdType;               //!identification scheme
55 <      EPhIsoType    fPhIsoType;              //!isolation scheme
70 >      void                Process();
71 >      void                SlaveBegin();
72  
73 <      void          Process();
74 <      void          SlaveBegin();
73 >      TString             fPhotonBranchName;     //name of photon collection (input)
74 >      TString             fGoodPhotonsName;      //name of exported "good photon" collection
75 >      TString             fPhotonIDType;         //type of photon identification we impose
76 >      TString             fPhotonIsoType;        //type of photon isolation we impose
77 >      Double_t            fPhotonPtMin;          //min pt cut
78 >      Double_t            fHadOverEmMax;         //maximum of hadronic/em energy
79 >      Bool_t              fApplySpikeRemoval;    //whether apply spike removal      
80 >      Bool_t              fApplyPixelSeed;       //=true then apply pixel seed constraint
81 >      Double_t            fPhotonR9Min;          //min R9 value
82 >      EPhIdType           fPhIdType;             //!identification scheme
83 >      EPhIsoType          fPhIsoType;            //!isolation scheme
84 >      Bool_t              fFiduciality;          //=true then apply fiducual requirement
85 >      Double_t            fEtaWidthEB;           //max Eta Width in ECAL Barrel
86 >      Double_t            fEtaWidthEE;           //max Eta Width in ECAL End Cap
87 >      Double_t            fAbsEtaMax;            //max Abs Eta
88 >      const PhotonCol    *fPhotons;              //!photon branch
89      
90 <      ClassDef(PhotonIDMod,1) // Photon identification module
90 >    ClassDef(PhotonIDMod, 1) // Photon identification module
91    };
92   }
93   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines