21 #include "JetScapeWriterAscii.h"
41 using namespace Jetscape;
48 int main(
int argc,
char** argv)
50 clock_t
t; t = clock();
57 JetScapeLogger::Instance()->SetDebug(
false);
58 JetScapeLogger::Instance()->SetRemark(
false);
61 JetScapeLogger::Instance()->SetVerboseLevel(8);
65 auto jetscape = make_shared<JetScape>(
"./jetscape_init.xml",10);
66 jetscape->SetId(
"primary");
67 auto initState = make_shared<InitialState> ();
68 auto jlossmanager = make_shared<JetEnergyLossManager> ();
69 auto jloss = make_shared<JetEnergyLoss> ();
70 auto hydro = make_shared<Brick> ();
73 auto matter = make_shared<Matter> ();
74 auto martini = make_shared<Martini> ();
76 auto pGun= make_shared<PGun> ();
80 auto writer= make_shared<JetScapeWriterAsciiGZ> (
"test_out.dat.gz");
82 auto writer= make_shared<JetScapeWriterHepMC> (
"test_out.hepmc");
85 jetscape->Add(initState);
99 jlossmanager->Add(jloss);
101 jetscape->Add(jlossmanager);
103 jetscape->Add(writer);
121 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
122 printf (
"Real time: %f seconds.\n",difftime(end,start));
131 INFO_NICE<<
"------------------------------------";
132 INFO_NICE<<
"| Writer Test JetScape Framework ... |";
133 INFO_NICE<<
"------------------------------------";