|
[Rivet-svn] r3657 - trunk/src/Analysesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Apr 4 15:36:30 BST 2012
Author: richardn Date: Wed Apr 4 15:36:30 2012 New Revision: 3657 Log: fix to avoid integer maths Modified: trunk/src/Analyses/STAR_2009_UE_HELEN.cc Modified: trunk/src/Analyses/STAR_2009_UE_HELEN.cc ============================================================================== --- trunk/src/Analyses/STAR_2009_UE_HELEN.cc Tue Apr 3 13:42:30 2012 (r3656) +++ trunk/src/Analyses/STAR_2009_UE_HELEN.cc Wed Apr 4 15:36:30 2012 (r3657) @@ -118,7 +118,7 @@ // for the STAR tracking efficiency. Once we have the // final numbers (corrected to hadron level), we need // to remove this!!!! - if (1.0*rand()/RAND_MAX > 0.87834-exp(-1.48994-0.788432*pT)) { + if (1.0*rand()/static_cast<double>(RAND_MAX) > 0.87834-exp(-1.48994-0.788432*pT)) { continue; } // -------- end of efficiency hack -------
More information about the Rivet-svn mailing list |