[Rivet-svn] r4095 - branches/2012-06-aidarivet/src/Analyses

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Dec 18 12:35:13 GMT 2012


Author: buckley
Date: Tue Dec 18 12:35:13 2012
New Revision: 4095

Log:
Use normalize rather than scale (I've checked that results are identical)

Modified:
   branches/2012-06-aidarivet/src/Analyses/TOTEM_2012_002.cc

Modified: branches/2012-06-aidarivet/src/Analyses/TOTEM_2012_002.cc
==============================================================================
--- branches/2012-06-aidarivet/src/Analyses/TOTEM_2012_002.cc	Tue Dec 18 11:35:08 2012	(r4094)
+++ branches/2012-06-aidarivet/src/Analyses/TOTEM_2012_002.cc	Tue Dec 18 12:35:13 2012	(r4095)
@@ -44,17 +44,15 @@
 
 
     void finalize() {
-      scale(_hist_tlow, crossSection()/millibarn/sumOfWeights());
-      scale(_hist_thigh, crossSection()/millibarn/sumOfWeights());
-      scale(_hist_sigma, crossSection()/millibarn/sumOfWeights());
+      normalize(_hist_tlow, crossSection()/millibarn);
+      normalize(_hist_thigh, crossSection()/millibarn);
+      normalize(_hist_sigma, crossSection()/millibarn);
     }
 
 
   private:
 
-    AIDA::IHistogram1D *_hist_tlow;
-    AIDA::IHistogram1D *_hist_thigh;
-    AIDA::IHistogram1D *_hist_sigma;
+    AIDA::IHistogram1D *_hist_tlow, *_hist_thigh, *_hist_sigma;
 
   };
 


More information about the Rivet-svn mailing list