60 int main(
int argc,
char **argv)
63 G4cout <<
"Usage: load_gdml <intput_gdml_file:mandatory>"
64 <<
" <output_gdml_file:optional>" <<
G4endl;
69 G4cout <<
"Error! Mandatory input file is not specified!" <<
G4endl;
100 GetNavigatorForTracking()->GetWorldVolume()->GetLogicalVolume());
110 std::vector<G4LogicalVolume*>::const_iterator lvciter;
111 for( lvciter = lvs->begin(); lvciter != lvs->end(); lvciter++ )
114 std::vector<G4GDMLAuxPairType>::const_iterator ipair = auxInfo.begin();
115 for( ipair = auxInfo.begin(); ipair != auxInfo.end(); ipair++ )
119 G4cout <<
" Auxiliary Information is found for Logical Volume : "
120 << (*lvciter)->GetName() <<
G4endl;
121 G4cout <<
" Name of Auxiliary type is : " << str <<
G4endl;
122 G4cout <<
" Associated Auxiliary value is : " << val <<
G4endl;
132 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)
G4GDMLAuxListType GetVolumeAuxiliaryInformation(G4LogicalVolume *logvol) const
Definition of the G01DetectorConstruction class.
G4VPhysicalVolume * GetWorldVolume(const G4String &setupName="Default") const
Detector construction allowing to use the geometry read from the GDML file.
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)
static G4TransportationManager * GetTransportationManager()
std::vector< G4GDMLAuxPairType > G4GDMLAuxListType
Definition of the G01PhysicsList class.
void Read(const G4String &filename, G4bool Validate=true)
Definition of the G01PrimaryGeneratorAction class.
virtual void Initialize()
Minimal physics list just to demonstrate the use of GDML geometries.
G4int ApplyCommand(const char *aCommand)
virtual void SetUserAction(G4UserRunAction *userAction)