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.4 by loizides, Thu Dec 4 13:53:33 2008 UTC vs.
Revision 1.11 by ceballos, Mon Aug 24 14:46:26 2009 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 22 | Line 22 | namespace mithep
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;     }
32      void                SetHadOverEmMax(Double_t hovere)   { fHadOverEmMax    = hovere; }
33      void                SetPhotonPtMin(Bool_t b)           { fApplyPixelSeed  = b;      }
25  
26 +      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 +      Bool_t              GetApplyFiduciality()       const { return fFiduciality;         }
36 +      Double_t            GetEtaWidthEB()             const { return fEtaWidthEB;          }
37 +      Double_t            GetEtaWidthEE()             const { return fEtaWidthEE;          }
38 +      void                SetApplyPixelSeed(Bool_t b)       { fApplyPixelSeed  = b;        }
39 +      void                SetGoodName(const char *n)        { SetGoodPhotonsName(n);       }  
40 +      void                SetGoodPhotonsName(const char *n) { fGoodPhotonsName = n;        }  
41 +      void                SetHadOverEmMax(Double_t hoe)     { fHadOverEmMax    = hoe;      }
42 +      void                SetIDType(const char *type)       { fPhotonIDType    = type;     }
43 +      void                SetInputName(const char *n)       { fPhotonBranchName= n;        }  
44 +      void                SetIsoType(const char *type)      { fPhotonIsoType   = type;     }
45 +      void                SetOutputName(const char *n)      { SetGoodPhotonsName(n);       }    
46 +      void                SetPtMin(Double_t pt)             { fPhotonPtMin     = pt;       }
47 +      void                SetR9Min(Double_t x)              { fPhotonR9Min     = x;        }
48 +      void                SetEtaWidthEB(Double_t x)         { fEtaWidthEB      = x;        }
49 +      void                SetEtaWidthEE(Double_t x)         { fEtaWidthEE      = x;        }
50  
51        enum EPhIdType {
52          kIdUndef = 0,       //not defined
# Line 48 | Line 63 | namespace mithep
63        };
64  
65      protected:
66 <      TString             fPhotonBranchName;     //branch name of electron collection
67 <      TString             fGoodPhotonsName;      //name of exported "good electrons" collection
68 <      TString             fPhotonIDType;         //type of electron ID we impose
69 <      TString             fPhotonIsoType;        //type of electron Isolation we impose
66 >      void                Process();
67 >      void                SlaveBegin();
68 >
69 >      TString             fPhotonBranchName;     //name of photon collection (input)
70 >      TString             fGoodPhotonsName;      //name of exported "good photon" collection
71 >      TString             fPhotonIDType;         //type of photon identification we impose
72 >      TString             fPhotonIsoType;        //type of photon isolation we impose
73        Double_t            fPhotonPtMin;          //min pt cut
74 <      Double_t            fHadOverEmMax;         //!maximum of hadronic/em energy
75 <      Bool_t              fApplyPixelSeed;       //!=true then apply PixelSeed
76 <      const PhotonCol    *fPhotons;              //!photon branch
74 >      Double_t            fHadOverEmMax;         //maximum of hadronic/em energy
75 >      Bool_t              fApplyPixelSeed;       //=true then apply pixel seed constraint
76 >      Double_t            fPhotonR9Min;          //min R9 value
77        EPhIdType           fPhIdType;             //!identification scheme
78        EPhIsoType          fPhIsoType;            //!isolation scheme
79 <
80 <      void          Process();
81 <      void          SlaveBegin();
79 >      Bool_t              fFiduciality;          //=true then apply fiducual requirement
80 >      Double_t            fEtaWidthEB;           //max Eta Width in ECAL Barrel
81 >      Double_t            fEtaWidthEE;           //max Eta Width in ECAL End Cap
82 >      const PhotonCol    *fPhotons;              //!photon branch
83      
84 <      ClassDef(PhotonIDMod,1) // Photon identification module
84 >    ClassDef(PhotonIDMod, 1) // Photon identification module
85    };
86   }
87   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines