HepMC event record
|
Stores additional information about cross-section.
This is an example of event attribute used to store cross-section information
This class is meant to be used to pass, on an event by event basis, the current best guess of the total cross section. It is expected that the final cross section will be stored elsewhere.
The units of cross_section and cross_section_error are expected to be pb.
Definition at line 35 of file build/outputs/include/HepMC/GenCrossSection.h.
#include <GenCrossSection.h>
Public Member Functions | |
bool | from_string (const string &att) |
Implementation of Attribute::from_string. More... | |
bool | to_string (string &att) const |
Implementation of Attribute::to_string. More... | |
void | set_cross_section (double xs, double xs_err, long n_acc=-1, long n_att=-1) |
Set all fields. More... | |
bool | operator== (const GenCrossSection &) const |
Operator ==. More... | |
bool | operator!= (const GenCrossSection &) const |
Operator !=. More... | |
bool | is_valid () const |
Verify that the instance contains non-zero information. More... | |
bool | from_string (const string &att) |
Implementation of Attribute::from_string. More... | |
bool | to_string (string &att) const |
Implementation of Attribute::to_string. More... | |
void | set_cross_section (double xs, double xs_err, long n_acc=-1, long n_att=-1) |
Set all fields. More... | |
bool | operator== (const GenCrossSection &) const |
Operator ==. More... | |
bool | operator!= (const GenCrossSection &) const |
Operator !=. More... | |
bool | is_valid () const |
Verify that the instance contains non-zero information. More... | |
virtual bool | init (const GenEvent &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenEvent &) |
Optionally initialize the attribute after from_string. More... | |
virtual bool | init (const GenRunInfo &) |
Optionally initialize the attribute after from_string. More... | |
bool | is_parsed () |
Check if this attribute is parsed. More... | |
bool | is_parsed () |
Check if this attribute is parsed. More... | |
const string & | unparsed_string () const |
Get unparsed string. More... | |
const string & | unparsed_string () const |
Get unparsed string. More... | |
Data Fields | |
double | cross_section |
Generated cross-section. More... | |
double | cross_section_error |
Generated cross-section error. More... | |
long | accepted_events |
The number of events generated so far. More... | |
long | attempted_events |
The number of events attempted so far. More... | |
Protected Member Functions | |
void | set_is_parsed (bool flag) |
Set is_parsed flag. More... | |
void | set_is_parsed (bool flag) |
Set is_parsed flag. More... | |
void | set_unparsed_string (const string &st) |
Set unparsed string. More... | |
void | set_unparsed_string (const string &st) |
Set unparsed string. More... | |
|
virtual |
Implementation of Attribute::from_string.
Implements Attribute.
Definition at line 18 of file GenCrossSection.cc.
References GenCrossSection::accepted_events, GenCrossSection::attempted_events, GenCrossSection::cross_section, and GenCrossSection::cross_section_error.
|
virtual |
Implementation of Attribute::from_string.
Implements Attribute.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenEvent object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 73 of file build/outputs/include/HepMC/Attribute.h.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenEvent object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 73 of file include/HepMC/Attribute.h.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenRunInfo object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 82 of file include/HepMC/Attribute.h.
|
inlinevirtualinherited |
Optionally initialize the attribute after from_string.
Is passed a reference to the GenRunInfo object to which the Attribute belongs.
Reimplemented in HEPEUPAttribute, and HEPEUPAttribute.
Definition at line 82 of file build/outputs/include/HepMC/Attribute.h.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 94 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineinherited |
Check if this attribute is parsed.
Definition at line 94 of file include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
bool is_valid | ( | ) | const |
Verify that the instance contains non-zero information.
bool is_valid | ( | ) | const |
Verify that the instance contains non-zero information.
Definition at line 57 of file GenCrossSection.cc.
References GenCrossSection::cross_section, and GenCrossSection::cross_section_error.
bool operator!= | ( | const GenCrossSection & | a | ) | const |
Operator !=.
Definition at line 53 of file GenCrossSection.cc.
bool operator!= | ( | const GenCrossSection & | ) | const |
Operator !=.
bool operator== | ( | const GenCrossSection & | ) | const |
Operator ==.
bool operator== | ( | const GenCrossSection & | a | ) | const |
Operator ==.
Definition at line 49 of file GenCrossSection.cc.
|
inline |
Set all fields.
Definition at line 58 of file include/HepMC/GenCrossSection.h.
References GenCrossSection::accepted_events, GenCrossSection::attempted_events, GenCrossSection::cross_section, and GenCrossSection::cross_section_error.
|
inline |
Set all fields.
Definition at line 58 of file build/outputs/include/HepMC/GenCrossSection.h.
References GenCrossSection::accepted_events, GenCrossSection::attempted_events, GenCrossSection::cross_section, and GenCrossSection::cross_section_error.
|
inlineprotectedinherited |
Set is_parsed flag.
Definition at line 101 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineprotectedinherited |
Set is_parsed flag.
Definition at line 101 of file include/HepMC/Attribute.h.
References Attribute::m_is_parsed.
|
inlineprotectedinherited |
Set unparsed string.
Definition at line 104 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_string.
|
inlineprotectedinherited |
Set unparsed string.
Definition at line 104 of file include/HepMC/Attribute.h.
References Attribute::m_string.
|
virtual |
Implementation of Attribute::to_string.
Implements Attribute.
|
virtual |
Implementation of Attribute::to_string.
Implements Attribute.
Definition at line 35 of file GenCrossSection.cc.
References GenCrossSection::accepted_events, GenCrossSection::attempted_events, GenCrossSection::cross_section, and GenCrossSection::cross_section_error.
|
inlineinherited |
Get unparsed string.
Definition at line 97 of file build/outputs/include/HepMC/Attribute.h.
References Attribute::m_string.
|
inlineinherited |
Get unparsed string.
Definition at line 97 of file include/HepMC/Attribute.h.
References Attribute::m_string.
long accepted_events |
The number of events generated so far.
Definition at line 44 of file build/outputs/include/HepMC/GenCrossSection.h.
long attempted_events |
The number of events attempted so far.
Definition at line 45 of file build/outputs/include/HepMC/GenCrossSection.h.
double cross_section |
Generated cross-section.
Definition at line 42 of file build/outputs/include/HepMC/GenCrossSection.h.
double cross_section_error |
Generated cross-section error.
Definition at line 43 of file build/outputs/include/HepMC/GenCrossSection.h.