[Rivet-svn] r3788 - trunk/src/Core

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Jul 2 14:53:14 BST 2012


Author: hoeth
Date: Mon Jul  2 14:53:14 2012
New Revision: 3788

Log:
fix confusion between title and path. This should get rid of all the /REF in MC output files.

Modified:
   trunk/src/Core/Analysis.cc

Modified: trunk/src/Core/Analysis.cc
==============================================================================
--- trunk/src/Core/Analysis.cc	Mon Jul  2 12:17:38 2012	(r3787)
+++ trunk/src/Core/Analysis.cc	Mon Jul  2 14:53:14 2012	(r3788)
@@ -214,9 +214,10 @@
     // Get the bin edges (only read the AIDA file once)
     const Scatter2D & refdata = referenceData(hname);
     const string path = histoPath(hname);
-    Histo1DPtr hist( new Histo1D(refdata, title) );
+    Histo1DPtr hist( new Histo1D(refdata, path) );
     addPlot(hist);
     MSG_TRACE("Made histogram " << hname <<  " for " << name());
+    hist->setTitle(title);
     // hist->setXTitle(xtitle);
     // hist->setYTitle(ytitle);
     return hist;
@@ -305,9 +306,10 @@
     // Get the bin edges (only read the AIDA file once)
     const Scatter2D & refdata = referenceData(hname);
     const string path = histoPath(hname);
-    Profile1DPtr prof( new Profile1D(refdata, title) );
+    Profile1DPtr prof( new Profile1D(refdata, path) );
     addPlot(prof);
     MSG_TRACE("Made profile histogram " << hname <<  " for " << name());
+    prof->setTitle(title);
     // prof->setXTitle(xtitle);
     // prof->setYTitle(ytitle);
     return prof;


More information about the Rivet-svn mailing list