|
[Rivet-svn] r2228 - in trunk: include/Rivet src/Coreblackhole at projects.hepforge.org blackhole at projects.hepforge.orgFri Jan 29 21:22:30 GMT 2010
Author: fsiegert Date: Fri Jan 29 21:22:30 2010 New Revision: 2228 Log: Re-add AnalysisLoader::getAllAnalysisNames(), such that we don't deliberately break backward compatibility (e.g. to ATLAS' interface). Modified: trunk/include/Rivet/AnalysisLoader.hh trunk/src/Core/AnalysisLoader.cc Modified: trunk/include/Rivet/AnalysisLoader.hh ============================================================================== --- trunk/include/Rivet/AnalysisLoader.hh Fri Jan 29 21:01:37 2010 (r2227) +++ trunk/include/Rivet/AnalysisLoader.hh Fri Jan 29 21:22:30 2010 (r2228) @@ -19,6 +19,7 @@ /// Get all the available analyses' names. static vector<string> analysisNames(); + static set<string> getAllAnalysisNames(); /// Get an analysis by name. /// Warning: a name arg which matches no known analysis will return a null Modified: trunk/src/Core/AnalysisLoader.cc ============================================================================== --- trunk/src/Core/AnalysisLoader.cc Fri Jan 29 21:01:37 2010 (r2227) +++ trunk/src/Core/AnalysisLoader.cc Fri Jan 29 21:22:30 2010 (r2228) @@ -19,6 +19,16 @@ foreach (const AnalysisBuilderMap::value_type& p, _ptrs) names += p.first; return names; } + + + set<string> AnalysisLoader::getAllAnalysisNames() { + set<string> anaset; + vector<string> anas = analysisNames(); + foreach (const string &ana, anas) { + anaset.insert(ana); + } + return anaset; + } Analysis* AnalysisLoader::getAnalysis(const string& analysisname) {
More information about the Rivet-svn mailing list |