1 #ifndef HEPMC_GEN_CROSS_SECTION_H
2 #define HEPMC_GEN_CROSS_SECTION_H
37 m_cross_section_error(0),
60 bool is_set()
const {
return m_is_set; }
75 std::ostream &
write( std::ostream & )
const;
77 std::istream &
read( std::istream & );
80 double m_cross_section;
81 double m_cross_section_error;
89 inline std::ostream & operator << ( std::ostream & os, GenCrossSection & xs )
90 {
return xs.write(os); }
92 inline std::istream & operator >> ( std::istream & is, GenCrossSection & xs )
93 {
return xs.read(is); }
105 m_cross_section = xs;
111 m_cross_section_error = xserr;
116 #endif // HEPMC_GEN_CROSS_SECTION_H
void set_cross_section(double xs, double xs_err)
Set cross section and error in pb.
The GenCrossSection class stores the generated cross section.
bool operator==(const GenCrossSection &) const
check for equality
GenCrossSection & operator=(GenCrossSection const &rhs)
std::istream & read(std::istream &)
read from an input stream
bool operator!=(const GenCrossSection &) const
check for inequality
void set_cross_section_error(double)
set error associated with this cross section in pb
std::ostream & write(std::ostream &) const
write to an output stream
double cross_section_error() const
error associated with this cross section in pb
double cross_section() const
cross section in pb
bool is_set() const
True if the cross section has been set. False by default.
void swap(GenCrossSection &other)
swap