[Rivet-svn] r3086 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Sun May 8 23:33:47 BST 2011


Author: buckley
Date: Sun May  8 23:33:47 2011
New Revision: 3086

Log:
Interface tweaks

Modified:
   trunk/bin/rivet-rescale

Modified: trunk/bin/rivet-rescale
==============================================================================
--- trunk/bin/rivet-rescale	Sun May  8 18:32:55 2011	(r3085)
+++ trunk/bin/rivet-rescale	Sun May  8 23:33:47 2011	(r3086)
@@ -43,11 +43,6 @@
      -b "/CDF_2000_S4155203/d01-x01-y01:2:5" out.aida
    For this Z-boson pT-distribution, the normalisation to the provided ref
    data file is only applied between 2 < x < 5 GeV.
-
-
-TODO:
-
- * Allow for comments in the observable file
 """
 
 import sys
@@ -222,9 +217,13 @@
                          default=logging.INFO, help="be very quiet")
     opts, args = parser.parse_args()
 
-    # Configure logging
+    ## Configure logging
     logging.basicConfig(level=opts.LOGLEVEL, format="%(message)s")
 
+    ## Check number of args
+    if len(args) not in (1, 2):
+        print "Usage: %s" % __doc__.splitlines()[0]
+        sys.exit(1)
 
     ## Get MC histos
     histos = getHistosFromAIDA(args[0])


More information about the Rivet-svn mailing list