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

Comparing UserCode/MitPhysics/Mods/interface/PhotonCiCMod.h (file contents):
Revision 1.3 by fabstoec, Wed Jun 29 18:28:05 2011 UTC vs.
Revision 1.5 by fabstoec, Wed Jul 6 13:59:40 2011 UTC

# Line 21 | Line 21
21   #include "MitAna/DataTree/interface/DecayParticleCol.h"
22   #include "MitAna/DataTree/interface/ElectronCol.h"
23   #include "MitAna/DataTree/interface/DecayParticleCol.h"
24 + #include "MitAna/DataTree/interface/PileupInfoCol.h"
25 + #include "MitAna/DataTree/interface/MCParticleCol.h"
26  
27   class TNtuple;
28 + class TRandom3;
29  
30   namespace mithep
31   {
# Line 32 | Line 35 | namespace mithep
35        PhotonCiCMod(const char *name="PhotonCiCMod",
36                    const char *title="Photon identification module");
37  
38 +      ~PhotonCiCMod();
39 +
40        Bool_t              GetApplySpikeRemoval()      const { return fApplySpikeRemoval;   }
41        const char         *GetGoodName()               const { return GetGoodPhotonsName(); }  
42        const char         *GetGoodPhotonsName()        const { return fGoodPhotonsName;     }  
# Line 50 | Line 55 | namespace mithep
55  
56        void                SetPVName  (TString s) {fPVName   = s; fPVFromBranch   = false;};
57  
58 +      void                SetIsData (Bool_t b) { fIsData = b;};
59 +
60 +      void                AddEnCorrPerRun( UInt_t sRun, UInt_t eRun,
61 +                                           Double_t corr_EB_hR9,
62 +                                           Double_t corr_EB_lR9,
63 +                                           Double_t corr_EE_hR9,
64 +                                           Double_t corr_EE_lR9) {
65 +        fDataEnCorr_EB_hR9.push_back(corr_EB_hR9);
66 +        fDataEnCorr_EB_lR9.push_back(corr_EB_lR9);
67 +        fDataEnCorr_EE_hR9.push_back(corr_EE_hR9);
68 +        fDataEnCorr_EE_lR9.push_back(corr_EE_lR9);
69 +
70 +        fRunStart.push_back(sRun);
71 +        fRunEnd.push_back(eRun);
72 +      };
73 +
74 +      void                SetMCSmearFactors(Double_t _EB_hR9, Double_t _EB_lR9, Double_t _EE_hR9, Double_t _EE_lR9) {
75 +        fMCSmear_EB_hR9 = _EB_hR9;
76 +        fMCSmear_EB_lR9 = _EB_lR9;
77 +        fMCSmear_EE_hR9 = _EE_hR9;
78 +        fMCSmear_EE_lR9 = _EE_lR9;
79 +      };
80 +
81 +      void findHiggsPtAndZ(Float_t&, Float_t&);
82 +
83      protected:
84        void                Process();
85        void                SlaveBegin();
# Line 77 | Line 107 | namespace mithep
107  
108        const BeamSpotCol *fBeamspot;
109      
110 <      Double_t fDataEnCorr_EB_hR9;
111 <      Double_t fDataEnCorr_EB_lR9;
112 <      Double_t fDataEnCorr_EE_hR9;
113 <      Double_t fDataEnCorr_EE_lR9;
110 >      std::vector<Double_t> fDataEnCorr_EB_hR9;
111 >      std::vector<Double_t> fDataEnCorr_EB_lR9;
112 >      std::vector<Double_t> fDataEnCorr_EE_hR9;
113 >      std::vector<Double_t> fDataEnCorr_EE_lR9;
114 >
115 >      std::vector<UInt_t> fRunStart;
116 >      std::vector<UInt_t> fRunEnd;
117 >
118 >      Double_t fMCSmear_EB_hR9;
119 >      Double_t fMCSmear_EB_lR9;
120 >      Double_t fMCSmear_EE_hR9;
121 >      Double_t fMCSmear_EE_lR9;
122 >
123 >      Bool_t fIsData;
124  
125        TNtuple* hCiCTuple;
126  
127 +      TRandom3* rng;
128 +
129 +      TString fMCParticleName;
130 +      const MCParticleCol* fMCParticles;
131 +
132 +      TString                  fPileUpName;
133 +      const PileupInfoCol     *fPileUp;
134 +
135      ClassDef(PhotonCiCMod, 1) // Photon identification module
136    };
137   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines