60 using namespace Jetscape;
67 int main(
int argc,
char** argv)
69 clock_t
t; t = clock();
85 auto jetscape = make_shared<JetScape>();
86 jetscape->SetXMLMainFileName(
"../config/jetscape_main.xml");
87 jetscape->SetXMLUserFileName(
"../config/jetscape_user.xml");
89 jetscape->SetId(
"primary");
90 jetscape->SetReuseHydro (
true);
91 jetscape->SetNReuseHydro (20);
93 auto jlossmanager = make_shared<JetEnergyLossManager> ();
94 auto jloss = make_shared<JetEnergyLoss> ();
95 auto hydro = make_shared<HydroFromFile> ();
98 auto matter = make_shared<Matter> ();
99 auto lbt = make_shared<LBT> ();
100 auto martini = make_shared<Martini> ();
101 auto adscft = make_shared<AdSCFT> ();
109 auto pythiaGun= make_shared<PythiaGun> ();
111 auto hadroMgr = make_shared<HadronizationManager> ();
112 auto hadro = make_shared<Hadronization> ();
113 auto hadroModule = make_shared<ColoredHadronization> ();
114 auto colorless = make_shared<ColorlessHadronization> ();
117 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
120 auto writerhepmc= make_shared<JetScapeWriterHepMC> (
"test_out.hepmc");
121 jetscape->Add(writerhepmc);
129 auto initial = make_shared<InitialFromFile>();
130 jetscape->Add(initial);
133 jetscape->Add(pythiaGun);
137 jetscape->Add(hydro);
148 jlossmanager->Add(jloss);
150 jetscape->Add(jlossmanager);
153 hadro->Add(colorless);
154 hadroMgr->Add(hadro);
155 jetscape->Add(hadroMgr);
157 jetscape->Add(writer);
174 writer->WriteComment (
"EVENT GENERATION INFORMATION" );
175 Pythia8::Info& info = pythiaGun->info;
176 std::ostringstream oss;
177 oss.str(
""); oss <<
"nTried = " << info.nTried();
178 writer->WriteComment ( oss.str() );
179 oss.str(
""); oss <<
"nSelected = " << info.nSelected();
180 writer->WriteComment ( oss.str() );
181 oss.str(
""); oss <<
"nAccepted = " << info.nAccepted();
182 writer->WriteComment ( oss.str() );
183 oss.str(
""); oss <<
"sigmaGen = " << info.sigmaGen();
184 writer->WriteComment ( oss.str() );
185 oss.str(
""); oss <<
"sigmaErr = " << info.sigmaErr();
186 writer->WriteComment ( oss.str() );
188 oss.str(
""); oss <<
"eCM = " << info.eCM();
189 writer->WriteComment ( oss.str() );
190 oss.str(
""); oss <<
"pTHatMin = " << pythiaGun->GetpTHatMin();
191 writer->WriteComment ( oss.str() );
192 oss.str(
""); oss <<
"pTHatMax = " << pythiaGun->GetpTHatMax();
195 writer->WriteComment ( oss.str() );
196 writer->WriteComment (
"/EVENT GENERATION INFORMATION" );
200 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
201 printf (
"Real time: %f seconds.\n",difftime(end,start));
208 cout <<
" nTried = " << info.nTried() << endl;
209 cout <<
" nSelected = " << info.nSelected() << endl;
210 cout <<
" nAccepted = " << info.nAccepted() << endl;
211 cout <<
" sigmaGen = " << info.sigmaGen() << endl;
212 cout <<
" sigmaErr = " << info.sigmaErr() << endl;
222 INFO_NICE<<
"------------------------------------------------------";
223 INFO_NICE<<
"| Jet in hydro from file Test JetScape Framework ... |";
224 INFO_NICE<<
"------------------------------------------------------";