48 using namespace Jetscape;
55 int main(
int argc,
char** argv)
57 clock_t
t; t = clock();
64 JetScapeLogger::Instance()->SetInfo(
true);
65 JetScapeLogger::Instance()->SetDebug(
true);
66 JetScapeLogger::Instance()->SetRemark(
false);
69 JetScapeLogger::Instance()->SetVerboseLevel(0);
73 auto jetscape = make_shared<JetScape>();
74 const char* mainXMLName =
"../config/jetscape_main.xml";
75 const char* userXMLName =
"../config/jetscape_user.xml";
77 jetscape->SetXMLMainFileName(mainXMLName);
78 jetscape->SetXMLUserFileName(userXMLName);
80 jetscape->SetNumberOfEvents(1);
81 jetscape->SetReuseHydro (
false);
82 jetscape->SetNReuseHydro (0);
87 auto trento = make_shared<TrentoInitial> ();
88 auto freestream = make_shared<FreestreamMilneWrapper> ();
89 auto hydro = make_shared<MpiMusic> ();
93 auto iSS = make_shared<iSpectraSamplerWrapper> ();
95 auto jlossmanager = make_shared<JetEnergyLossManager> ();
96 auto jloss = make_shared<JetEnergyLoss> ();
97 auto matter = make_shared<Matter> ();
108 auto pythiaGun= make_shared<PythiaGun> ();
115 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
125 jetscape->Add(trento);
128 jetscape->Add(pythiaGun);
130 jetscape->Add(freestream);
134 jetscape->Add(hydro);
145 jlossmanager->Add(jloss);
147 jetscape->Add(jlossmanager);
156 jetscape->Add(writer);
176 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
177 printf (
"Real time: %f seconds.\n",difftime(end,start));
186 INFO_NICE<<
"-----------------------------------------------";
187 INFO_NICE<<
"| freestream-milne Test JetScape Framework ... |";
188 INFO_NICE<<
"-----------------------------------------------";