60 using namespace Jetscape;
67 int main(
int argc,
char** argv)
69 clock_t
t; t = clock();
76 JetScapeLogger::Instance()->SetInfo(
true);
77 JetScapeLogger::Instance()->SetDebug(
true);
78 JetScapeLogger::Instance()->SetRemark(
false);
81 JetScapeLogger::Instance()->SetVerboseLevel(0);
85 auto jetscape = make_shared<JetScape>();
86 const char* mainXMLName =
"../config/jetscape_main.xml";
87 const char* userXMLName =
"../config/jetscape_user.xml";
89 jetscape->SetXMLMainFileName(mainXMLName);
90 jetscape->SetXMLUserFileName(userXMLName);
92 jetscape->SetNumberOfEvents(2);
93 jetscape->SetReuseHydro (
true);
94 jetscape->SetNReuseHydro (5);
99 auto initial = make_shared<InitialFromFile>();
100 auto freestream = make_shared<FreestreamMilneWrapper> ();
101 auto pGun= make_shared<PGun> ();
102 auto hydro1 = make_shared<HydroFromFile> ();
103 auto myliquefier = make_shared<CausalLiquefier> ();
104 hydro1->SetId(
"HydroFromFile");
106 jetscape->Add(initial);
107 jetscape->Add(freestream);
111 jetscape->Add(hydro1);
114 auto jlossmanager = make_shared<JetEnergyLossManager> ();
115 auto jloss = make_shared<JetEnergyLoss> ();
116 jloss->add_a_liqueifier(myliquefier);
119 auto matter = make_shared<Matter> ();
120 auto lbt = make_shared<LBT> ();
129 jlossmanager->Add(jloss);
130 jetscape->Add(jlossmanager);
134 auto hydro2 = make_shared<MpiMusic> ();
135 hydro2->add_a_liqueifier(myliquefier);
136 hydro2->SetId(
"MUSIC_2");
137 jetscape->Add(hydro2);
140 auto iSS = make_shared<iSpectraSamplerWrapper> ();
145 auto printer = make_shared<PartonPrinter> ();
146 jetscape->Add(printer);
147 auto hadroMgr = make_shared<HadronizationManager> ();
148 auto hadro = make_shared<Hadronization> ();
151 auto colorless = make_shared<ColorlessHadronization> ();
152 hadro->Add(colorless);
153 hadroMgr->Add(hadro);
154 jetscape->Add(hadroMgr);
157 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
184 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
185 printf (
"Real time: %f seconds.\n",difftime(end,start));
194 INFO_NICE<<
"-----------------------------------------------";
195 INFO_NICE<<
"| MUSIC Test JetScape Framework ... |";
196 INFO_NICE<<
"-----------------------------------------------";