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 #11312 is a reply to message #11311] Mon, 13 December 2010 17:34 Go to previous message
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.
 
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: Sat Apr 20 16:12:15 CEST 2024

Total time taken to generate the page: 0.01059 seconds