22 #include "JetEnergyLoss.h"
23 #include "JetEnergyLossManager.h"
24 #include "JetScapeWriterStream.h"
26 #include "JetScapeWriterHepMC.h"
31 #include "ElossValidation.h"
32 #include "PartonPrinter.h"
33 #include "HadronizationManager.h"
34 #include "Hadronization.h"
35 #include "ColoredHadronization.h"
39 using namespace Jetscape;
46 int main(
int argc,
char** argv)
48 clock_t
t; t = clock();
51 JetScapeLogger::Instance()->SetInfo(
true);
52 JetScapeLogger::Instance()->SetDebug(
false);
53 JetScapeLogger::Instance()->SetRemark(
false);
54 JetScapeLogger::Instance()->SetVerboseLevel(0);
59 auto jetscape = make_shared<JetScape>(
"../examples/simplevalidate.xml",1);
60 jetscape->SetId(
"primary");
63 auto ini = make_shared<InitialState>();
64 ini->SetId(
"InitialState");
67 auto pGun= make_shared<PGun> ();
70 auto hydro = make_shared<Brick> ();
73 auto jlossmanager = make_shared<JetEnergyLossManager> ();
76 auto jloss = make_shared<JetEnergyLoss> ();
81 auto eloss1 = make_shared<ElossValidate> ();
84 auto writer= make_shared<JetScapeWriterAscii> (
"validate_out.dat");
93 jlossmanager->Add(jloss);
94 jetscape->Add(jlossmanager);
99 jetscape->Add(writer);
109 INFO_NICE<<
"Finished!";
114 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
115 printf (
"Real time: %f seconds.\n",difftime(end,start));
124 INFO_NICE<<
"--------------------------------------";
125 INFO_NICE<<
"| Validation Test JetScape Framework |";
126 INFO_NICE<<
"--------------------------------------";