[Rivet-svn] r2377 - trunk/include/LWH

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Sat Apr 3 20:46:38 BST 2010


Author: fsiegert
Date: Sat Apr  3 20:46:38 2010
New Revision: 2377

Log:
AIDA output: Use scientific notation, because with fixed notation and precision 6 we have encountered a case where bin edges had to be rounded off, and were thus not compatible with reference data anymore.

Modified:
   trunk/include/LWH/DataPointSet.h

Modified: trunk/include/LWH/DataPointSet.h
==============================================================================
--- trunk/include/LWH/DataPointSet.h	Sat Apr  3 20:24:08 2010	(r2376)
+++ trunk/include/LWH/DataPointSet.h	Sat Apr  3 20:46:38 2010	(r2377)
@@ -327,6 +327,7 @@
    */
   bool writeXML(std::ostream & os, std::string path, std::string name) {
     //std::cout << "Writing out data point set " << name << " in AIDA file format!" << std::endl;
+    os << scientific << setprecision(8);
     os << "  <dataPointSet name=\"" << encodeForXML(name)
        << "\"\n    title=\"" << encodeForXML(title())
        << "\" path=\"" << path


More information about the Rivet-svn mailing list