Rivet API documentation
![]() |
Rivet 4.1.3
|
Rivet::Run Class Reference
Interface to handle a run of events read from a HepMC stream or file. More...
#include <Run.hh>
Public Member Functions | |
| Run (AnalysisHandler &ah) | |
| Standard constructor. | |
| ~Run () | |
| Destructor. | |
Set run properties | |
| Run & | setCrossSection (double xs) |
| Get the cross-section for this run. | |
| Run & | setListAnalyses (bool dolist) |
| Declare whether to list available analyses. | |
File processing stages | |
| 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 | readEvent () |
| Read the next HepMC event. | |
| size_t | numEvents () const |
| Read the next HepMC event only to skip it. | |
| bool | processEvent () |
| Handle next event. | |
| bool | finalize () |
| Close up HepMC I/O. | |
Detailed Description
Interface to handle a run of events read from a HepMC stream or file.
Member Function Documentation
◆ numEvents()
|
inline |
Read the next HepMC event only to skip it.
Return the number of (collapsed) events read in from HepMC, including current partial event in case of sub-events
The documentation for this class was generated from the following file:
- /builds/hepcedar/rivet/include/Rivet/Run.hh
Generated on for Rivet by
