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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Sun May 20 10:18:52 BST 2012


Author: richardn
Date: Sun May 20 10:18:52 2012
New Revision: 3734

Log:
minor cleanup

Modified:
   trunk/src/Analyses/ATLAS_2011_S9212353.cc

Modified: trunk/src/Analyses/ATLAS_2011_S9212353.cc
==============================================================================
--- trunk/src/Analyses/ATLAS_2011_S9212353.cc	Sun May 20 10:09:07 2012	(r3733)
+++ trunk/src/Analyses/ATLAS_2011_S9212353.cc	Sun May 20 10:18:52 2012	(r3734)
@@ -164,7 +164,7 @@
       }
 
       // discard jets that overlap with electrons
-      Jets cand_jets_2;
+      Jets recon_jets;
       foreach ( const Jet& jet, cand_jets ) {
 	  bool away_from_e = true;
 	  foreach ( const Particle & e, cand_e ) {
@@ -174,14 +174,14 @@
 	    }
 	  }
 	  if ( away_from_e )
-	    cand_jets_2.push_back( jet );
+	    recon_jets.push_back( jet );
       }
 
       // only consider leptons far from jet
       ParticleVector recon_e, recon_mu;
       foreach ( const Particle & e, cand_e ) {
         bool e_near_jet = false;
-	foreach ( const Jet& jet, cand_jets_2 ) {
+	foreach ( const Jet& jet, recon_jets ) {
           if ( deltaR(e.momentum(),jet.momentum()) < 0.4 &&
 	       deltaR(e.momentum(),jet.momentum()) > 0.2 )
 	    e_near_jet = true;
@@ -192,7 +192,7 @@
 
       foreach ( const Particle & mu, cand_mu ) {
 	bool mu_near_jet = false;
-	foreach ( const Jet& jet, cand_jets_2 ) {
+	foreach ( const Jet& jet, recon_jets ) {
 	  if ( deltaR(mu.momentum(),jet.momentum()) < 0.4 )
 	    mu_near_jet = true;
 	}
@@ -209,12 +209,6 @@
       }
       double eTmiss = pTmiss.pT();
 
-      // final jet filter
-      Jets recon_jets;
-      foreach ( const Jet& jet, cand_jets_2 ) {
-	  recon_jets.push_back( jet );
-      }
-
 
       // ==================== observables ====================
 


More information about the Rivet-svn mailing list