10 #ifndef Pythia8_Pythia8ToHepMC_H
11 #define Pythia8_Pythia8ToHepMC_H
14 #include "HepMC/IO_BaseClass.h"
15 #include "Pythia8/Pythia.h"
34 m_print_inconsistency(
true), m_free_parton_warnings(
true),
35 m_crash_on_problem(
false), m_convert_gluon_to_0(
false),
36 m_store_pdf(
true), m_store_proc(
true), m_store_xsec(
true) {;}
41 int ievnum = -1 ) {
return fill_next_event( pythia.event, evt,
42 ievnum, &pythia.info, &pythia.settings);}
50 bool print_inconsistency()
const {
return m_print_inconsistency;}
51 bool free_parton_warnings()
const {
return m_free_parton_warnings;}
52 bool crash_on_problem()
const {
return m_crash_on_problem;}
53 bool convert_gluon_to_0()
const {
return m_convert_gluon_to_0;}
54 bool store_pdf()
const {
return m_store_pdf;}
55 bool store_proc()
const {
return m_store_proc;}
56 bool store_xsec()
const {
return m_store_xsec;}
59 void set_print_inconsistency(
bool b =
true) {m_print_inconsistency = b;}
60 void set_free_parton_warnings(
bool b =
true) {m_free_parton_warnings = b;}
61 void set_crash_on_problem(
bool b =
false) {m_crash_on_problem = b;}
62 void set_convert_gluon_to_0(
bool b =
false) {m_convert_gluon_to_0 = b;}
63 void set_store_pdf(
bool b =
true) {m_store_pdf = b;}
64 void set_store_proc(
bool b =
true) {m_store_proc = b;}
65 void set_store_xsec(
bool b =
true) {m_store_xsec = b;}
70 virtual bool fill_next_event(
GenEvent* ) {
return 0; }
71 virtual void write_event(
const GenEvent* ) {;}
77 int m_internal_event_number;
78 bool m_print_inconsistency, m_free_parton_warnings,
79 m_crash_on_problem, m_convert_gluon_to_0,
80 m_store_pdf, m_store_proc, m_store_xsec;
88 #endif // end Pythia8_Pythia8ToHepMC_H
The GenEvent class is the core of HepMC.
all input/output classes inherit from IO_BaseClass