GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » Geometry input in ROOT (TGeo) format
Re: Reading from TGeoManager does not work [message #13712 is a reply to message #13597] Thu, 05 July 2012 13:46 Go to previous messageGo to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hallo Volker,

Quote:

There are some straightforward bugs in FairModule::ConstructRootGeometry().

Line 257
n=v1->GetNode(0);

Since v1 is the volume to be copied (the node below the top node), this sets the node n to its first daughter, i.e. the second node level. Consequently, the wrong transformation matrix is applied when adding v1 to the cave.


if you look at this same method few lines below you see:

TGeoMatrix* M = n->GetMatrix();


and when v1 is added to the cave you see:

Cave->AddNode(v1,0, M);

So this is not really a problem and the right matrix is used.



    If a medium is assigned whose material name does not correspond to a medium in the TGeoManager (i.e., present in media.geo), the method FairModule::AssignMediumAtImport will create a new medium with the same (material) name but empty properties and assign this to the respective volume. This leads (in my case) to a crash in the transport. It is hard to notice that since there is only a FairLogger output on debug level.


This is corrected now, if the media is not found in Media file or TGeoManager, it is a FATAL and it exit.


Using the TGeoManager is not working for now and we are trying to solve this problem.

regards,

Mohammad





 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Questions on HIts in detector and MCPoint
Next Topic: step length for VMC
Goto Forum:
  


Current Time: Fri Mar 29 15:58:35 CET 2024

Total time taken to generate the page: 0.01031 seconds