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 |
|
|
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 |
|
|