26 #include "JetEnergyLoss.h"
27 #include "JetEnergyLossManager.h"
28 #include "JetScapeWriterStream.h"
30 #include "JetScapeWriterHepMC.h"
34 #include "TrentoInitial.h"
40 #include "GubserHydro.h"
42 #include "PartonPrinter.h"
43 #include "HadronizationManager.h"
44 #include "Hadronization.h"
45 #include "ColoredHadronization.h"
46 #include "ColorlessHadronization.h"
51 using namespace Jetscape;
58 int main(
int argc,
char** argv)
60 clock_t
t; t = clock();
67 JetScapeLogger::Instance()->SetInfo(
true);
68 JetScapeLogger::Instance()->SetDebug(
false);
69 JetScapeLogger::Instance()->SetRemark(
false);
72 JetScapeLogger::Instance()->SetVerboseLevel(0);
76 auto jetscape = make_shared<JetScape>(
"./jetscape_init.xml",200);
77 jetscape->SetId(
"primary");
80 auto trento = make_shared<TrentoInitial>();
81 auto pGun= make_shared<PGun> ();
82 auto hydro = make_shared<Brick> ();
83 jetscape->Add(trento);
88 auto jlossmanager = make_shared<JetEnergyLossManager> ();
89 auto jloss = make_shared<JetEnergyLoss> ();
91 auto matter = make_shared<Matter> ();
101 jlossmanager->Add(jloss);
102 jetscape->Add(jlossmanager);
107 auto printer = make_shared<PartonPrinter> ();
108 jetscape->Add(printer);
109 auto hadroMgr = make_shared<HadronizationManager> ();
110 auto hadro = make_shared<Hadronization> ();
111 auto hadroModule = make_shared<ColoredHadronization> ();
112 hadro->Add(hadroModule);
115 hadroMgr->Add(hadro);
116 jetscape->Add(hadroMgr);
119 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
126 jetscape->Add(writer);
137 INFO_NICE<<
"Finished!";
142 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
143 printf (
"Real time: %f seconds.\n",difftime(end,start));
151 INFO_NICE<<
"------------------------------------";
152 INFO_NICE<<
"| Brick Test JetScape Framework ... |";
153 INFO_NICE<<
"------------------------------------";