2 #include "G4RunManager.hh"
3 #include "G4UImanager.hh"
4 #include "G4VisExecutive.hh"
5 #include "G4UIExecutive.hh"
6 #include "G4VUserDetectorConstruction.hh"
7 #include "G4VModularPhysicsList.hh"
10 #include <GemGeoParData.h>
11 #include <MuMegasGeoParData.h>
12 #include <VstGeoParData.h>
25 auto expHall_phys =
eic->ConstructG4World();
26 if (!expHall_phys)
exit(0);
27 expHall_phys->GetLogicalVolume()->SetVisAttributes(G4VisAttributes::Invisible);
35 eic->DefineG4World(expHall_phys->GetLogicalVolume());
56 auto mid =
eic->mid()->get(
"TRACKER")->GetG4Volume();
74 auto fwd =
eic->fwd()->get(
"MPGD") ->GetG4Volume();
87 auto bck =
eic->bck()->get(
"TRD") ->GetG4Volume();
111 auto mid =
eic->mid()->get(
"TRACKER")->GetG4Volume();
129 int main(
int argc,
char** argv)
132 printf(
"\n\n usage: %s <EicToyModel-root-file-name> <EicRoot-media-file-name>\n\n\n", argv[0]);
142 G4RunManager *runManager =
new G4RunManager;
145 runManager->Initialize();
147 G4VisManager *visManager =
new G4VisExecutive(
"Quiet");
148 visManager->Initialize();
150 G4UImanager *UImanager = G4UImanager::GetUIpointer();
152 G4UIExecutive *ui =
new G4UIExecutive(argc, argv);
153 UImanager->ApplyCommand(
"/vis/open OGL 600x600-0+0");
155 UImanager->ApplyCommand(
"/vis/viewer/set/viewpointThetaPhi 110. 150.");
156 UImanager->ApplyCommand(
"/vis/viewer/set/lightsThetaPhi 110. 150.");
157 UImanager->ApplyCommand(
"/vis/drawVolume");
158 UImanager->ApplyCommand(
"/vis/scene/add/axes 0 0 0 1 m");
159 UImanager->ApplyCommand(
"/vis/viewer/set/background white");
160 UImanager->ApplyCommand(
"/vis/viewer/zoom 2.0");
169 delete ui;
delete visManager;
delete runManager;