2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
17 #include <phpythia6/PHPythia6.h>
18 #include <phpythia8/PHPythia8.h>
19 #include <phsartre/PHSartre.h>
33 const std::string &inputFile =
"input.root"
49 const bool readhepmc =
false;
52 const bool readeictree =
false;
55 const bool runpythia8 =
false;
58 const bool runpythia6 =
true;
61 const bool runsartre =
false;
68 const bool particles =
false;
70 const bool usegun =
false;
72 const bool upsilons =
false;
103 gSystem->Load(
"libPHPythia8.so");
112 gSystem->Load(
"libPHPythia6.so");
122 gSystem->Load(
"libPHSartre.so");
187 if (readhepmc || particles)
204 else if (istate == 2)
221 cout <<
"Upsilon generator for istate = " << istate <<
" created and registered " << endl;
258 for (
int i=0; i<5; i++)
262 cout <<
"Type displaycmd() to see some commands to change the display" << endl;
263 cout <<
"If you want to run more events, do:" << endl;
264 cout <<
"Fun4AllServer *se = Fun4AllServer::instance();" << endl;
265 cout <<
"se->run(1);" << endl;
271 cout <<
"draw 1m axis: " << endl;
272 cout <<
" g4->ApplyCommand(\"/vis/scene/add/axes 0 0 0 100 cm\")" << endl;
273 cout <<
"zoom" << endl;
274 cout <<
" g4->ApplyCommand(\"/vis/viewer/zoom 1\")" << endl;
275 cout <<
"viewpoint:" << endl;
276 cout <<
" g4->ApplyCommand(\"/vis/viewer/set/viewpointThetaPhi 0 0\")" << endl;
277 cout <<
"panTo:" << endl;
278 cout <<
" g4->ApplyCommand(\"/vis/viewer/panTo 0 0 cm\")" << endl;
279 cout <<
"print to eps:" << endl;
280 cout <<
" g4->ApplyCommand(\"/vis/ogl/printEPS\")" << endl;
281 cout <<
"set background color:" << endl;
282 cout <<
" g4->ApplyCommand(\"/vis/viewer/set/background white\")" << endl;