57 using namespace Jetscape;
64 int main(
int argc,
char** argv)
66 clock_t
t; t = clock();
73 JetScapeLogger::Instance()->SetInfo(
true);
74 JetScapeLogger::Instance()->SetDebug(
true);
75 JetScapeLogger::Instance()->SetRemark(
false);
78 JetScapeLogger::Instance()->SetVerboseLevel(0);
82 auto jetscape = make_shared<JetScape>();
83 const char* mainXMLName =
"../config/jetscape_main.xml";
84 const char* userXMLName =
"../config/jetscape_user.xml";
86 jetscape->SetXMLMainFileName(mainXMLName);
87 jetscape->SetXMLUserFileName(userXMLName);
89 jetscape->SetNumberOfEvents(1);
90 jetscape->SetReuseHydro (
true);
91 jetscape->SetNReuseHydro (5);
97 auto trento = make_shared<TrentoInitial>();
98 auto null_predynamics = make_shared<NullPreDynamics> ();
100 auto pythiaGun= make_shared<PythiaGun> ();
101 auto hydro1 = make_shared<MpiMusic> ();
102 auto myliquefier = make_shared<CausalLiquefier> ();
103 hydro1->SetId(
"MUSIC_1");
106 jetscape->Add(trento);
107 jetscape->Add(null_predynamics);
108 jetscape->Add(pythiaGun);
112 jetscape->Add(hydro1);
115 auto jlossmanager = make_shared<JetEnergyLossManager> ();
116 auto jloss = make_shared<JetEnergyLoss> ();
117 jloss->add_a_liquefier(myliquefier);
120 auto matter = make_shared<Matter> ();
121 auto lbt = make_shared<LBT> ();
130 jlossmanager->Add(jloss);
131 jetscape->Add(jlossmanager);
135 auto hydro2 = make_shared<MpiMusic> ();
136 hydro2->add_a_liquefier(myliquefier);
137 hydro2->SetId(
"MUSIC_2");
138 jetscape->Add(hydro2);
141 auto iSS = make_shared<iSpectraSamplerWrapper> ();
146 auto printer = make_shared<PartonPrinter> ();
147 jetscape->Add(printer);
148 auto hadroMgr = make_shared<HadronizationManager> ();
149 auto hadro = make_shared<Hadronization> ();
152 auto colorless = make_shared<ColorlessHadronization> ();
153 hadro->Add(colorless);
154 hadroMgr->Add(hadro);
155 jetscape->Add(hadroMgr);
158 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
185 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
186 printf (
"Real time: %f seconds.\n",difftime(end,start));
195 INFO_NICE<<
"-----------------------------------------------";
196 INFO_NICE<<
"| MUSIC Test JetScape Framework ... |";
197 INFO_NICE<<
"-----------------------------------------------";