21 #include "JetEnergyLoss.h"
22 #include "JetEnergyLossManager.h"
23 #include "JetScapeWriterStream.h"
25 #include "JetScapeWriterHepMC.h"
33 #include "FreestreamMilneWrapper.h"
34 #include "MusicWrapper.h"
35 #include "TrentoInitial.h"
37 #include "PythiaGun.h"
38 #include "PartonPrinter.h"
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);
77 auto jetscape = make_shared<JetScape>(
"./jetscape_init.xml",1);
78 jetscape->SetReuseHydro (
false);
79 jetscape->SetNReuseHydro (0);
81 auto jlossmanager = make_shared<JetEnergyLossManager> ();
82 auto jloss = make_shared<JetEnergyLoss> ();
83 auto trento = make_shared<TrentoInitial> ();
84 auto freestream = make_shared<FreestreamMilneWrapper> ();
85 auto hydro = make_shared<MpiMusic> ();
88 auto matter = make_shared<Matter> ();
89 auto martini = make_shared<Martini> ();
90 auto adscft = make_shared<AdSCFT> ();
99 auto pythiaGun= make_shared<PythiaGun> ();
101 auto printer = make_shared<PartonPrinter> ();
108 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
118 jetscape->Add(trento);
121 jetscape->Add(pythiaGun);
123 jetscape->Add(freestream);
127 jetscape->Add(hydro);
137 jlossmanager->Add(jloss);
139 jetscape->Add(jlossmanager);
142 jetscape->Add(printer);
150 jetscape->Add(writer);
162 INFO_NICE<<
"Finished!";
170 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
171 printf (
"Real time: %f seconds.\n",difftime(end,start));
180 INFO_NICE<<
"-----------------------------------------------";
181 INFO_NICE<<
"| freestream-milne Test JetScape Framework ... |";
182 INFO_NICE<<
"-----------------------------------------------";