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);
76 auto jetscape = make_shared<JetScape>();
77 const char* mainXMLName =
"../config/jetscape_main.xml";
78 const char* userXMLName =
"../config/jetscape_user.xml";
80 jetscape->SetXMLMainFileName(mainXMLName);
81 jetscape->SetXMLUserFileName(userXMLName);
83 jetscape->SetNumberOfEvents(2);
84 jetscape->SetReuseHydro (
false);
85 jetscape->SetNReuseHydro (0);
91 auto trento = make_shared<TrentoInitial>();
92 auto null_predynamics = make_shared<NullPreDynamics> ();
93 auto pGun= make_shared<PGun> ();
94 auto hydro = make_shared<MpiMusic> ();
95 jetscape->Add(trento);
96 jetscape->Add(null_predynamics);
101 auto iSS = make_shared<iSpectraSamplerWrapper> ();
105 auto jlossmanager = make_shared<JetEnergyLossManager> ();
106 auto jloss = make_shared<JetEnergyLoss> ();
108 auto matter = make_shared<Matter> ();
118 jlossmanager->Add(jloss);
119 jetscape->Add(jlossmanager);
122 auto hadroMgr = make_shared<HadronizationManager> ();
123 auto hadro = make_shared<Hadronization> ();
124 auto hadroModule = make_shared<ColoredHadronization> ();
125 hadro->Add(hadroModule);
128 hadroMgr->Add(hadro);
129 jetscape->Add(hadroMgr);
132 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
159 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
160 printf (
"Real time: %f seconds.\n",difftime(end,start));
169 INFO_NICE<<
"-----------------------------------------------";
170 INFO_NICE<<
"| MUSIC Test JetScape Framework ... |";
171 INFO_NICE<<
"-----------------------------------------------";