11 #include "Pythia8/Pythia.h"
12 using namespace Pythia8;
21 pythia.readString(
"PartonLevel:ISR = off");
22 pythia.readString(
"PartonLevel:FSR = off");
23 pythia.readString(
"PartonLevel:MPI = off");
24 pythia.readString(
"HadronLevel:Hadronize = on");
27 pythia.readString(
"Beams:frameType = 4");
28 pythia.readString(
"Beams:LHEF = main25.lhe");
32 Hist nCharged(
"charged particle multiplicity",100,-0.5,399.5);
39 for (
int iEvent = 0; ; ++iEvent) {
40 cout << endl <<
"Begin event # " << iEvent << endl;
46 if (pythia.info.atEndOfFile())
break;
49 if (++iAbort < nAbort)
continue;
55 for (
int i = 0; i < pythia.event.size(); ++i)
56 if (pythia.event[i].isFinal() && pythia.event[i].isCharged())