GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » How to get a volume path by id's
How to get a volume path by id's [message #5913] Tue, 19 February 2008 16:03 Go to previous message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: 141.30.85*
Hello everybody,

I would like to get the complete path of a volume by its ID.
I have a simulation file containing the CBMGeom and a branch with CbmMCPoints. There is a reference to the detectors via the GetDetectorID() method.
I could get a volume by TGeoVolume* vol = geoMan->GetVolume(detid); but when calling for the vol->GetName(); I just get one name and not the complete Path:
Quote:

"NewLayer3oHalfBarrel"

instead of

/cave_1/MVDoOption1_0/NewLayer3oHalfBarrel_1/NewLayer3Stave_2/Moduleo4FE _1/FullSensoro4FE_1/SensorActiveAreao[NrFE=4]oPartAss_1/SensorActiveArea o[NrFE=4]_1

Now I'm somehow lost inbetween the geometry classes.

In fact for the MVD there is an additional string stored in the PndMvdMCPoint. Is this because cbmsoft does not store the full path via the volume ID?

Kind regards, Ralf.
 
Read Message
Read Message
Read Message
Previous Topic: Requirements for an analysis toolset
Next Topic: DPG Group Talk
Goto Forum:
  


Current Time: Sat Apr 20 15:38:53 CEST 2024

Total time taken to generate the page: 0.00624 seconds