ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/LeptonSelection/src/MuonSelection.cc
(Generate patch)

Comparing UserCode/MitHzz4l/LeptonSelection/src/MuonSelection.cc (file contents):
Revision 1.37 by dkralph, Tue Oct 23 10:42:07 2012 UTC vs.
Revision 1.38 by dkralph, Mon Dec 17 17:12:27 2012 UTC

# Line 209 | Line 209 | SelectionStatus muonReferencePreSelectio
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   //--------------------------------------------------------------------------------------------------

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines