5 #include "Rivet/AnalysisHandler.fhh"
6 #include "Rivet/RivetBoost.hh"
51 bool init(
const std::string& evtfile,
double weight=1.0);
54 bool openFile(
const std::string& evtfile,
double weight=1.0);
94 shared_ptr<GenEvent> _evt;
97 shared_ptr<std::istream> _istr;
100 shared_ptr<HepMC::IO_GenEvent> _io;
Interface to handle a run of events read from a HepMC stream or file.
Definition: Run.hh:17
Run & setListAnalyses(const bool dolist)
Declare whether to list available analyses.
Definition: Run.cc:30
double crossSection() const
Get the current cross-section from the analysis handler in pb.
Definition: Run.cc:25
Run(AnalysisHandler &ah)
The standard constructor.
Definition: Run.cc:11
bool finalize()
Close up HepMC I/O.
Definition: Run.cc:132
bool readEvent()
Read the next HepMC event.
Definition: Run.cc:37
bool init(const std::string &evtfile, double weight=1.0)
Set up HepMC file readers (using the appropriate file weight for the first file)
Definition: Run.cc:74
bool openFile(const std::string &evtfile, double weight=1.0)
Open a HepMC GenEvent file (using the appropriate file weight for the first file) ...
Definition: Run.cc:54
bool processEvent()
Handle next event.
Definition: Run.cc:106
Definition: AnalysisHandler.hh:29
Run & setCrossSection(const double xs)
Get the cross-section for this run.
Definition: Run.cc:19
~Run()
The destructor.
Definition: Run.cc:16