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

Comparing UserCode/MitPhysics/Utils/src/ElectronTools.cc (file contents):
Revision 1.6 by ceballos, Thu May 27 09:24:50 2010 UTC vs.
Revision 1.7 by ceballos, Fri May 28 15:45:45 2010 UTC

# Line 649 | Line 649 | Int_t ElectronTools::PassTightId(const E
649  
650      // CAREFUL, I HAVE COMMENTED OUT WHAT SANI IS DOING
651      //Double_t iso_sum = tkIso + ecalIso + hcalIso;
652 <    Double_t iso_sum = (ele->TrackIsolationDr03() + ele->EcalRecHitIsoDr03() +
653 <                        ele->HcalTowerSumEtDr03() - 1.0) / ele->Pt();
652 >    Double_t iso_sum = (ele->TrackIsolationDr03() + TMath::Max(ele->EcalRecHitIsoDr03() - 1.0, 0.0) +
653 >                        ele->HcalTowerSumEtDr03()) / ele->Pt();
654      Double_t iso_sum_corrected = iso_sum*pow(40./scEt, 2);
655      if ((iso_sum < cutiso_sum[cat+bin*9]) &&
656          (iso_sum_corrected < cutiso_sumoet[cat+bin*9]))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines