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(1);
84 jetscape->SetReuseHydro (
false);
85 jetscape->SetNReuseHydro (0);
91 auto trento = make_shared<TrentoInitial>();
92 auto pGun= make_shared<PGun> ();
93 auto hydro = make_shared<CLVisc> ();
94 jetscape->Add(trento);
103 auto jlossmanager = make_shared<JetEnergyLossManager> ();
104 auto jloss = make_shared<JetEnergyLoss> ();
106 auto matter = make_shared<Matter> ();
116 jlossmanager->Add(jloss);
117 jetscape->Add(jlossmanager);
121 auto printer = make_shared<PartonPrinter> ();
122 jetscape->Add(printer);
123 auto hadroMgr = make_shared<HadronizationManager> ();
124 auto hadro = make_shared<Hadronization> ();
125 auto hadroModule = make_shared<ColoredHadronization> ();
126 hadro->Add(hadroModule);
129 hadroMgr->Add(hadro);
130 jetscape->Add(hadroMgr);
133 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
160 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
161 printf (
"Real time: %f seconds.\n",difftime(end,start));
170 INFO_NICE<<
"-----------------------------------------------";
171 INFO_NICE<<
"| CLVisc Test JetScape Framework ... |";
172 INFO_NICE<<
"-----------------------------------------------";