62 for(std::vector<G4GDMLAuxStructType>::const_iterator iaux = auxInfoList->begin();
63 iaux != auxInfoList->end(); iaux++ )
69 G4cout << prepend << str <<
" : " << val <<
" " << unit <<
G4endl;
71 if (iaux->auxList)
print_aux(iaux->auxList, prepend +
"|");
77 int 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;
121 std::cout << std::endl;
124 std::vector<G4LogicalVolume*>::const_iterator lvciter;
125 for( lvciter = lvs->begin(); lvciter != lvs->end(); lvciter++ )
129 if (auxInfo.size()>0)
130 G4cout <<
"Auxiliary Information is found for Logical Volume : "
131 << (*lvciter)->GetName() <<
G4endl;
137 std::cout << std::endl;
138 std::cout <<
"Global auxiliary info:" << std::endl;
139 std::cout << std::endl;
143 std::cout << std::endl;
172 ->GetNavigatorForTracking()->GetWorldVolume()->GetLogicalVolume());
178 G4String command =
"/control/execute ";
int main(int argc, char **argv)
Minimal primary generator action to demonstrate the use of GDML geometries.
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the G01DetectorConstruction class.
G4VPhysicalVolume * GetWorldVolume(const G4String &setupName="Default") const
G4GDMLAuxListType GetVolumeAuxiliaryInformation(G4LogicalVolume *lvol) const
Detector construction allowing to use the geometry read from the GDML file.
void SetRegionExport(G4bool)
const G4GDMLAuxListType * GetAuxList() const
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
static G4LogicalVolumeStore * GetInstance()
void Write(const G4String &filename, const G4VPhysicalVolume *pvol=0, G4bool storeReferences=true, const G4String &SchemaLocation=G4GDML_DEFAULT_SCHEMALOCATION)
CommandLineParser * parser(0)
void print_aux(const G4GDMLAuxListType *auxInfoList, G4String prepend="|")
static G4TransportationManager * GetTransportationManager()
std::vector< G4GDMLAuxStructType > G4GDMLAuxListType
void Read(const G4String &filename, G4bool Validate=true)
Definition of the G01PrimaryGeneratorAction class.
virtual void Initialize()
G4int ApplyCommand(const char *aCommand)
virtual void SetUserAction(G4UserRunAction *userAction)