2 #ifndef RIVET_RivetHandler_HH
3 #define RIVET_RivetHandler_HH
5 #include "Rivet/Rivet.hh"
6 #include "Rivet/RivetBoost.hh"
7 #include "Rivet/Tools/Logging.fhh"
8 #include "Rivet/AnalysisHandler.fhh"
9 #include "Rivet/Analysis.fhh"
10 #include "Rivet/Event.fhh"
11 #include "Rivet/AnalysisLoader.hh"
21 return a.get() < b.get();
65 void _setupFactories(
const string& basefilename,
HistoFormat storetype);
69 void _setupFactories();
73 void _normalizeTree(AIDA::ITree&
tree);
121 MSG_DEBUG(
"Setting run beams = " << beams <<
" @ " <<
sqrtS()/GeV <<
" GeV");
134 double sqrtS()
const;
149 const std::set<AnaHandle, AnaHandleLess>&
analyses()
const {
188 void init(
const GenEvent& event);
193 void analyze(
const GenEvent& event);
221 void writeData(
const std::string& filename);
244 set<AnaHandle, AnaHandleLess> _analyses;
251 std::string _runname;
257 double _sumOfWeights;
279 shared_ptr<AIDA::IAnalysisFactory> _theAnalysisFactory;
282 AIDA::ITreeFactory* _theTreeFactory;
285 AIDA::ITree* _theTree;
288 AIDA::IHistogramFactory* _theHistogramFactory;
291 AIDA::IDataPointSetFactory* _theDataPointSetFactory;