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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed Apr 20 09:59:23 BST 2011


Author: hoeth
Date: Wed Apr 20 09:59:23 2011
New Revision: 3062

Log:
cosmetic changes to ATLAS_2011_S9002537

Modified:
   trunk/src/Analyses/ATLAS_2011_S9002537.cc

Modified: trunk/src/Analyses/ATLAS_2011_S9002537.cc
==============================================================================
--- trunk/src/Analyses/ATLAS_2011_S9002537.cc	Tue Apr 19 18:52:58 2011	(r3061)
+++ trunk/src/Analyses/ATLAS_2011_S9002537.cc	Wed Apr 20 09:59:23 2011	(r3062)
@@ -59,7 +59,7 @@
       }
       if (selected_muons.size()!=1) vetoEvent;
 
-      const FourMomentum muonmom = selected_muons.begin()->momentum();
+      const FourMomentum muonmom = selected_muons[0].momentum();
       const MissingMomentum& missmom = applyProjection<MissingMomentum>(event, "MissingMomentum");
       FourMomentum missvec = -missmom.visibleMomentum();
       if (fabs(missvec.Et())<25) vetoEvent;
@@ -67,7 +67,7 @@
       double MTW = sqrt(2.*missvec.pT()*muonmom.pT()*(1.-cos(deltaPhi(missvec.phi(),muonmom.phi()))));
       if (MTW<40.*GeV) vetoEvent;
 
-      if (selected_muons.begin()->pdgId()>0)
+      if (selected_muons[0].pdgId()>0)
         _h_minus->fill(muonmom.eta(),event.weight());
       else
         _h_plus->fill(muonmom.eta(),event.weight());
@@ -79,10 +79,9 @@
       int Nbins = _h_plus->axis().bins();
       std::vector<double> asym, asym_err;
       for (int i=0; i<Nbins; i++) {
-        double num(0.), denom(0.), err(0.);
-        num   = _h_plus->binHeight(i) - _h_minus->binHeight(i);
-        denom = _h_plus->binHeight(i) + _h_minus->binHeight(i);
-        err   = _h_plus->binError(i)  + _h_minus->binError(i);
+        double num   = _h_plus->binHeight(i) - _h_minus->binHeight(i);
+        double denom = _h_plus->binHeight(i) + _h_minus->binHeight(i);
+        double err   = _h_plus->binError(i)  + _h_minus->binError(i);
 
         if (num==0 || denom==0) {
           asym.push_back(0.);


More information about the Rivet-svn mailing list