209 |
|
{ |
210 |
|
bool ret = true; |
211 |
|
|
212 |
< |
if(ctrl.debug) cout << "inside muonpresel ... " << endl; |
212 |
> |
// if(ctrl.debug) cout << "inside muonpresel ... " << endl; |
213 |
|
ret &= ( fabs(mu->Ip3dPVSignificance()) < 100 ); |
214 |
< |
if(ctrl.debug) cout << "and pass IP (" << mu->Ip3dPVSignificance() << ") ? ... " << ret << endl; |
214 |
> |
// if(ctrl.debug) cout << "and pass IP (" << mu->Ip3dPVSignificance() << ") ? ... " << ret << endl; |
215 |
|
ret &= ( mu->Pt() >= 5 ); |
216 |
< |
if(ctrl.debug) cout << "and >5 GeV (" << mu->Pt() << ") ? ... " << ret << endl; |
216 |
> |
// if(ctrl.debug) cout << "and >5 GeV (" << mu->Pt() << ") ? ... " << ret << endl; |
217 |
|
ret &= ( fabs(mu->Eta()) <= 2.4 ); |
218 |
< |
if(ctrl.debug) cout << "and < 2.4 eta (" << mu->Eta() << ")? ... " << ret << endl; |
218 |
> |
// if(ctrl.debug) cout << "and < 2.4 eta (" << mu->Eta() << ")? ... " << ret << endl; |
219 |
|
ret &= ( (mu->IsTrackerMuon() && ( mu->Quality().QualityMask().Mask() & mithep::MuonQuality::AllArbitrated)) || mu->IsGlobalMuon() ); |
220 |
< |
if(ctrl.debug) cout << "is Tracker or Global? ... " << ret << endl; |
220 |
> |
// if(ctrl.debug) cout << "is Tracker or Global? ... " << ret << endl; |
221 |
|
ret &= (mu->HasTrackerTrk() && |
222 |
|
fabs(mu->TrackerTrk()->D0Corrected(*vtx)) < 0.5 && |
223 |
|
fabs(mu->TrackerTrk()->DzCorrected(*vtx)) < 1.0); |
224 |
< |
if(ctrl.debug) cout << "d0 and dz? ... " << ret << endl; |
224 |
> |
// if(ctrl.debug) cout << "d0 and dz? ... " << ret << endl; |
225 |
|
|
226 |
|
SelectionStatus status; |
227 |
|
if( ret ) status.setStatus(SelectionStatus::PRESELECTION); |
228 |
< |
if(ctrl.debug) cout << "muon presel returning status : " << status.getStatus() << endl; |
228 |
> |
// if(ctrl.debug) cout << "muon presel returning status : " << status.getStatus() << endl; |
229 |
|
return status; |
230 |
|
} |
231 |
|
//-------------------------------------------------------------------------------------------------- |