Commit 30dcdeb8 authored by Sebbe Blokhuizen's avatar Sebbe Blokhuizen
Browse files

Exported GDML files stored reference addresses in name. When importing GDML...

Exported GDML files stored reference addresses in name. When importing GDML back into allpix, the error Referenced volume 'world_log' was not found! Solved by removing the addresses from the names
parent c8c80899
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -50,9 +50,8 @@ void GDMLOutputWriterModule::initialize() {

    G4GDMLParser parser;
    parser.SetRegionExport(true);
    parser.Write(GDML_output_file,
                 G4TransportationManager::GetTransportationManager()
                     ->GetNavigatorForTracking()
                     ->GetWorldVolume()
                     ->GetLogicalVolume());
    parser.Write(
        GDML_output_file,
        G4TransportationManager::GetTransportationManager()->GetNavigatorForTracking()->GetWorldVolume()->GetLogicalVolume(),
        false);
}