249 |
|
chain->SetBranchAddress(fMuonName, &muonArr); |
250 |
|
chain->SetBranchAddress(fPrimVtxName, &vtxArr); |
251 |
|
chain->SetBranchAddress(fPFCandidateName, &pfArr); |
252 |
< |
chain->SetBranchAddress(fPileupInfoName, &puArr); |
252 |
> |
if( ctrl.mc ) chain->SetBranchAddress(fPileupInfoName, &puArr); |
253 |
|
chain->SetBranchAddress(fPileupEnergyDensityName, &puDArr); |
254 |
|
chain->SetBranchAddress(fTrackName, &trkArr); |
255 |
|
chain->SetBranchAddress(fTriggerMaskName, &trigMask); |
282 |
|
{ |
283 |
|
chain->GetEntry(ientry); |
284 |
|
if(!(ientry%1000)) cerr << "entry: " << ientry << endl; |
285 |
– |
if( ientry > 100) break; |
285 |
|
setPV( ctrl, vtxArr, vtx); |
286 |
|
|
287 |
|
|
306 |
|
// |
307 |
|
// JSON |
308 |
|
// |
309 |
+ |
/* |
310 |
|
RunLumiRangeMap::RunLumiPairType rl(info->RunNum(), info->LumiSec()); |
311 |
|
if( !(rlrm.HasRunLumi(rl)) ) { |
312 |
|
if( ctrl.debug ) cout << "\tfails JSON" << endl; |
313 |
|
continue; |
314 |
|
} |
315 |
+ |
*/ |
316 |
|
// |
317 |
|
// trigger |
318 |
|
// |
401 |
|
// if( pass > 3 ) break; |
402 |
|
|
403 |
|
} else if( ret4l.status.selectionBits.test(PASS_ZCANDIDATE) ) { // save for fakes ... |
404 |
< |
cout << "failingLeptons : " << failingLeptons.size() << endl; |
405 |
< |
for( int f=0; f<failingLeptons.size(); f++ ) { |
406 |
< |
SimpleLepton l = failingLeptons[f]; |
407 |
< |
cout << "f: " << f << "\t" |
408 |
< |
<< "type: " << l.type << "\t" |
409 |
< |
<< "pT: " << l.vec.Pt() << "\t" |
410 |
< |
<< "eta: " << l.vec.Eta() |
411 |
< |
<< endl; |
404 |
> |
if(ctrl.debug) { |
405 |
> |
cout << "failingLeptons : " << failingLeptons.size() << endl; |
406 |
> |
for( int f=0; f<failingLeptons.size(); f++ ) { |
407 |
> |
SimpleLepton l = failingLeptons[f]; |
408 |
> |
cout << "f: " << f << "\t" |
409 |
> |
<< "type: " << l.type << "\t" |
410 |
> |
<< "pT: " << l.vec.Pt() << "\t" |
411 |
> |
<< "eta: " << l.vec.Eta() |
412 |
> |
<< endl; |
413 |
> |
} |
414 |
|
} |
412 |
– |
/* |
413 |
– |
cout << "passingLeptons : " << passingLeptons.GetSize() << endl; |
414 |
– |
for( int f=0; f<passingLeptons.GetSize(); f++ ) { |
415 |
– |
cout << "f: " << f << "\t" |
416 |
– |
<< "type: " << passingLeptons.At(f).type << "\t" |
417 |
– |
<< "pT: " << passingLeptons.At(f).vec.Pt() |
418 |
– |
<< endl; |
419 |
– |
} |
420 |
– |
*/ |
421 |
– |
cout << endl; |
415 |
|
foTree.Fill(); |
416 |
|
} |
417 |
|
} |