48 #include "HepMC/PythiaWrapper.h"
49 #include "HepMC/IO_HEPEVT.h"
50 #include "HepMC/IO_GenEvent.h"
51 #include "HepMC/GenEvent.h"
60 HepMC::HEPEVT_Wrapper::set_max_number_entries(4000);
61 HepMC::HEPEVT_Wrapper::set_sizeof_real(8);
73 pysubs.msub[20-1] = 1;
75 pydatr.mrpy[0]=55122 ;
77 pypars.mstp[128-1] = 2;
79 pydat2.pmas[1-1][6-1]= 175;
82 call_pyinit(
"CMS",
"p",
"p", 14000. );
87 HepMC::IO_HEPEVT hepevtio;
91 HepMC::IO_GenEvent ascii_io(
"example_MyPythia.dat",std::ios::out);
94 for (
int i = 1; i <= 10; i++ ) {
95 if ( i%50==1 ) std::cout <<
"Processing Event Number "
100 HepMC::GenEvent* evt = hepevtio.read_next_event();
102 evt->set_event_number(i);
103 evt->set_signal_process_id(20);
int main(int argc, char **argv)