ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/src/MuonTools.cc
(Generate patch)

Comparing UserCode/MitPhysics/Utils/src/MuonTools.cc (file contents):
Revision 1.13 by ceballos, Fri Oct 29 16:18:05 2010 UTC vs.
Revision 1.14 by ceballos, Fri Jan 21 11:25:29 2011 UTC

# Line 429 | Line 429 | TH2D *MuonTools::LoadHisto(const char *n
429    return ret;
430   }
431   //--------------------------------------------------------------------------------------------------
432 < Bool_t MuonTools::PassD0Cut(const Muon *mu, const VertexCol *vertices, Double_t fD0Cut,
433 <                            Bool_t fReverseD0Cut)
432 > Bool_t MuonTools::PassD0Cut(const Muon *mu, const VertexCol *vertices, Double_t fD0Cut)
433   {
434    Bool_t d0cut = kFALSE;
435    const Track *mt = mu->BestTrk();
# Line 445 | Line 444 | Bool_t MuonTools::PassD0Cut(const Muon *
444      }
445    }
446    if(d0_real < fD0Cut) d0cut = kTRUE;
448
449  if     (fReverseD0Cut == kTRUE &&
450          d0cut == kFALSE && d0_real < 0.05)
451    d0cut = kTRUE;
452  else if(fReverseD0Cut == kTRUE)
453    d0cut = kFALSE;
447    
448    return d0cut;
449   }
450  
451   //--------------------------------------------------------------------------------------------------
452 < Bool_t MuonTools::PassD0Cut(const Muon *mu, const BeamSpotCol *beamspots, Double_t fD0Cut,
460 <                                Bool_t fReverseD0Cut)
452 > Bool_t MuonTools::PassD0Cut(const Muon *mu, const BeamSpotCol *beamspots, Double_t fD0Cut)
453   {
454    Bool_t d0cut = kFALSE;
455    const Track *mt = mu->BestTrk();
# Line 471 | Line 463 | Bool_t MuonTools::PassD0Cut(const Muon *
463    }
464    if(d0_real < fD0Cut) d0cut = kTRUE;
465    
474  if     (fReverseD0Cut == kTRUE &&
475          d0cut == kFALSE && d0_real < 0.05)
476    d0cut = kTRUE;
477  else if(fReverseD0Cut == kTRUE)
478    d0cut = kFALSE;
479  
466    return d0cut;
467   }
468  
# Line 491 | Line 477 | Bool_t MuonTools::PassSoftMuonCut(const
477    
478    if(mu->BestTrk()->NHits() <= 10) return kFALSE;
479  
480 <  if(!PassD0Cut(mu, vertices, 0.2, kFALSE)) return kFALSE;
480 >  if(!PassD0Cut(mu, vertices, 0.2)) return kFALSE;
481    
482    Double_t totalIso = 1.0 * mu->IsoR03SumPt() +
483                        1.0 * mu->IsoR03EmEt() +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines