54 using namespace Jetscape;
61 int main(
int argc,
char** argv)
63 clock_t
t; t = clock();
70 JetScapeLogger::Instance()->SetInfo(
true);
71 JetScapeLogger::Instance()->SetDebug(
false);
72 JetScapeLogger::Instance()->SetRemark(
false);
75 JetScapeLogger::Instance()->SetVerboseLevel(0);
80 auto jetscape = make_shared<JetScape>();
81 jetscape->SetXMLMainFileName(
"../config/jetscape_main.xml");
82 jetscape->SetXMLUserFileName(
"../config/jetscape_user_root_test.xml");
83 jetscape->SetId(
"primary");
86 auto trento = make_shared<TrentoInitial>();
87 auto pythiaGun= make_shared<PythiaGun> ();
88 auto hydro = make_shared<Brick> ();
89 jetscape->Add(trento);
90 jetscape->Add(pythiaGun);
95 auto jlossmanager = make_shared<JetEnergyLossManager> ();
96 auto jloss = make_shared<JetEnergyLoss> ();
98 auto matter = make_shared<Matter> ();
100 auto martini = make_shared<Martini> ();
108 jlossmanager->Add(jloss);
109 jetscape->Add(jlossmanager);
113 auto hadroMgr = make_shared<HadronizationManager> ();
114 auto hadro = make_shared<Hadronization> ();
117 auto colorless = make_shared<ColorlessHadronization> ();
118 hadro->Add(colorless);
119 hadroMgr->Add(hadro);
120 jetscape->Add(hadroMgr);
124 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
135 auto hepmcwriterRoot= make_shared<JetScapeWriterRootHepMC> (
"test_out_hepmc.root");
136 jetscape->Add(hepmcwriterRoot);
153 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
154 printf (
"Real time: %f seconds.\n",difftime(end,start));
174 INFO_NICE<<
"------------------------------------";
175 INFO_NICE<<
"| Brick Test JetScape Framework ... |";
176 INFO_NICE<<
"------------------------------------";