|
[Rivet-svn] r2757 - trunk/src/Coreblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Nov 18 11:12:22 GMT 2010
Author: dgrell Date: Thu Nov 18 11:12:21 2010 New Revision: 2757 Log: Warn if analysis not found. Modified: trunk/src/Core/AnalysisHandler.cc Modified: trunk/src/Core/AnalysisHandler.cc ============================================================================== --- trunk/src/Core/AnalysisHandler.cc Wed Nov 17 14:39:06 2010 (r2756) +++ trunk/src/Core/AnalysisHandler.cc Thu Nov 18 11:12:21 2010 (r2757) @@ -182,7 +182,9 @@ /// Requires avoiding histo tree clashes, i.e. storing the histos on the analysis objects. foreach (const AnaHandle& a, _analyses) { if (a->name() == analysisname) { - getLog() << Log::WARNING << "Analysis '" << analysisname << "' already registered: skipping duplicate" << endl; + getLog() << Log::WARNING + << "Analysis '" << analysisname + << "' already registered: skipping duplicate" << endl; return *this; } } @@ -192,6 +194,11 @@ analysis->_analysishandler = this; _analyses.insert(analysis); } + else { + getLog() << Log::WARNING + << "Analysis '" << analysisname + << "' not found." << endl; + } return *this; }
More information about the Rivet-svn mailing list |