15 sprintf(cmd,
"/control/execute %s", mac);
22 cout <<
"draw axis: " << endl;
23 cout <<
" g4->ApplyCommand(\"/vis/scene/add/axes 0 0 0 50 cm\")" << endl;
24 cout <<
"zoom" << endl;
25 cout <<
" g4->ApplyCommand(\"/vis/viewer/zoom 1\")" << endl;
26 cout <<
"viewpoint:" << endl;
27 cout <<
" g4->ApplyCommand(\"/vis/viewer/set/viewpointThetaPhi 0 0\")" << endl;
28 cout <<
"panTo:" << endl;
29 cout <<
" g4->ApplyCommand(\"/vis/viewer/panTo 0 0 cm\")" << endl;
30 cout <<
"print to eps:" << endl;
31 cout <<
" g4->ApplyCommand(\"/vis/ogl/printEPS\")" << endl;
32 cout <<
"set background color:" << endl;
33 cout <<
" g4->ApplyCommand(\"/vis/viewer/set/background white\")" << endl;
36 cout <<
"print material:" << endl;
37 cout <<
" g4->ApplyCommand(\"/material/g4/printMaterial G4_Ar\")" << endl;
static Fun4AllServer * instance()
PHG4Reco * DisplayOn(const char *mac="vis.mac")
PHCompositeNode * topNode() const
int InitRun(PHCompositeNode *topNode)
SubsysReco * getSubsysReco(const std::string &name)
int ApplyCommand(const std::string &cmd)
interface to G4 cmd interpreter