[Rivet-svn] r2702 - trunk/src/Analyses

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Sep 23 16:22:25 BST 2010


Author: buckley
Date: Thu Sep 23 16:22:24 2010
New Revision: 2702

Log:
Tidying

Modified:
   trunk/src/Analyses/D0_2008_S7837160.cc

Modified: trunk/src/Analyses/D0_2008_S7837160.cc
==============================================================================
--- trunk/src/Analyses/D0_2008_S7837160.cc	Thu Sep 23 16:21:40 2010	(r2701)
+++ trunk/src/Analyses/D0_2008_S7837160.cc	Thu Sep 23 16:22:24 2010	(r2702)
@@ -64,7 +64,7 @@
       /// @todo Any ETmiss cut?
       FourMomentum p_e;
       int chg_e = 0;
-      foreach (const Particle& l, wf.constituentsFinalState().particles()) {
+      foreach (const Particle& l, wf.constituentLeptonsFinalState().particles()) {
         const FourMomentum pl = l.momentum();
         if (abs(l.pdgId()) == ELECTRON) {
           chg_e = PID::threeCharge(l.pdgId());
@@ -75,12 +75,11 @@
           vetoEvent;
         }
       }
+      if (p_e.eta() < 0) chg_e *= -1;
       assert(chg_e != 0);
 
       const double weight = event.weight();
-      double eta_e = p_e.pseudorapidity();
-      if(eta_e<0) chg_e *= -1;
-      eta_e = fabs(eta_e);
+      const double eta_e = fabs(p_e.eta());
       const double et_e = p_e.Et();
       if (et_e < 35*GeV) {
         // 25 <= ET < 35


More information about the Rivet-svn mailing list