38 using namespace Jetscape;
45 int main(
int argc,
char** argv)
47 clock_t
t; t = clock();
58 auto jetscape = make_shared<JetScape>();
59 jetscape->SetXMLMainFileName(
"../config/jetscape_main.xml");
60 jetscape->SetXMLUserFileName(
"../config/jetscape_user.xml");
61 jetscape->SetId(
"primary");
64 auto ini = make_shared<InitialState>();
65 ini->SetId(
"InitialState");
68 auto pGun= make_shared<PGun> ();
71 auto hydro = make_shared<Brick> ();
74 auto jlossmanager = make_shared<JetEnergyLossManager> ();
77 auto jloss = make_shared<JetEnergyLoss> ();
82 auto eloss1 = make_shared<ElossValidate> ();
85 auto writer= make_shared<JetScapeWriterAscii> (
"validate_out.dat");
94 jlossmanager->Add(jloss);
95 jetscape->Add(jlossmanager);
100 jetscape->Add(writer);
115 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
116 printf (
"Real time: %f seconds.\n",difftime(end,start));
125 INFO_NICE<<
"--------------------------------------";
126 INFO_NICE<<
"| Validation Test JetScape Framework |";
127 INFO_NICE<<
"--------------------------------------";