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