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.31 by mingyang, Fri Jun 21 13:11:09 2013 UTC vs.
Revision 1.32 by mingyang, Fri Jun 21 19:04:27 2013 UTC

# Line 92 | Line 92 | namespace mithep
92  
93      void                SetPVName(const char *n)          { fPVName = n;                 }
94      void                SetPVFromBranch(bool b)           { fPVFromBranch = b;           }
95 <    void                SetIsData (Bool_t b) { fIsData = b;};
96 <
95 >    void                SetIsData (Bool_t b) { fIsData = b;}
96 >    void                Set2012HCP (Bool_t b) { f2012HCP = b;}
97  
98      void                SetShowerShapeType(const char *type) { fShowerShapeType        = type;    }
99  
# Line 142 | Line 142 | namespace mithep
142        fMCSmear_EEhighEta_lR9 = _EEhighEta_lR9;      
143      };
144  
145 +
146 +    void                AddEnCorrPerRun2012HCP( UInt_t sRun, UInt_t eRun,
147 +                                                Double_t corr_EBlowEta_hR9central,
148 +                                                Double_t corr_EBlowEta_hR9gap,
149 +                                                Double_t corr_EBlowEta_lR9central,
150 +                                                Double_t corr_EBlowEta_lR9gap,
151 +                                                Double_t corr_EBhighEta_hR9,
152 +                                                Double_t corr_EBhighEta_lR9,                                        
153 +                                                Double_t corr_EElowEta_hR9,
154 +                                                Double_t corr_EElowEta_lR9,
155 +                                                Double_t corr_EEhighEta_hR9,
156 +                                                Double_t corr_EEhighEta_lR9) {
157 +      fDataEnCorr_EBlowEta_hR9central.push_back(corr_EBlowEta_hR9central);
158 +      fDataEnCorr_EBlowEta_hR9gap.push_back(corr_EBlowEta_hR9gap);
159 +      fDataEnCorr_EBlowEta_lR9central.push_back(corr_EBlowEta_lR9central);
160 +      fDataEnCorr_EBlowEta_lR9gap.push_back(corr_EBlowEta_lR9gap);
161 +      fDataEnCorr_EBhighEta_hR9.push_back(corr_EBhighEta_hR9);
162 +      fDataEnCorr_EBhighEta_lR9.push_back(corr_EBhighEta_lR9);      
163 +      fDataEnCorr_EElowEta_hR9.push_back(corr_EElowEta_hR9);
164 +      fDataEnCorr_EElowEta_lR9.push_back(corr_EElowEta_lR9);      
165 +      fDataEnCorr_EEhighEta_hR9.push_back(corr_EEhighEta_hR9);
166 +      fDataEnCorr_EEhighEta_lR9.push_back(corr_EEhighEta_lR9);      
167 +      fRunStart.push_back         (sRun);
168 +      fRunEnd.push_back           (eRun);
169 +    };
170 +
171 +    void SetMCSmearFactors2012HCP(Double_t _EBlowEta_hR9central,
172 +                                  Double_t _EBlowEta_hR9gap,
173 +                                  Double_t _EBlowEta_lR9central,
174 +                                  Double_t _EBlowEta_lR9gap,
175 +                                  Double_t _EBhighEta_hR9,
176 +                                  Double_t _EBhighEta_lR9,
177 +                                  Double_t _EElowEta_hR9,
178 +                                  Double_t _EElowEta_lR9,
179 +                                  Double_t _EEhighEta_hR9,
180 +                                  Double_t _EEhighEta_lR9) {
181 +      fMCSmear_EBlowEta_hR9central = _EBlowEta_hR9central;
182 +      fMCSmear_EBlowEta_hR9gap = _EBlowEta_hR9gap;
183 +      fMCSmear_EBlowEta_lR9central = _EBlowEta_lR9central;
184 +      fMCSmear_EBlowEta_lR9gap = _EBlowEta_lR9gap;
185 +      fMCSmear_EBhighEta_hR9 = _EBhighEta_hR9;
186 +      fMCSmear_EBhighEta_lR9 = _EBhighEta_lR9;      
187 +      fMCSmear_EElowEta_hR9 = _EElowEta_hR9;
188 +      fMCSmear_EElowEta_lR9 = _EElowEta_lR9;
189 +      fMCSmear_EEhighEta_hR9 = _EEhighEta_hR9;
190 +      fMCSmear_EEhighEta_lR9 = _EEhighEta_lR9;      
191 +    };
192 +
193 +
194      void                SetGoodElectronsFromBranch(Bool_t b) { fGoodElectronsFromBranch = b; }
195      void                SetGoodElectronName(TString name) { fGoodElectronName = name; }
196  
# Line 197 | Line 246 | namespace mithep
246  
247        Int_t               FindRunRangeIdx(UInt_t run);
248        Double_t            GetDataEnCorr(Int_t runRange, PhotonTools::eScaleCats cat);
249 <      Double_t            GetMCSmearFac(PhotonTools::eScaleCats cat);
250 <
249 >      Double_t            GetMCSmearFac(PhotonTools::eScaleCats cat);   // last flag in case of special smearing for error computation
250 >      Double_t            GetDataEnCorrHCP(Int_t runRange, PhotonTools::eScaleCats cat);
251 >      Double_t            GetMCSmearFacHCP(PhotonTools::eScaleCats cat);   // last flag in case of special smearing for error computation
252 >      
253        TString             fPhotonBranchName;     //name of photon collection (input)
254        TString             fGoodPhotonsName;      //name of exported "good photon" collection
255        TString             fTrackBranchName;      // name of the track collection (only needed for PU corrected isolation)
# Line 280 | Line 331 | namespace mithep
331        Bool_t              fGoodElectronsFromBranch;
332        Bool_t              fIsData;
333  
334 +      Bool_t              f2012HCP;
335 +
336  
337        // showershape
338        TString                                fShowerShapeType;
# Line 294 | Line 347 | namespace mithep
347        std::vector<Double_t> fDataEnCorr_EBlowEta_hR9central;
348        std::vector<Double_t> fDataEnCorr_EBlowEta_hR9gap;
349        std::vector<Double_t> fDataEnCorr_EBlowEta_lR9;
350 +      std::vector<Double_t> fDataEnCorr_EBlowEta_lR9central;
351 +      std::vector<Double_t> fDataEnCorr_EBlowEta_lR9gap;
352        std::vector<Double_t> fDataEnCorr_EBhighEta_hR9;
353        std::vector<Double_t> fDataEnCorr_EBhighEta_lR9;    
354        std::vector<Double_t> fDataEnCorr_EElowEta_hR9;
355        std::vector<Double_t> fDataEnCorr_EElowEta_lR9;
356        std::vector<Double_t> fDataEnCorr_EEhighEta_hR9;
357        std::vector<Double_t> fDataEnCorr_EEhighEta_lR9;
358 <      
358 >    
359        std::vector<UInt_t>   fRunStart;
360        std::vector<UInt_t>   fRunEnd;
361        
362        Double_t              fMCSmear_EBlowEta_hR9central;
363        Double_t              fMCSmear_EBlowEta_hR9gap;
364        Double_t              fMCSmear_EBlowEta_lR9;
365 +      Double_t              fMCSmear_EBlowEta_lR9central;
366 +      Double_t              fMCSmear_EBlowEta_lR9gap;
367        Double_t              fMCSmear_EBhighEta_hR9;
368        Double_t              fMCSmear_EBhighEta_lR9;    
369        Double_t              fMCSmear_EElowEta_hR9;
370        Double_t              fMCSmear_EElowEta_lR9;
371        Double_t              fMCSmear_EEhighEta_hR9;
372        Double_t              fMCSmear_EEhighEta_lR9;    
373 <
373 >      
374        TRandom3* fRng;
375  
376        RhoUtilities::RhoType fRhoType;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines