26 #include "JetEnergyLoss.h"
27 #include "JetEnergyLossManager.h"
28 #include "JetScapeWriterStream.h"
30 #include "JetScapeWriterHepMC.h"
37 #include "MusicWrapper.h"
38 #include "iSpectraSamplerWrapper.h"
39 #include "TrentoInitial.h"
41 #include "PartonPrinter.h"
42 #include "HadronizationManager.h"
43 #include "Hadronization.h"
44 #include "ColoredHadronization.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(
true);
69 JetScapeLogger::Instance()->SetRemark(
false);
72 JetScapeLogger::Instance()->SetVerboseLevel(8);
80 auto jetscape = make_shared<JetScape>(
"./jetscape_init.xml",1);
81 jetscape->SetReuseHydro (
false);
82 jetscape->SetNReuseHydro (0);
85 auto trento = make_shared<TrentoInitial>();
86 auto pGun= make_shared<PGun> ();
87 auto hydro = make_shared<MpiMusic> ();
88 jetscape->Add(trento);
93 auto iSS = make_shared<iSpectraSamplerWrapper> ();
97 auto jlossmanager = make_shared<JetEnergyLossManager> ();
98 auto jloss = make_shared<JetEnergyLoss> ();
100 auto matter = make_shared<Matter> ();
110 jlossmanager->Add(jloss);
111 jetscape->Add(jlossmanager);
115 auto printer = make_shared<PartonPrinter> ();
116 jetscape->Add(printer);
117 auto hadroMgr = make_shared<HadronizationManager> ();
118 auto hadro = make_shared<Hadronization> ();
119 auto hadroModule = make_shared<ColoredHadronization> ();
120 hadro->Add(hadroModule);
123 hadroMgr->Add(hadro);
124 jetscape->Add(hadroMgr);
127 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
134 jetscape->Add(writer);
146 INFO_NICE<<
"Finished!";
154 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
155 printf (
"Real time: %f seconds.\n",difftime(end,start));
164 INFO_NICE<<
"-----------------------------------------------";
165 INFO_NICE<<
"| MUSIC Test JetScape Framework ... |";
166 INFO_NICE<<
"-----------------------------------------------";