ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/CmsHi/JetAnalysis/src/HiJetMatchAnalyzer.cc
(Generate patch)

Comparing UserCode/CmsHi/JetAnalysis/src/HiJetMatchAnalyzer.cc (file contents):
Revision 1.1 by yilmaz, Tue Sep 20 19:48:45 2011 UTC vs.
Revision 1.2 by yilmaz, Sun Apr 22 19:12:44 2012 UTC

# Line 208 | Line 208 | HiJetMatchAnalyzer::HiJetMatchAnalyzer(c
208  
209   {
210  
211   levels_ = iConfig.getUntrackedParameter<string>("corrLevels","L2Relative:L3Absolute");
212
213   algo_ = iConfig.getUntrackedParameter<string>("algo","IC5Calo");
214   tags_ = "";
215
216   string l[2] = {"L2Relative","L3Absolute"};
217
218   for(int i = 0; i <2; ++i){
219      edm::FileInPath fip("CondFormats/JetMETObjects/data/Spring10_"+l[i]+"_"+algo_+".txt");
220      tags_ += fip.fullPath();
221      if(i < 2 - 1)tags_ +=":";
222   }
223
224   jetCorrector_ = new FactorizedJetCorrector(levels_, tags_);
225
211     //now do what ever initialization is needed
212    matchR_ = iConfig.getUntrackedParameter<double>("matchR",0.25);
213  
# Line 263 | Line 248 | HiJetMatchAnalyzer::HiJetMatchAnalyzer(c
248     }
249  
250  
251 +   if(correctJets_){
252 +
253 +      levels_ = iConfig.getUntrackedParameter<string>("corrLevels","L2Relative:L3Absolute");
254 +
255 +      algo_ = iConfig.getUntrackedParameter<string>("algo","IC5Calo");
256 +      tags_ = "";
257 +
258 +      string l[2] = {"L2Relative","L3Absolute"};
259 +
260 +      for(int i = 0; i <2; ++i){
261 +         edm::FileInPath fip("CondFormats/JetMETObjects/data/Spring10_"+l[i]+"_"+algo_+".txt");
262 +         tags_ += fip.fullPath();
263 +         if(i < 2 - 1)tags_ +=":";
264 +      }
265 +
266 +      jetCorrector_ = new FactorizedJetCorrector(levels_, tags_);
267 +   }
268 +
269 +
270 +
271 +
272   }
273  
274  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines