16 #include "HepMCInterface.h"
18 #include "HepMC/GenEvent.h"
19 #include "HepMC/IO_GenEvent.h"
26 #ifdef HEPMC_HAS_UNITS
27 #include "HepMC/Units.h"
30 using namespace Pythia8;
47 pythia.readString(
"Beams:eCM = 8000.");
48 pythia.readString(
"HardQCD:all = on");
49 pythia.readString(
"PhaseSpace:pTHatMin = 20.");
51 Hist mult(
"charged multiplicity", 100, -0.5, 799.5);
54 for (
int iEvent = 0; iEvent < 100; ++iEvent) {
55 if (!pythia.next())
continue;
59 for (
int i = 0; i < pythia.event.size(); ++i)
60 if (pythia.event[i].isFinal() && pythia.event[i].isCharged())
62 mult.fill( nCharged );
65 #ifdef HEPMC_HAS_UNITS
69 HepMC::Units::GEV, HepMC::Units::MM);
77 ToHepMC.fill_next_event( pythia, hepmcevt );
The GenEvent class is the core of HepMC.
IO_GenEvent also deals with HeavyIon and PdfInfo.