6 #ifndef HEPMC_CROSS_SECTION_H 7 #define HEPMC_CROSS_SECTION_H 30 #include "HepMC/Attribute.h" 35 class GenCrossSection :
public Attribute {
double cross_section_error
Generated cross-section error.
bool to_string(string &att) const
Implementation of Attribute::to_string.
Stores additional information about cross-section.
long accepted_events
The number of events generated so far.
bool from_string(const string &att)
Implementation of Attribute::from_string.
long attempted_events
The number of events attempted so far.
double cross_section
Generated cross-section.
bool operator!=(const GenCrossSection &) const
Operator !=.
bool operator==(const GenCrossSection &) const
Operator ==.
Definition of template class SmartPointer.
bool is_valid() const
Verify that the instance contains non-zero information.
void set_cross_section(double xs, double xs_err, long n_acc=-1, long n_att=-1)
Set all fields.