00001
00002 #ifndef RIVET_Run_HH
00003 #define RIVET_Run_HH
00004
00005 #include "Rivet/AnalysisHandler.fhh"
00006 #include "Rivet/RivetBoost.hh"
00007
00008 namespace HepMC {
00009 class IO_GenEvent;
00010 }
00011
00012 namespace Rivet {
00013
00014
00015 class Run {
00016
00017 public:
00018
00019
00020
00021
00022 Run(AnalysisHandler& ah);
00023
00024
00025 ~Run();
00026
00027
00028
00029 public:
00030
00031
00032
00033
00034
00035 Run& setCrossSection(const double xs);
00036
00037
00038 Run& setListAnalyses(const bool dolist);
00039
00040
00041
00042
00043
00044
00045
00046
00047 bool init(const std::string& evtfile);
00048
00049
00050 bool openFile(const std::string& evtfile);
00051
00052
00053 bool readEvent();
00054
00055
00056 bool processEvent();
00057
00058
00059 bool finalize();
00060
00061
00062
00063
00064 private:
00065
00066
00067 AnalysisHandler& _ah;
00068
00069
00070
00071
00072
00073
00074 double _xs;
00075
00076
00077
00078
00079
00080 bool _listAnalyses;
00081
00082
00083
00084
00085
00086
00087 shared_ptr<GenEvent> _evt;
00088
00089
00090 shared_ptr<std::istream> _istr;
00091
00092
00093 shared_ptr<HepMC::IO_GenEvent> _io;
00094
00095
00096
00097 };
00098
00099
00100 }
00101
00102 #endif