[Rivet-svn] r2118 - trunk/src

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Nov 30 22:22:29 GMT 2009


Author: buckley
Date: Mon Nov 30 22:22:28 2009
New Revision: 2118

Log:
Advertise setting user-specified xsec

Modified:
   trunk/src/Run.cc

Modified: trunk/src/Run.cc
==============================================================================
--- trunk/src/Run.cc	Mon Nov 30 21:37:02 2009	(r2117)
+++ trunk/src/Run.cc	Mon Nov 30 22:22:28 2009	(r2118)
@@ -103,7 +103,11 @@
 
     // Set cross-section if specified from command line
     if (_xs > 0.0) {
-      _ah.setCrossSection(_xs);
+      if (firstEvent) {
+        Log::getLog("Rivet.Run") << Log::DEBUG
+                                 << "Setting user cross-section = " << _xs << " pb" << endl;
+        _ah.setCrossSection(_xs);
+      }
     }
     // Set cross-section if found in event
     #ifdef HEPMC_HAS_CROSS_SECTION


More information about the Rivet-svn mailing list