233 |
|
//---------------------------------------------------- |
234 |
|
for(int i=0; i<muonArr->GetEntries(); i++) |
235 |
|
{ |
236 |
< |
const mithep::Muon *mu = (mithep::Muon*)((*muonArr)[i]); |
237 |
< |
|
236 |
> |
const mithep::Muon *mu = (mithep::Muon*)((*muonArr)[i]); |
237 |
> |
|
238 |
|
SelectionStatus musel; |
239 |
|
if(ctrl.debug) cout << "musel.status before anything: " << musel.getStatus() << endl; |
240 |
|
|
460 |
|
} else { |
461 |
|
passingLeptons.push_back(lepvec[i]); |
462 |
|
} |
463 |
– |
#ifndef SYNC |
463 |
|
if( !already_pushed && fabs(lepvec[i].ip3dSig)>4 ) |
464 |
< |
pt_of_leptons_to_erase.push_back(lepvec[i].vec.Pt()); |
466 |
< |
#endif |
464 |
> |
pt_of_leptons_to_erase.push_back(lepvec[i].vec.Pt()); |
465 |
|
} |
466 |
< |
for( int i=0; i<pt_of_leptons_to_erase.size(); i++ ) { |
466 |
> |
for( int i=0; i<pt_of_leptons_to_erase.size(); i++ ) { |
467 |
|
for( vector<SimpleLepton>::iterator it=lepvec.begin(); |
468 |
|
it != lepvec.end(); it++ ) { |
469 |
|
SimpleLepton flep = *it; |
494 |
|
vector<SimpleLepton> lepvec_i = lepvec; |
495 |
|
vector<SimpleLepton> lepvec_j = lepvec; |
496 |
|
|
497 |
< |
if( ctrl.doFSR ) { |
498 |
< |
cout << endl; |
499 |
< |
cout << "----------------> FSR ("<<i<<","<<j<<") <----------------------" << endl; |
497 |
> |
if( ctrl.doFSR ) { |
498 |
> |
cout << endl; |
499 |
> |
cout << "----------------> FSR ("<<i<<","<<j<<") <----------------------" << endl; |
500 |
|
photonsToVeto.clear(); |
501 |
|
float old_pt_i = lepvec[i].vec.Pt(); |
502 |
|
float old_pt_j = lepvec[j].vec.Pt(); |
549 |
|
if( recover_typeII_Photon( ctrl, newmu, j, lepvec_j, pfCandidates ) ) { |
550 |
|
if(ctrl.debug) cout << "FSR TYPEII :: oldpt: " << old_pt_j |
551 |
|
<< "\tnewpt: " << lepvec_j[j].vec.Pt() |
554 |
– |
|
552 |
|
<< "\tindex: " << j |
553 |
|
<< endl; |
554 |
|
//lepvec[j].fsrRecoveryAttempted=true; |
833 |
|
(ZCandidatesLeptons[best_Z2_index].first.vec) + |
834 |
|
(ZCandidatesLeptons[best_Z2_index].second.vec); |
835 |
|
|
836 |
< |
if( zzvec.M() > 70. ) { |
836 |
> |
if( zzvec.M() > 70. ) { |
837 |
> |
if(ctrl.debug) cout << "passes mzz > 70, mzz: " << zzvec.M() << endl; |
838 |
|
ret.status.selectionBits.flip(PASS_m4l_GT_70); |
839 |
|
cutvec[PASS_m4l_GT_70] +=1; |
840 |
|
zzcutvec[ZZtype][PASS_m4l_GT_70] += 1; |
844 |
|
} |
845 |
|
|
846 |
|
if( zzvec.M() > 100. && (ret.Z2leptons[0].vec+ret.Z2leptons[1].vec).M() > 12) { |
847 |
+ |
if(ctrl.debug) cout << "passes mzz > 100, mzz: " << zzvec.M() << "\t mZ2 > 12" << endl; |
848 |
|
ret.status.selectionBits.flip(PASS_m4l_GT_100); |
849 |
|
cutvec[PASS_m4l_GT_100] +=1; |
850 |
|
zzcutvec[ZZtype][PASS_m4l_GT_100] += 1; |