53 using namespace Jetscape;
60 int main(
int argc,
char** argv)
62 clock_t
t; t = clock();
69 JetScapeLogger::Instance()->SetInfo(
true);
70 JetScapeLogger::Instance()->SetDebug(
false);
71 JetScapeLogger::Instance()->SetRemark(
false);
74 JetScapeLogger::Instance()->SetVerboseLevel(0);
79 auto jetscape = make_shared<JetScape>();
80 jetscape->SetXMLMainFileName(
"../config/jetscape_main.xml");
81 jetscape->SetXMLUserFileName(
"../config/jetscape_user.xml");
82 jetscape->SetId(
"primary");
85 auto trento = make_shared<TrentoInitial>();
86 auto pythiaGun= make_shared<PythiaGun> ();
87 auto hydro = make_shared<Brick> ();
88 jetscape->Add(trento);
89 jetscape->Add(pythiaGun);
94 auto jlossmanager = make_shared<JetEnergyLossManager> ();
95 auto jloss = make_shared<JetEnergyLoss> ();
97 auto matter = make_shared<Matter> ();
99 auto martini = make_shared<Martini> ();
107 jlossmanager->Add(jloss);
108 jetscape->Add(jlossmanager);
112 auto hadroMgr = make_shared<HadronizationManager> ();
113 auto hadro = make_shared<Hadronization> ();
116 auto colorless = make_shared<ColorlessHadronization> ();
117 hadro->Add(colorless);
118 hadroMgr->Add(hadro);
119 jetscape->Add(hadroMgr);
123 auto writer= make_shared<JetScapeWriterAscii> (
"test_out.dat");
127 auto writergz= make_shared<JetScapeWriterAsciiGZ> (
"test_out.dat.gz");
128 jetscape->Add(writergz);
132 auto hepmcwriter= make_shared<JetScapeWriterHepMC> (
"test_out.hepmc");
133 jetscape->Add(hepmcwriter);
150 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
151 printf (
"Real time: %f seconds.\n",difftime(end,start));
171 INFO_NICE<<
"------------------------------------";
172 INFO_NICE<<
"| Brick Test JetScape Framework ... |";
173 INFO_NICE<<
"------------------------------------";