225 |
|
TH1F * h_wf11_hpt; |
226 |
|
if(ctrl.mc) { |
227 |
|
nt.makeWeightBranch(weights); |
228 |
< |
// nt.makeGenInfoBranch(geninfo); |
228 |
> |
if(ctrl.fillGen ) nt.makeGenInfoBranch(geninfo); |
229 |
|
initEfficiencyWeights(); |
230 |
|
initPUWeights(); |
231 |
|
|
328 |
|
chain->GetEntry(ientry); |
329 |
|
if(!(ientry%1000)) cerr << "entry: " << ientry << endl; |
330 |
|
|
331 |
< |
#ifdef HACKED_RHOS |
332 |
< |
float rho = evtrhoMap[info->EvtNum()]; |
333 |
< |
#endif |
331 |
> |
//if( info->EvtNum() != 217998 ) continue; |
332 |
> |
// if( info->EvtNum() != 238893 ) continue; |
333 |
> |
// if( info->EvtNum() != 289066 ) continue; |
334 |
> |
|
335 |
|
string fname = string(chain->GetFile()->GetEndpointUrl()->GetFile()); |
336 |
|
setEra( fname, ctrl ); |
337 |
|
|
390 |
|
fillTriggerNames(hltTable, hltTableStrings ); |
391 |
|
} |
392 |
|
if( ctrl.debug ) cout << "file is : " << currentFile << endl; |
393 |
< |
fillTriggerNames( hltTable, trigMask, triggerBits ); |
393 |
> |
fillTriggerBits( hltTable, trigMask, triggerBits ); |
394 |
|
passes_HLT_MC = true; // passed to apply as extern global, just for sync |
395 |
|
if( !passHLTMC(triggerBits, info->RunNum(), info->EvtNum(), k2012_MC ) ) { |
396 |
|
passes_HLT_MC = false; |
418 |
|
} |
419 |
|
if( ctrl.debug ) cout << "file is : " << currentFile << endl; |
420 |
|
/* |
421 |
< |
fillTriggerNames( hltTable, trigMask, triggerBits ); |
421 |
> |
fillTriggerBits( hltTable, trigMask, triggerBits ); |
422 |
|
if( !passHLT(triggerBits, info->RunNum(), info->EvtNum() ) ) { |
423 |
|
if( ctrl.debug ) cout << "\tfails trigger ... " << endl; |
424 |
|
continue; |
438 |
|
apply_HZZ4L_reference_selection(ctrl, info, |
439 |
|
vtxArr, |
440 |
|
pfArr, |
440 |
– |
#ifdef HACKED_RHOS |
441 |
– |
rho, |
442 |
– |
#else |
441 |
|
puDArr, |
444 |
– |
#endif |
442 |
|
electronArr, |
443 |
|
&electronReferencePreSelection, |
444 |
|
&electronReferenceIDMVASelectionV1, |