GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » shape of a volume
Re: shape of a volume - always TGeoBBox ? [message #11311 is a reply to message #11309] Mon, 13 December 2010 17:09 Go to previous messageGo to previous message
Olaf Hartmann is currently offline  Olaf Hartmann
Messages: 105
Registered: December 2003
Location: Wien-Alsergrund
continuous participant
From: *smi.oeaw.ac.at
Ciao Lia,

Lia Lavezzi wrote on Mon, 13 December 2010 16:53

Hi Olaf,
in stt/PndSttMapCreator.cxx I retrieve the geometry of the TGeoTube, but the very starting point is the list of FairGeoNodes from the PndGeoSttPar...
The code does:
FairGeoNode *pnode = (FairGeoNode*) geoPassNodes->FindObject(tubename);
...
TGeoVolume* rootvol = pnode->getRootVolume();
TGeoTube *tube = (TGeoTube*) rootvol->GetShape();

...I don' t know if this may be helpful...
Lia.


As I read, this is specific for STT (I need something general) ... and in your example it seems that you already know that you're looking for a tube. So I wonder if

TGeoVolume* rootvol = pnode->getRootVolume();
TGeoShape* volshape = rootvol->GetShape();

would work in your case, giving TGeoTube as shape name?

Thanks
Olaf.
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Implementation of PndGemMCPoint::SetSensorId(int) is missing
Next Topic: macro/param/*.root for Fwd EMC
Goto Forum:
  


Current Time: Mon Nov 25 14:12:44 CET 2024

Total time taken to generate the page: 0.00680 seconds