57 for(std::vector<G4GDMLAuxStructType>::const_iterator
58 iaux = auxInfoList->begin(); iaux != auxInfoList->end(); iaux++ )
64 G4cout << prepend << str <<
" : " << val <<
" " << unit <<
G4endl;
66 if (iaux->auxList)
print_aux(iaux->auxList, prepend +
"|");
73 int main(
int argc,
char **argv)
76 G4cout <<
"Usage: load_gdml <intput_gdml_file:mandatory>"
77 <<
" <output_gdml_file:optional>" <<
G4endl;
82 G4cout <<
"Error! Mandatory input file is not specified!" <<
G4endl;
125 std::vector<G4LogicalVolume*>::const_iterator lvciter;
126 for( lvciter = lvs->begin(); lvciter != lvs->end(); lvciter++ )
130 if (auxInfo.size()>0)
131 G4cout <<
"Auxiliary Information is found for Logical Volume : "
132 << (*lvciter)->GetName() <<
G4endl;
139 G4cout <<
"Global auxiliary info:" << std::endl;
175 ->GetNavigatorForTracking()->GetWorldVolume()->GetLogicalVolume());
181 G4String command =
"/control/execute ";
G4VPhysicalVolume * GetWorldVolume(const G4String &setupName="Default") const
G4int ApplyCommand(const char *aCommand)
virtual void SetUserAction(G4UserRunAction *userAction)
void Read(const G4String &filename, G4bool Validate=true)
static G4UImanager * GetUIpointer()
Detector construction allowing to use the geometry read from the GDML file.
const G4GDMLAuxListType * GetAuxList() const
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void SetRegionExport(G4bool)
G4GDMLAuxListType GetVolumeAuxiliaryInformation(G4LogicalVolume *lvol) const
CommandLineParser * parser(0)
void print_aux(const G4GDMLAuxListType *auxInfoList, G4String prepend="|")
int main(int argc, char **argv)
static G4TransportationManager * GetTransportationManager()
std::vector< G4GDMLAuxStructType > G4GDMLAuxListType
Definition of the G01DetectorConstruction class.
G4GLOB_DLL std::ostream G4cout
void Write(const G4String &filename, const G4VPhysicalVolume *pvol=0, G4bool storeReferences=true, const G4String &SchemaLocation=G4GDML_DEFAULT_SCHEMALOCATION)
Definition of the G01PrimaryGeneratorAction class.
Minimal primary generator action to demonstrate the use of GDML geometries.
virtual void Initialize()
static G4LogicalVolumeStore * GetInstance()