Message: Re: Import Logical Volume from GDML File fails for many Files Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Import Logical Volume from GDML File fails for many Files 

Forum: Geometry
Re: Question Import Logical Volume from GDML File fails for many Files (JanW)
Date: 16 Aug, 2016
From: JanW <JanW>

The function I wrote is of course nonsense and can not work, what I meant was:
    G4LogicalVolume* DetectorConstruction::GetGDMLFileAsLV(G4String fileName, G4Material* material) {

        G4GDMLParser parser;
        parser.Read(fileName);

        G4LogicalVolume* LogVol = parser.GetWorldVolume()->GetLogicalVolume();
        LogVol->SetMaterial(material);

        return LogVol;
    }

 Add Message Add Message
to: "Re: Import Logical Volume from GDML File fails for many Files"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]