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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Jun 10 18:34:29 BST 2010


Author: buckley
Date: Thu Jun 10 18:34:32 2010
New Revision: 2480

Log:
Teeny units protection fix in CDF 1988, reported problematic by Holger. It looks fine to me, and I don't get any negative weight bins when I run it with PYTHIA...

Modified:
   trunk/src/Analyses/CDF_1988_S1865951.cc

Modified: trunk/src/Analyses/CDF_1988_S1865951.cc
==============================================================================
--- trunk/src/Analyses/CDF_1988_S1865951.cc	Thu Jun 10 18:33:35 2010	(r2479)
+++ trunk/src/Analyses/CDF_1988_S1865951.cc	Thu Jun 10 18:34:32 2010	(r2480)
@@ -49,7 +49,7 @@
 
       const FinalState& trackfs = applyProjection<ChargedFinalState>(event, "CFS");
       foreach (Particle p, trackfs.particles()) {
-        const double pt = p.momentum().pT();
+        const double pt = p.momentum().pT()/GeV;
         // Effective weight for d3sig/dp3 = weight / ( Delta eta * 2pi * pt ), with Delta(eta) = 2
         const double eff_weight = weight/(2*2*TWOPI*pt);
         _hist_pt->fill(pt, eff_weight);


More information about the Rivet-svn mailing list