11 #include "HepMC/GenCrossSection.h" 19 const char *cursor = att.data();
23 if( !(cursor = strchr(cursor+1,
' ')) )
return false;
38 sprintf(buf,
"%.8e %.8e %li %li",
50 return ( memcmp( (
void*)
this, (
void*) &a,
sizeof(
class GenCrossSection) ) == 0 );
54 return !( a == *this );
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.