68 using namespace Jetscape;
75 int main(
int argc,
char** argv)
77 clock_t
t; t = clock();
84 JetScapeLogger::Instance()->SetInfo(
true);
85 JetScapeLogger::Instance()->SetDebug(
true);
86 JetScapeLogger::Instance()->SetRemark(
false);
89 JetScapeLogger::Instance()->SetVerboseLevel(8);
93 auto jetscape = make_shared<JetScape>();
94 const char* mainXMLName =
"../config/jetscape_main.xml";
95 const char* userXMLName =
"../config/jetscape_user.xml";
97 jetscape->SetXMLMainFileName(mainXMLName);
98 jetscape->SetXMLUserFileName(userXMLName);
100 jetscape->SetNumberOfEvents(1);
101 jetscape->SetReuseHydro (
false);
102 jetscape->SetNReuseHydro (0);
108 auto trento = make_shared<TrentoInitial>();
109 auto freestream = make_shared<FreestreamMilneWrapper> ();
110 auto pGun= make_shared<PGun> ();
111 auto hydro = make_shared<MpiMusic> ();
112 jetscape->Add(trento);
113 jetscape->Add(freestream);
115 jetscape->Add(hydro);
118 auto iSS = make_shared<iSpectraSamplerWrapper> ();
122 auto smash = make_shared<SmashWrapper> ();
123 jetscape->Add(smash);
126 auto jlossmanager = make_shared<JetEnergyLossManager> ();
127 auto jloss = make_shared<JetEnergyLoss> ();
129 auto matter = make_shared<Matter> ();
139 jlossmanager->Add(jloss);
140 jetscape->Add(jlossmanager);
143 auto hadroMgr = make_shared<HadronizationManager> ();
144 auto hadro = make_shared<Hadronization> ();
145 auto hadroModule = make_shared<ColoredHadronization> ();
146 hadro->Add(hadroModule);
149 hadroMgr->Add(hadro);
150 jetscape->Add(hadroMgr);
153 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
180 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
181 printf (
"Real time: %f seconds.\n",difftime(end,start));
190 INFO_NICE<<
"-----------------------------------------------";
191 INFO_NICE<<
"| SMASH Test JetScape Framework ... |";
192 INFO_NICE<<
"-----------------------------------------------";