|
[Rivet-svn] r2902 - trunk/src/Analysesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgMon Jan 31 16:23:32 GMT 2011
Author: buckley Date: Mon Jan 31 16:23:32 2011 New Revision: 2902 Log: signed/unsigned comparison fix Modified: trunk/src/Analyses/ATLAS_2010_S8894728.cc Modified: trunk/src/Analyses/ATLAS_2010_S8894728.cc ============================================================================== --- trunk/src/Analyses/ATLAS_2010_S8894728.cc Mon Jan 31 14:43:31 2011 (r2901) +++ trunk/src/Analyses/ATLAS_2010_S8894728.cc Mon Jan 31 16:23:32 2011 (r2902) @@ -12,7 +12,7 @@ namespace { inline void _moments_to_stddev(AIDA::IProfile1D* moment_profiles[], AIDA::IDataPointSet* target_dps) { - for (size_t b = 0; b < target_dps->size(); ++b) { // loop over bins + for (int b = 0; b < target_dps->size(); ++b) { // loop over bins /// @todo Assuming unit weights here! Should use N_effective = sumW**2/sumW2? How? const double numentries = moment_profiles[0]->binEntries(b); const double var = moment_profiles[1]->binHeight(b) - intpow(moment_profiles[0]->binHeight(b), 2);
More information about the Rivet-svn mailing list |