14 using namespace Pythia8;
20 Event&
event = pythia.event;
23 pythia.readFile(
"main53.cmnd");
26 int nEvent = pythia.mode(
"Main:numberOfEvents");
35 Hist pTprim(
"pT of photon production, no ISR", 100, 0., 100.);
36 Hist pTwith(
"pT of photon production, with ISR", 100, 0., 100.);
39 for (
int iEvent = 0; iEvent < nEvent; ++iEvent) {
47 int iGam = (
event[3].id() == 22) ? 3 : 4;
48 int iGamMother = iGam;
50 iGamMother =
event[iGam].mother1();
51 if (iGamMother < iGam || event[iGamMother].
id() != 22)
break;
56 if (iGamMother < iGam) pTprim.fill( event[iGam].pT() );
59 int size =
event.size();
61 while (event[iQ].status() != -43 && iQ < size - 1);
62 if (event[iQ].status() == -43) pTwith.fill( event[iQ].pT() );
70 cout << pTprim << pTwith;