52 using namespace Jetscape;
59 int main(
int argc,
char** argv)
61 clock_t
t; t = clock();
68 JetScapeLogger::Instance()->SetDebug(
false);
69 JetScapeLogger::Instance()->SetRemark(
false);
72 JetScapeLogger::Instance()->SetVerboseLevel(8);
76 auto jetscape = make_shared<JetScape>();
77 jetscape->SetXMLMainFileName(
"../config/jetscape_main.xml");
78 jetscape->SetXMLUserFileName(
"../config/jetscape_user.xml");
79 jetscape->SetId(
"primary");
82 auto trento = make_shared<TrentoInitial>();
83 auto pGun= make_shared<PGun> ();
84 auto hydro = make_shared<Brick> ();
85 jetscape->Add(trento);
90 auto jlossmanager = make_shared<JetEnergyLossManager> ();
91 auto jloss = make_shared<JetEnergyLoss> ();
92 auto lbt = make_shared<LBT> ();
94 jlossmanager->Add(jloss);
95 jetscape->Add(jlossmanager);
98 auto hadroMgr = make_shared<HadronizationManager> ();
99 auto hadro = make_shared<Hadronization> ();
100 auto hadroModule = make_shared<ColoredHadronization> ();
101 hadro->Add(hadroModule);
104 hadroMgr->Add(hadro);
105 jetscape->Add(hadroMgr);
108 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
136 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
137 printf (
"Real time: %f seconds.\n",difftime(end,start));
146 INFO_NICE<<
"------------------------------------";
147 INFO_NICE<<
"| Brick Test JetScape Framework ... |";
148 INFO_NICE<<
"------------------------------------";