2 #ifndef PYTHIA_WRAPPER_H
3 #define PYTHIA_WRAPPER_H
13 #ifdef _WIN32 // Platform: Windows MS Visual C++
14 #include "HepMC/PythiaWrapper6_4_WIN32.h"
16 #else // Generic version, tested on Linux ecgs/gcc
17 #include "HepMC/PythiaWrapper6_4.h"
23 #include "HepMC/GenCrossSection.h"
34 double xsecval = pyint5.xsec[2][0] * 1.0e9;
36 double xsecerr = xsecval / std::sqrt( (
double)pyint5.ngen[2][0] );
46 #endif // PYTHIA_WRAPPER_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.
GenCrossSection getPythiaCrossSection()
calculate the Pythia cross section and statistical error