[Rivet-svn] r3627 - in trunk: . src/Analyses src/Core

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Mar 19 17:30:00 GMT 2012


Author: buckley
Date: Mon Mar 19 17:30:00 2012
New Revision: 3627

Log:
src/Core/AnalysisInfo.cc: Add printout of YAML parser exception error messages to aid debugging.

Modified:
   trunk/ChangeLog
   trunk/src/Analyses/CMS_2011_S8957746.cc
   trunk/src/Core/AnalysisInfo.cc

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	Mon Mar 19 17:27:09 2012	(r3626)
+++ trunk/ChangeLog	Mon Mar 19 17:30:00 2012	(r3627)
@@ -1,5 +1,7 @@
 2012-03-19  Andy Buckley  <andy.buckley at cern.ch>
 
+	* src/Core/AnalysisInfo.cc: Add printout of YAML parser exception error messages to aid debugging.
+
 	* bin/Makefile.am: Attempt to fix rivet-nopy build on SLC5.
 
 	* src/Analyses/LHCB_2010_S8758301.cc: Add two missing entries to the PDGID -> lifetime map.

Modified: trunk/src/Analyses/CMS_2011_S8957746.cc
==============================================================================
--- trunk/src/Analyses/CMS_2011_S8957746.cc	Mon Mar 19 17:27:09 2012	(r3626)
+++ trunk/src/Analyses/CMS_2011_S8957746.cc	Mon Mar 19 17:30:00 2012	(r3627)
@@ -39,7 +39,7 @@
       if (jets.size() < 2 ||
           fabs(jets[0].momentum().eta()) >= 1.3 ||
           fabs(jets[1].momentum().eta()) >= 1.3 ||
-          jets[0].momentum().pT() < 90/GeV) {
+          jets[0].momentum().pT() < 90*GeV) {
         vetoEvent;
       }
       std::vector<Vector3> momenta;

Modified: trunk/src/Core/AnalysisInfo.cc
==============================================================================
--- trunk/src/Core/AnalysisInfo.cc	Mon Mar 19 17:27:09 2012	(r3626)
+++ trunk/src/Core/AnalysisInfo.cc	Mon Mar 19 17:30:00 2012	(r3627)
@@ -42,7 +42,7 @@
       parser.GetNextDocument(doc);
       //cout << doc << endl;
     } catch (const YAML::ParserException& ex) {
-      MSG_ERROR("Parse error when reading analysis data from " << datapath);
+      MSG_ERROR("Parse error when reading analysis data from " << datapath << " (" << ex.what() << ")");
       return ai;
     }
 


More information about the Rivet-svn mailing list