61 for(std::vector<G4GDMLAuxStructType>::const_iterator
62 iaux = auxInfoList->begin(); iaux != auxInfoList->end(); iaux++ )
68 G4cout << prepend << str <<
" : " << val <<
" " << unit << G4endl;
70 if (iaux->auxList)
print_aux(iaux->auxList, prepend +
"|");
77int main(
int argc,
char **argv)
80 G4cout <<
"Usage: load_gdml <intput_gdml_file:mandatory>"
81 <<
" <output_gdml_file:optional>" << G4endl;
86 G4cout <<
"Error! Mandatory input file is not specified!" << G4endl;
100 parser.SetOverlapCheck(
true);
101 parser.Read(argv[1]);
105 G4cout <<
"Error! Too many arguments!" << G4endl;
110 auto* runManager = G4RunManagerFactory::CreateRunManager();
113 parser.GetWorldVolume()));
114 runManager->SetUserInitialization(
new FTFP_BERT);
117 runManager->Initialize();
121 visManager->Initialize();
124 G4UImanager* UImanager = G4UImanager::GetUIpointer();
134 std::vector<G4LogicalVolume*>::const_iterator lvciter;
135 for( lvciter = lvs->begin(); lvciter != lvs->end(); lvciter++ )
137 G4GDMLAuxListType auxInfo = parser.GetVolumeAuxiliaryInformation(*lvciter);
139 if (auxInfo.size()>0)
140 G4cout <<
"Auxiliary Information is found for Logical Volume : "
141 << (*lvciter)->GetName() << G4endl;
148 G4cout <<
"Global auxiliary info:" << std::endl;
161 runManager->BeamOn(0);
186 parser.SetRegionExport(
true);
189 parser.Write(argv[2], G4TransportationManager::GetTransportationManager()
190 ->GetNavigatorForTracking()->GetWorldVolume()->GetLogicalVolume());
196 G4String command =
"/control/execute ";
198 UImanager->ApplyCommand(command+fileName);
203 UImanager->ApplyCommand(
"/control/execute vis.mac");