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.2 by ceballos, Wed Dec 3 09:52:55 2008 UTC vs.
Revision 1.10 by loizides, Mon Jun 15 15:00:21 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 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;     }
32 <      void          SetHadOverEmMax(Double_t hovere)   { fHadOverEmMax    = hovere; }
33 <      void          SetPhotonPtMin(Bool_t b)           { fApplyPixelSeed  = b;      }
24 >                  const char *title="Photon identification module");
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 +      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 +      void                SetR9Min(Double_t x)              { fPhotonR9Min     = x;         }
45  
46        enum EPhIdType {
47          kIdUndef = 0,       //not defined
# Line 48 | Line 58 | namespace mithep
58        };
59  
60      protected:
61 <      TString       fPhotonBranchName;     //branch name of electron collection
62 <      TString       fGoodPhotonsName;      //name of exported "good electrons" collection
53 <      TString       fPhotonIDType;         //type of electron ID we impose
54 <      TString       fPhotonIsoType;        //type of electron Isolation we impose
55 <      Double_t      fPhotonPtMin;          //min pt cut
56 <      Double_t      fHadOverEmMax;         //!HadOverEm Max
57 <      Bool_t        fApplyPixelSeed;       //!apply PixelSeed?
58 <      PhotonCol    *fPhotons;              //!electron branch
59 <      EPhIdType     fPhIdType;             //!identification scheme
60 <      EPhIsoType    fPhIsoType;            //!isolation scheme
61 >      void                Process();
62 >      void                SlaveBegin();
63  
64 <      void          Process();
65 <      void          SlaveBegin();
64 >      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 >      Double_t            fPhotonPtMin;          //min pt cut
69 >      Double_t            fHadOverEmMax;         //maximum of hadronic/em energy
70 >      Bool_t              fApplyPixelSeed;       //=true then apply pixel seed constraint
71 >      Double_t            fPhotonR9Min;          //min R9 value
72 >      EPhIdType           fPhIdType;             //!identification scheme
73 >      EPhIsoType          fPhIsoType;            //!isolation scheme
74 >      const PhotonCol    *fPhotons;              //!photon branch
75      
76 <      ClassDef(PhotonIDMod,1) // Photon identification module
76 >    ClassDef(PhotonIDMod, 1) // Photon identification module
77    };
78   }
79   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines