6#ifndef HEPMC3_CROSS_SECTION_H
7#define HEPMC3_CROSS_SECTION_H
64 void set_cross_section(
const double& xs,
const double& xs_err,
const long& n_acc = -1,
const long& n_att = -1);
93 void set_xsec(
const string& wName,
const double& xs) {
121 double xsec(
const string& wName)
const {
128 double xsec(
const int& indx = 0)
const {
153 int windx(
string wName)
const;
Definition of class Attribute, class IntAttribute and class StringAttribute.
Forward declaration of GenParticle.
Stores additional information about cross-section.
bool to_string(string &att) const
Implementation of Attribute::to_string.
int windx(string wName) const
get the weight index given a weight name.
double xsec_err(const int &indx=0) const
Get the cross section error corresponding to the weight with index indx.
double xsec(const int &indx=0) const
Get the cross section corresponding to the weight with index indx.
long get_accepted_events() const
Get the number of accepted events.
long attempted_events
The number of events attempted so far.
double xsec_err(const string &wName) const
Get the cross section error corresponding to the weight named wName.
void set_attempted_events(const long &n_att)
Set the number of attempted events.
void set_cross_section(const double &xs, const double &xs_err, const long &n_acc=-1, const long &n_att=-1)
Set all fields.
bool from_string(const string &att)
Implementation of Attribute::from_string.
vector< double > cross_section_errors
Per-weight errors.
void set_xsec(const int &indx, const double &xs)
Set the cross section corresponding to the weight with index indx.
void set_accepted_events(const long &n_acc)
Set the number of accepted events.
void set_xsec_err(const string &wName, const double &xs_err)
Set the cross section error corresponding to the weight named wName.
bool is_valid() const
Verify that the instance contains non-zero information.
double xsec(const string &wName) const
Get the cross section corresponding to the weight named wName.
void set_xsec(const string &wName, const double &xs)
Set the cross section corresponding to the weight named wName.
bool operator==(const GenCrossSection &) const
Operator ==.
bool operator!=(const GenCrossSection &) const
Operator !=.
long get_attempted_events() const
Get the number of attempted events.
void set_xsec_err(const int &indx, const double &xs_err)
Set the cross section error corresponding to the weight with index indx.
vector< double > cross_sections
Per-weight cross-section.
long accepted_events
The number of events generated so far.