190 |
|
ifstream f(ctrl.inputfiles.c_str()); |
191 |
|
while (f >> fname) { |
192 |
|
if( !(strncmp( fname.c_str(), "#", 1 ) ) ) continue; // skip commented lines |
193 |
< |
if(fname.find("/store/") != string::npos) fname = "root://eoscms//"+fname; |
193 |
> |
//if(fname.find("/store/") != string::npos) fname = "root://eoscms//"+fname; |
194 |
|
cout << "adding inputfile : " << fname.c_str() << endl; |
195 |
|
entrymap[string(fname.c_str())] = unskimmedEntries(fname.c_str()); |
196 |
|
cerr << "unskimmed entries: " << entrymap[string(fname.c_str())] << endl; |
200 |
|
runchain->AddFile(fname.c_str()); |
201 |
|
} |
202 |
|
} else { |
203 |
< |
if(ctrl.inputfile.find("/store/") != string::npos) ctrl.inputfile = "root://eoscms//"+ctrl.inputfile; |
203 |
> |
//if(ctrl.inputfile.find("/store/") != string::npos) ctrl.inputfile = "root://eoscms//"+ctrl.inputfile; |
204 |
|
cout << "adding inputfile : " << ctrl.inputfile.c_str() << endl; |
205 |
|
unsigned unsk_ents = unskimmedEntries(ctrl.inputfile.c_str()); |
206 |
|
entrymap[string(ctrl.inputfile.c_str())] = unsk_ents; |
280 |
|
initMassErrors(); |
281 |
|
ti.dump(); |
282 |
|
|
283 |
< |
TFile tmp_file("tmp_file.root"); |
283 |
> |
{ |
284 |
> |
TFile tmp_file("tmp_file.root","RECREATE"); |
285 |
> |
} |
286 |
|
|
287 |
|
if(ctrl.do_eregression) { |
288 |
|
string regPath("EGamma/EGammaAnalysisTools/data/eleEnergyRegWeights_V1.root"); |
291 |
|
electron_momentum_correction.initialize_regression(regPath); |
292 |
|
} |
293 |
|
|
292 |
– |
if(ctrl.do_escale) { |
293 |
– |
if(ctrl.mc) { |
294 |
– |
if(ctrl.era == 2011) ctrl.smearing_scaling_dataset = "Fall11"; |
295 |
– |
else ctrl.smearing_scaling_dataset = "Summer12_DR53X_HCP2012"; |
296 |
– |
} else { |
297 |
– |
if(ctrl.era == 2011) ctrl.smearing_scaling_dataset = "Jan16ReReco"; |
298 |
– |
else ctrl.smearing_scaling_dataset = "Moriond2013"; |
299 |
– |
} |
300 |
– |
} |
294 |
|
if(ctrl.correct_muon_momentum) { |
295 |
|
muCorr = new MuCorr; |
296 |
|
muCorr->corr2011 = new rochcor; |
516 |
|
<< setw(9) << thisCount["4e"] << setw(9) << thisCount["4m"] << setw(9) << thisCount["2e2m"] << ")" << endl; |
517 |
|
} |
518 |
|
|
526 |
– |
tmp_file.Close(); |
527 |
– |
|
519 |
|
} |
520 |
|
//---------------------------------------------------------------------------------------- |
521 |
|
void addDummyZ2Lepotons(EventData &ret4l) |