ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/AnaTools/plugins/OSUAnalysis.cc
(Generate patch)

Comparing UserCode/OSUT3Analysis/AnaTools/plugins/OSUAnalysis.cc (file contents):
Revision 1.99 by biliu, Thu Jul 11 16:40:01 2013 UTC vs.
Revision 1.100 by ahart, Tue Jul 16 19:48:04 2013 UTC

# Line 4046 | Line 4046 | OSUAnalysis::valueLookup (const BNstop*
4046      }
4047    }
4048  
4049 +  else if (variable == "decaysToTau"){
4050 +    value = abs (object->daughter0Id) == 15 || abs (object->daughter1Id) == 15;
4051 +  }
4052 +
4053  
4054  
4055  
# Line 4870 | Line 4874 | OSUAnalysis::leadMuonPair ()
4874                     newPt1 (mu1->px, mu1->py),
4875                     oldPt0 (leadMuonPair.first->px, leadMuonPair.first->py),
4876                     oldPt1 (leadMuonPair.second->px, leadMuonPair.second->py);
4877 <          newPt0 += newPt1;
4874 <          oldPt0 += oldPt1;
4875 <          if(newPt0.Mod() > oldPt0.Mod())
4877 >          if(newPt0.Mod () + newPt1.Mod () > oldPt0.Mod() + oldPt1.Mod ())
4878              {
4879                leadMuonPair.first = mu0;
4880                leadMuonPair.second = mu1;
# Line 4913 | Line 4915 | OSUAnalysis::leadElectronPair ()
4915                     newPt1 (el1->px, el1->py),
4916                     oldPt0 (leadElectronPair.first->px, leadElectronPair.first->py),
4917                     oldPt1 (leadElectronPair.second->px, leadElectronPair.second->py);
4918 <          newPt0 += newPt1;
4917 <          oldPt0 += oldPt1;
4918 <          if(newPt0.Mod() > oldPt0.Mod())
4918 >          if(newPt0.Mod () + newPt1.Mod () > oldPt0.Mod() + oldPt1.Mod ())
4919              {
4920                leadElectronPair.first = el0;
4921                leadElectronPair.second = el1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines