|
[Rivet-svn] r2344 - trunk/src/Analysesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgFri Mar 19 13:27:57 GMT 2010
Author: fsiegert Date: Fri Mar 19 13:27:57 2010 New Revision: 2344 Log: Small performance improvement. Modified: trunk/src/Analyses/D0_2009_S8349509.cc Modified: trunk/src/Analyses/D0_2009_S8349509.cc ============================================================================== --- trunk/src/Analyses/D0_2009_S8349509.cc Thu Mar 18 19:03:06 2010 (r2343) +++ trunk/src/Analyses/D0_2009_S8349509.cc Fri Mar 19 13:27:57 2010 (r2344) @@ -16,7 +16,8 @@ //@{ /// Constructor - D0_2009_S8349509() : Analysis("D0_2009_S8349509") + D0_2009_S8349509() : Analysis("D0_2009_S8349509"), + _inclusive_Z_sumofweights(0.0) { setBeams(PROTON, ANTIPROTON); } @@ -55,6 +56,11 @@ if (zfinder.particles().size()==1) { // count inclusive sum of weights for histogram normalisation _inclusive_Z_sumofweights += weight; + + const FourMomentum Zmom = zfinder.particles()[0].momentum(); + if (Zmom.pT()<25.0*GeV) { + vetoEvent; + } Jets jets; foreach (const Jet& j, applyProjection<JetAlg>(event, "ConeFinder").jetsByPt(20.0*GeV)) { @@ -80,7 +86,6 @@ } } - const FourMomentum Zmom = zfinder.particles()[0].momentum(); const FourMomentum jetmom = jets[0].momentum(); double yZ = Zmom.rapidity(); double yjet = jetmom.rapidity();
More information about the Rivet-svn mailing list |