|
|
|
|
|
Re: shape of a volume - always TGeoBBox ? [message #11312 is a reply to message #11311] |
Mon, 13 December 2010 17:34 |
Lia Lavezzi
Messages: 291 Registered: May 2007 Location: Torino
|
first-grade participant |
From: *pv.infn.it
|
|
Quote: | As I read, this is specific for STT (I need something general)
|
Yes, this was written for the tubes, but also the other detectors fill the passive/active node list... maybe it could be generalized.
Quote: | ... 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?
|
No, I just tried and it gives me "stt01tube", but InspectShape works and recognizes it as a TGeoTube.
Ciao,
Lia.
|
|
|