GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] problem with GEANT4 materials
Re: GEANT4 materials [message #10297 is a reply to message #10296] Wed, 24 February 2010 16:37 Go to previous messageGo to previous message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *
Dear Dimitry,
you should first,
modify your data in media_pnd.geo
copper 1 63.54 29. 8.96
1 1 20. .001
and second, if you are defining the geometry using
root classes, in your detector class(PndEmc.cxx )
at ConstructGeometry()

FairGeoLoader*geoLoad = FairGeoLoader::Instance();
FairGeoInterface *geoFace = geoLoad->getGeoInterface();
FairGeoMedia *Media = geoFace->getMedia();
FairGeoBuilder *geobuild=geoLoad->getGeoBuilder();

you should add the following lines

FairGeoMedium *Cu = Media->getMedium("copper");
Int_t nmedCu=geobuild->createMedium(Cu);

i hope it works,
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Field maps in Macros
Next Topic: [FIXED]Crash in QA macros 6/3/2020 ?
Goto Forum:

Current Time: Fri Dec 01 04:07:45 CET 2023

Total time taken to generate the page: 0.00927 seconds