26 #include "JetEnergyLoss.h"
27 #include "JetEnergyLossManager.h"
28 #include "JetScapeWriterStream.h"
30 #include "JetScapeWriterHepMC.h"
35 #include "TrentoInitial.h"
41 #include "GubserHydro.h"
42 #include "PythiaGun.h"
43 #include "PartonPrinter.h"
44 #include "HadronizationManager.h"
45 #include "Hadronization.h"
46 #include "ColoredHadronization.h"
47 #include "ColorlessHadronization.h"
54 using namespace Jetscape;
61 int main(
int argc,
char** argv)
63 clock_t
t; t = clock();
70 JetScapeLogger::Instance()->SetInfo(
true);
71 JetScapeLogger::Instance()->SetDebug(
false);
72 JetScapeLogger::Instance()->SetRemark(
false);
75 JetScapeLogger::Instance()->SetVerboseLevel(0);
80 auto jetscape = make_shared<JetScape>(
"./jetscape_init.xml",200);
81 jetscape->SetId(
"primary");
84 auto trento = make_shared<TrentoInitial>();
85 auto pythiaGun= make_shared<PythiaGun> ();
86 auto hydro = make_shared<Brick> ();
87 jetscape->Add(trento);
88 jetscape->Add(pythiaGun);
93 auto jlossmanager = make_shared<JetEnergyLossManager> ();
94 auto jloss = make_shared<JetEnergyLoss> ();
96 auto matter = make_shared<Matter> ();
106 jlossmanager->Add(jloss);
107 jetscape->Add(jlossmanager);
112 auto printer = make_shared<PartonPrinter> ();
113 jetscape->Add(printer);
114 auto hadroMgr = make_shared<HadronizationManager> ();
115 auto hadro = make_shared<Hadronization> ();
116 auto hadroModule = make_shared<ColoredHadronization> ();
117 hadro->Add(hadroModule);
120 hadroMgr->Add(hadro);
121 jetscape->Add(hadroMgr);
125 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
126 jetscape->Add(writer);
129 auto writergz= make_shared<JetScapeWriterAsciiGZ> (
"test_out.dat.gz");
130 jetscape->Add(writergz);
134 auto hepmcwriter= make_shared<JetScapeWriterHepMC> (
"test_out.hepmc");
135 jetscape->Add(hepmcwriter);
147 INFO_NICE<<
"Finished!";
152 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
153 printf (
"Real time: %f seconds.\n",difftime(end,start));
173 INFO_NICE<<
"------------------------------------";
174 INFO_NICE<<
"| Brick Test JetScape Framework ... |";
175 INFO_NICE<<
"------------------------------------";