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 ";
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
int main(int argc, char **argv)
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)