File indexing completed on 2025-08-05 08:20:34
0001
0002
0003
0004
0005
0006
0007
0008
0009 PHG4Reco * DisplayOn(const char *mac = "vis_prototype2.mac")
0010 {
0011 char cmd[100];
0012 Fun4AllServer *se = Fun4AllServer::instance();
0013 PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco("PHG4RECO");
0014 g4->InitRun(se->topNode());
0015 g4->ApplyDisplayAction();
0016 sprintf(cmd, "/control/execute %s", mac);
0017 g4->ApplyCommand(cmd);
0018 return g4;
0019 }
0020
0021 void displaycmd()
0022 {
0023 cout << "draw axis: " << endl;
0024 cout << " g4->ApplyCommand(\"/vis/scene/add/axes 0 0 0 50 cm\")" << endl;
0025 cout << "zoom" << endl;
0026 cout << " g4->ApplyCommand(\"/vis/viewer/zoom 1\")" << endl;
0027 cout << "viewpoint:" << endl;
0028 cout << " g4->ApplyCommand(\"/vis/viewer/set/viewpointThetaPhi 0 0\")" << endl;
0029 cout << "panTo:" << endl;
0030 cout << " g4->ApplyCommand(\"/vis/viewer/panTo 0 0 cm\")" << endl;
0031 cout << "print to eps:" << endl;
0032 cout << " g4->ApplyCommand(\"/vis/ogl/printEPS\")" << endl;
0033 cout << "set background color:" << endl;
0034 cout << " g4->ApplyCommand(\"/vis/viewer/set/background white\")" << endl;
0035 }