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 #11308 is a reply to message #11303] Mon, 13 December 2010 16:39 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
Dear all,

I just realized that asking the GeoManager about the shape of a volume he always answers TGeoBBox, which is a bounding box of each of the volumes, even if they're originally of type e.g. TGeoTube.

Quote:

root [2] gGeoManager->GetVolume(1211)->GetShape()->InspectShape()
*** Shape stt01wire1880: TGeoTube ***
Rmin = 0.00000
Rmax = 0.00100
dz = 31.80215
Bounding box:
*** Shape stt01wire1880: TGeoBBox ***
dX = 0.00100
dY = 0.00100
dZ = 31.80215
origin: x= 0.00000 y= 0.00000 z= 0.00000



As I wrote in the earlier mail, I tried to access the dimensions of the physical volumes:

   TGeoVolume* actVolume = gGeoManager->GetVolume(fVolumeID);
TGeoShape* actShape = actVolume->GetShape();
const char* fShapeName = actShape->GetName();


fShapeName is always TGeoBBox. How can I arrive to the underlying shape (e.g. TGeoTube) ?

Cheers
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: Fri Nov 22 10:29:54 CET 2024

Total time taken to generate the page: 0.00669 seconds