1 #ifndef MACRO_FUN4ALLGENERATORDISPLAY_C
2 #define MACRO_FUN4ALLGENERATORDISPLAY_C
19 #include <phpythia6/PHPythia6.h>
20 #include <phpythia8/PHPythia8.h>
21 #include <phsartre/PHSartre.h>
23 R__LOAD_LIBRARY(libfun4all.so)
24 R__LOAD_LIBRARY(libg4testbench.so)
25 R__LOAD_LIBRARY(libPHPythia6.so)
26 R__LOAD_LIBRARY(libPHPythia8.so)
27 R__LOAD_LIBRARY(libPHSartre.so)
33 const std::
string &inputFile = "
input.
root"
49 const bool readhepmc =
false;
52 const bool readeictree =
false;
55 const bool runpythia8 =
true;
58 const bool runpythia6 =
false;
61 const bool runsartre =
false;
70 const bool usegun =
false;
72 const bool upsilons =
false;
74 const bool cosmic =
false;
189 if (readhepmc || particles)
206 else if (istate == 2)
223 cout <<
"Upsilon generator for istate = " << istate <<
" created and registered " << endl;
263 for (
int i=0;
i<5;
i++)
267 cout <<
"Type displaycmd() to see some commands to change the display" << endl;
268 cout <<
"If you want to run more events, do:" << endl;
269 cout <<
"Fun4AllServer *se = Fun4AllServer::instance();" << endl;
270 cout <<
"se->run(1);" << endl;
276 cout <<
"draw 1m axis: " << endl;
277 cout <<
" g4->ApplyCommand(\"/vis/scene/add/axes 0 0 0 100 cm\")" << endl;
278 cout <<
"zoom" << endl;
279 cout <<
" g4->ApplyCommand(\"/vis/viewer/zoom 1\")" << endl;
280 cout <<
"viewpoint:" << endl;
281 cout <<
" g4->ApplyCommand(\"/vis/viewer/set/viewpointThetaPhi 0 0\")" << endl;
282 cout <<
"panTo:" << endl;
283 cout <<
" g4->ApplyCommand(\"/vis/viewer/panTo 0 0 cm\")" << endl;
284 cout <<
"print to eps:" << endl;
285 cout <<
" g4->ApplyCommand(\"/vis/ogl/printEPS\")" << endl;
286 cout <<
"set background color:" << endl;
287 cout <<
" g4->ApplyCommand(\"/vis/viewer/set/background white\")" << endl;