Run.hh
// -*- C++ -*-
#ifndef RIVET_Run_HH
#define RIVET_Run_HH
#include "Rivet/AnalysisHandler.fhh"
#include "Rivet/RivetBoost.hh"
namespace HepMC {
class IO_GenEvent;
}
namespace Rivet {
class Run {
public:
Run(AnalysisHandler& ah);
~Run();
public:
Run& setCrossSection(const double xs);
double crossSection() const;
Run& setListAnalyses(const bool dolist);
bool init(const std::string& evtfile, double weight=1.0);
bool openFile(const std::string& evtfile, double weight=1.0);
bool readEvent();
bool processEvent();
bool finalize();
private:
AnalysisHandler& _ah;
double _fileweight;
double _xs;
bool _listAnalyses;
shared_ptr<GenEvent> _evt;
shared_ptr<std::istream> _istr;
shared_ptr<HepMC::IO_GenEvent> _io;
};
}
#endif
Rivet
Definition: MC_JetAnalysis.hh:9
Rivet::Run
Interface to handle a run of events read from a HepMC stream or file.
Definition: Run.hh:17
Rivet::AnalysisHandler
Definition: AnalysisHandler.hh:29
HepMC
Definition: Run.hh:8