5 #include "Rivet/Tools/RivetSTL.hh" 6 #include "Rivet/Tools/RivetHepMC.hh" 12 class AnalysisHandler;
47 bool init(
const std::string& evtfile,
double weight=1.0);
50 bool openFile(
const std::string& evtfile,
double weight=1.0);
93 std::shared_ptr<GenEvent> _evt;
96 std::shared_ptr<std::istream> _istr;
99 std::shared_ptr<HepMC_IO_type> _hepmcReader;
Definition: MC_Cent_pPb.hh:10
Interface to handle a run of events read from a HepMC stream or file.
Definition: Run.hh:16
Run & setListAnalyses(bool dolist)
Declare whether to list available analyses.
Run(AnalysisHandler &ah)
The standard constructor.
Run & setCrossSection(double xs)
Get the cross-section for this run.
bool finalize()
Close up HepMC I/O.
bool readEvent()
Read the next HepMC event.
bool init(const std::string &evtfile, double weight=1.0)
Set up HepMC file readers (using the appropriate file weight for the first file)
bool openFile(const std::string &evtfile, double weight=1.0)
Open a HepMC GenEvent file (using the appropriate file weight for the first file) ...
bool processEvent()
Read the next HepMC event only to skip it.
The key class for coordination of Analysis objects and the event loop.
Definition: AnalysisHandler.hh:23