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.);
96 assert((start = clock()) != -1);
100 for (
int iEvent = 0 ; iEvent < 500 ; ++iEvent) {
101 if (!pythia.next())
continue;
108 for (
int i = 0 ; i < pythia.event.size() ; ++i) {
110 if (pythia.event[i].id() == 5000023) {
115 if (pythia.event[i].id() == 13 && pythia.event[i].isFinal()) {
117 moms = pythia.event.motherList(i);
118 for (
int m = 0 ; m < int(moms.size()) ; m++) {
119 if( pythia.event[ moms[m] ].id() == 5000023 ) {
128 mHatHisto.fill( pythia.event[iZ].m() );
129 pTmuHisto.fill( pythia.event[imu].pT() );
131 if(iEvent%10 == 0) cout <<
"Event: " << iEvent << endl << flush;
136 t = (double) (stop-start)/CLOCKS_PER_SEC;
142 cout <<
"\n" <<
"|----------------------------------------|" << endl;
143 cout <<
"| CPU Runtime = " << t <<
" sec" << endl;
144 cout <<
"|----------------------------------------|" <<
"\n" << endl;