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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Mar 8 12:31:22 GMT 2012


Author: richardn
Date: Thu Mar  8 12:31:22 2012
New Revision: 3601

Log:
fix to normalisation of average multiplicities for weighted events

Modified:
   trunk/src/Analyses/UA5_1982_S875503.cc
   trunk/src/Analyses/UA5_1987_S1640666.cc
   trunk/src/Analyses/UA5_1989_S1926373.cc

Modified: trunk/src/Analyses/UA5_1982_S875503.cc
==============================================================================
--- trunk/src/Analyses/UA5_1982_S875503.cc	Wed Mar  7 15:12:44 2012	(r3600)
+++ trunk/src/Analyses/UA5_1982_S875503.cc	Thu Mar  8 12:31:22 2012	(r3601)
@@ -47,7 +47,7 @@
       const ChargedFinalState& cfs = applyProjection<ChargedFinalState>(event, "CFS");
 
       // Fill mean charged multiplicity histos
-      _hist_nch->fill(_hist_nch->binMean(0), cfs.size());
+      _hist_nch->fill(_hist_nch->binMean(0), cfs.size()*weight);
 
       // Iterate over all tracks and fill eta histograms
       foreach (const Particle& p, cfs.particles()) {

Modified: trunk/src/Analyses/UA5_1987_S1640666.cc
==============================================================================
--- trunk/src/Analyses/UA5_1987_S1640666.cc	Wed Mar  7 15:12:44 2012	(r3600)
+++ trunk/src/Analyses/UA5_1987_S1640666.cc	Thu Mar  8 12:31:22 2012	(r3601)
@@ -44,7 +44,7 @@
 
       // Fill histograms
       _hist_nch->fill(Nch, weight);
-      _hist_mean_nch->fill(_hist_mean_nch->binMean(0), Nch);
+      _hist_mean_nch->fill(_hist_mean_nch->binMean(0), Nch*weight);
 
     }
 

Modified: trunk/src/Analyses/UA5_1989_S1926373.cc
==============================================================================
--- trunk/src/Analyses/UA5_1989_S1926373.cc	Wed Mar  7 15:12:44 2012	(r3600)
+++ trunk/src/Analyses/UA5_1989_S1926373.cc	Thu Mar  8 12:31:22 2012	(r3601)
@@ -71,7 +71,7 @@
       _hist_nch_eta15->fill(numP15, weight);
       _hist_nch_eta30->fill(numP30, weight);
       _hist_nch_eta50->fill(numP50, weight);
-      _hist_mean_nch->fill(_hist_mean_nch->binMean(0), numP50);
+      _hist_mean_nch->fill(_hist_mean_nch->binMean(0), numP50*weight);
     }
 
 


More information about the Rivet-svn mailing list