5#include "Rivet/Tools/Logging.hh"
6#include "Rivet/Tools/RivetHepMC.hh"
7#include "Rivet/Tools/RivetSTL.hh"
63 bool init(
const std::string& evtfile,
double weight = 1.0);
66 bool openFile(
const std::string& evtfile,
double weight = 1.0);
74 bool readEvents(
const std::string& evtfile,
int nmax = -1,
double weight = 1.0);
107 double _fileweight = 1.0;
113 size_t _evtcount = 0;
122 bool _listAnalyses =
false;
129 std::shared_ptr<GenEvent> _evt;
132 std::shared_ptr<std::istream> _istr;
135 std::shared_ptr<HepMC_IO_type> _hepmcReader;
The key class for coordination of Analysis objects and the event loop.
Definition AnalysisHandler.hh:29
Logging system for controlled & formatted writing to stdout.
Definition Logging.hh:10
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 readEvent()
Read the next HepMC event.
Run & setCrossSection(double xs)
Get the cross-section for this run.
Run & setListAnalyses(bool dolist)
Declare whether to list available analyses.
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()
Handle next event.
size_t numEvents() const
Read the next HepMC event only to skip it.
Definition Run.hh:81
bool finalize()
Close up HepMC I/O.
bool readEvents(const std::string &evtfile, int nmax=-1, double weight=1.0)
Run(AnalysisHandler &ah)
Standard constructor.
Definition LHCbCommon.hh:9