10 using namespace Pythia8;
16 Event&
event = pythia.event;
20 pythia.readString(
"Top:all = on");
25 pythia.readString(
"SecondHard:generate = on");
27 pythia.readString(
"SecondHard:PhotonAndJet = on");
34 pythia.readString(
"PhaseSpace:mHatMin = 40.");
35 pythia.readString(
"PhaseSpace:pTHatMin = 20.");
38 pythia.readString(
"Beams:eCM = 8000.");
42 Hist pTfirst(
"pT first collision", 100, 0., 400.);
43 Hist pTsecond(
"pT second collision", 100, 0., 200.);
44 Hist pTdiff(
"pT first-second collision", 100, -100., 300.);
45 Hist nMult(
"number of multiparton interactions", 100, -0.5, 99.5);
46 Hist bMore(
"b enhancement factor", 100, 0., 10.);
47 Hist nChg(
"charged multiplicity", 100, -0.5, 999.5);
50 for (
int iev = 0; iev < 1000; ++iev) {
54 double pT1 = pythia.info.pTMPI(0);
55 double pT2 = pythia.info.pTMPI(1);
58 pTdiff.fill( pT1 - pT2 );
61 double nMPI = pythia.info.nMPI();
63 bMore.fill( pythia.info.enhanceMPI() );
67 for (
int i = 0; i <
event.size(); ++i)
68 if (event[i].isFinal() &&
event[i].isCharged()) ++nCharged;
69 nChg.fill( nCharged );
75 cout << scientific << setprecision(3) <<
"\n From pythia.info: sigma = "
76 << pythia.info.sigmaGen() <<
" +- " << pythia.info.sigmaErr()
80 cout << pTfirst << pTsecond << pTdiff << nMult << bMore << nChg;