10 using namespace Pythia8;
14 pythia.readString(
"Beams:idB = -2212");
15 pythia.readString(
"Beams:eCM = 1960.");
16 pythia.readString(
"WeakSingleBoson:ffbar2gmZ = on");
17 pythia.readString(
"PhaseSpace:mHatMin = 80.");
18 pythia.readString(
"PhaseSpace:mHatMax = 120.");
20 Hist pTZ(
"dN/dpTZ", 100, 0., 100.);
22 for (
int iEvent = 0; iEvent < 1000; ++iEvent) {
23 if (!pythia.next())
continue;
26 for (
int i = 0; i < pythia.event.size(); ++i)
27 if (pythia.event[i].id() == 23) iZ = i;
28 pTZ.fill( pythia.event[iZ].pT() );