|
[Rivet-svn] r1897 - trunk/plugindemoblackhole at projects.hepforge.org blackhole at projects.hepforge.orgFri Oct 9 09:53:07 BST 2009
Author: buckley Date: Fri Oct 9 09:53:07 2009 New Revision: 1897 Log: Renaming, removing preprocessor guards, etc. Added: trunk/plugindemo/RootAnalysis.cc - copied, changed from r1896, trunk/plugindemo/ExampleTree.cc Deleted: trunk/plugindemo/ExampleTree.cc Copied and modified: trunk/plugindemo/RootAnalysis.cc (from r1896, trunk/plugindemo/ExampleTree.cc) ============================================================================== --- trunk/plugindemo/ExampleTree.cc Fri Oct 9 09:49:32 2009 (r1896, copy source) +++ trunk/plugindemo/RootAnalysis.cc Fri Oct 9 09:53:07 2009 (r1897) @@ -6,11 +6,9 @@ #include "Rivet/Projections/FastJets.hh" // ROOT stuff -#ifdef HAVE_ROOT #include "TTree.h" #include "TFile.h" #include "TString.h" -#endif namespace Rivet { @@ -21,25 +19,10 @@ /// are not recommended in Rivet analyses, since the information is /// unphysical and so cannot be compared to data, and also may be generator dependent. /// - class ExampleTree : public Analysis { + class RootAnalysis : public Analysis { public: - #ifndef HAVE_ROOT - - ExampleTree() : Analysis("EXAMPLETREE") { } - void init() { - getLog() << Log::WARN << "Rivet was not compiled against ROOT. ExampleTree will do nothing." << endl; - } - void analyze(const Event& event) { } - void finalize() { } - - - #else - - - ExampleTree() - : Analysis("EXAMPLETREE") - { + RootAnalysis() : Analysis("ROOTANALYSIS") { // Choose cuts _jet_pt_cut = 20*GeV; _subj_pt_cut = 20*GeV; @@ -277,13 +260,11 @@ /// Store the partons or not? bool _store_partons; - #endif - }; // This global object acts as a hook for the plugin system - AnalysisBuilder<ExampleTree> plugin_ExampleTree; + AnalysisBuilder<RootAnalysis> plugin_RootAnalysis; }
More information about the Rivet-svn mailing list |