12 #include "Pythia8/Pythia.h"
13 using namespace Pythia8;
22 pythia.readString(
"Random:setSeed = on");
23 pythia.readString(
"Random:seed = 0");
31 pythia.readString(
"ExtraDimensionsTEV:ffbar2mu+mu- = on");
44 double newMass = 4000.;
45 cout <<
"|-------------------------" << endl;
46 cout <<
"| KK mass is: " << newMass << endl;
47 cout <<
"|-------------------------" << endl;
49 string sNewMass, sNewWidth, sNewLowBound, sNewHighBound;
57 strm << newMass / pdt.m0(5000023) * pdt.mWidth(5000023);
64 strm >> sNewHighBound;
67 pythia.readString(
"5000023:m0 = " + sNewMass);
68 pythia.readString(
"5000023:mWidth = " + sNewWidth);
69 pythia.readString(
"5000023:mMin = " + sNewLowBound);
70 pythia.readString(
"5000023:mMax = " + sNewHighBound);
72 pythia.readString(
"5000023:isResonance = false");
75 pythia.readString(
"ExtraDimensionsTEV:gmZmode = 3");
77 pythia.readString(
"ExtraDimensionsTEV:nMax = 100");
78 pythia.readString(
"ExtraDimensionsTEV:mStar = " + sNewMass);
79 pythia.readString(
"PhaseSpace:mHatMin = " + sNewLowBound);
80 pythia.readString(
"PhaseSpace:mHatMax = " + sNewHighBound);
83 pythia.readString(
"Beams:eCM = 14000.");
87 Hist mHatHisto(
"dN/dmHat", 50, newMass/4., newMass*2.);
88 Hist pTmuHisto(
"(dN/dpT)_mu^-", 50, 1., 2501.);
102 for (
int iEvent = 0 ; iEvent < 500 ; ++iEvent) {
103 if (!pythia.next())
continue;
110 for (
int i = 0 ; i < pythia.event.size() ; ++i) {
112 if (pythia.event[i].id() == 5000023) {
117 if (pythia.event[i].id() == 13 && pythia.event[i].isFinal()) {
119 moms = pythia.event.motherList(i);
120 for (
int m = 0 ; m < int(moms.size()) ; m++) {
121 if( pythia.event[ moms[m] ].id() == 5000023 ) {
130 mHatHisto.fill( pythia.event[iZ].m() );
131 pTmuHisto.fill( pythia.event[imu].pT() );
133 if(iEvent%10 == 0) cout <<
"Event: " << iEvent << endl << flush;
138 t = (double) (stop-start)/CLOCKS_PER_SEC;
144 cout <<
"\n" <<
"|----------------------------------------|" << endl;
145 cout <<
"| CPU Runtime = " << t <<
" sec" << endl;
146 cout <<
"|----------------------------------------|" <<
"\n" << endl;