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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed Jun 8 13:55:25 BST 2011


Author: dgrell
Date: Wed Jun  8 13:55:24 2011
New Revision: 3137

Log:
Fix for ATLAS susy analysis.

Modified:
   trunk/src/Analyses/ATLAS_2011_S8983313.cc

Modified: trunk/src/Analyses/ATLAS_2011_S8983313.cc
==============================================================================
--- trunk/src/Analyses/ATLAS_2011_S8983313.cc	Wed Jun  8 08:52:47 2011	(r3136)
+++ trunk/src/Analyses/ATLAS_2011_S8983313.cc	Wed Jun  8 13:55:24 2011	(r3137)
@@ -144,17 +144,32 @@
       }
 
       ParticleVector recon_e, recon_mu;
-      foreach ( const Jet& jet, cand_jets_2 ) {
-	foreach ( const Particle & e, cand_e ) {
-	  if ( deltaR(e.momentum(),jet.momentum()) >= 0.4 )
-	    recon_e.push_back( e );
-	}
-	foreach ( const Particle & mu, cand_mu ) {
-	  if ( deltaR(mu.momentum(),jet.momentum()) >= 0.4 )
-	    recon_mu.push_back( mu );
+
+      foreach ( const Particle & e, cand_e ) {
+	bool away = true;
+	foreach ( const Jet& jet, cand_jets_2 ) {
+	  if ( deltaR(e.momentum(),jet.momentum()) < 0.4 ) {
+	    away = false;
+	    break;
+	  }
+	}
+	if ( away )
+	  recon_e.push_back( e );
+      }
+
+      foreach ( const Particle & mu, cand_mu ) {
+	bool away = true;
+	foreach ( const Jet& jet, cand_jets_2 ) {
+	  if ( deltaR(mu.momentum(),jet.momentum()) < 0.4 ) {
+	    away = false;
+	    break;
+	  }
 	}
+	if ( away )
+	  recon_mu.push_back( mu );
       }
 
+
       // pTmiss
       ParticleVector vfs_particles = applyProjection<VisibleFinalState>(event, "vfs").particles();
       FourMomentum pTmiss;


More information about the Rivet-svn mailing list