328 |
|
chain->GetEntry(ientry); |
329 |
|
if(!(ientry%1000)) cerr << "entry: " << ientry << endl; |
330 |
|
|
331 |
– |
//if( info->EvtNum() != 217998 ) continue; |
332 |
– |
// if( info->EvtNum() != 238893 ) continue; |
333 |
– |
// if( info->EvtNum() != 289066 ) continue; |
334 |
– |
|
331 |
|
string fname = string(chain->GetFile()->GetEndpointUrl()->GetFile()); |
332 |
|
setEra( fname, ctrl ); |
333 |
|
|
395 |
|
// |
396 |
|
// JSON |
397 |
|
// |
398 |
< |
/* |
399 |
< |
RunLumiRangeMap::RunLumiPairType rl(info->RunNum(), info->LumiSec()); |
400 |
< |
if( !(rlrm.HasRunLumi(rl)) ) { |
401 |
< |
if( ctrl.debug ) cout << "\tfails JSON" << endl; |
402 |
< |
continue; |
398 |
> |
if(!(ctrl.noJSON) ) { |
399 |
> |
RunLumiRangeMap::RunLumiPairType rl(info->RunNum(), info->LumiSec()); |
400 |
> |
if( !(rlrm.HasRunLumi(rl)) ) { |
401 |
> |
if( ctrl.debug ) cout << "\tfails JSON" << endl; |
402 |
> |
continue; |
403 |
> |
} |
404 |
|
} |
405 |
< |
*/ |
405 |
> |
|
406 |
|
// |
407 |
|
// trigger |
408 |
|
// |
494 |
|
// if( pass > 3 ) break; |
495 |
|
|
496 |
|
} else if( ret4l.status.selectionBits.test(PASS_GOODZ1) && |
497 |
< |
ret4l.status.selectionBits.to_ulong() < PASS_4L) { // save for fakes ... |
498 |
< |
// if(ctrl.debug) { |
497 |
> |
ret4l.status.selectionBits.to_ulong() < (1UL<<PASS_4L)) { // save for fakes ... |
498 |
> |
if(ctrl.debug) { |
499 |
|
cout << "failingLeptons : " << failingLeptons.size() << endl; |
500 |
|
for( int f=0; f<failingLeptons.size(); f++ ) { |
501 |
|
SimpleLepton l = failingLeptons[f]; |
504 |
|
<< "pT: " << l.vec.Pt() << "\t" |
505 |
|
<< "eta: " << l.vec.Eta() |
506 |
|
<< endl; |
507 |
< |
// } |
507 |
> |
} |
508 |
|
} |
509 |
|
foTree.Fill(); |
510 |
+ |
} else { |
511 |
+ |
cout << "failing with some other code : " << ret4l.status.selectionBits << endl; |
512 |
|
} |
513 |
|
} |
514 |
|
|
603 |
|
// r11b |
604 |
|
rlrm.AddJSONFile(std::string("./data/Cert_160404-180252_7TeV_PromptReco_Collisions11_JSON.txt")); |
605 |
|
*/ |
606 |
+ |
|
607 |
+ |
// 2012 only for now ... |
608 |
+ |
rlrm.AddJSONFile(std::string("./data/Cert_190456-194479_8TeV_PromptReco_Collisions12_JSON.txt")); |
609 |
+ |
|
610 |
|
}; |
611 |
|
|
612 |
|
|