GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » How to get the list of Volumes?
How to get the list of Volumes? [message #11230] Wed, 24 November 2010 09:40 Go to next 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'm searching for a possibility to print the list of volumes in a simulation run, something like the "dtree" command in Geant3. So far I found the number of volumes and the number of daughter volumes, but hopefully there's an easier way.

Any hint?

Cheers
Olaf.
Re: How to get the list of Volumes? [message #11237 is a reply to message #11230] Fri, 26 November 2010 13:30 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hallo Olaf,

Once you have the geometry in memory, you can call:

gGeoManager->GetListOfVolumes()

This will return a TObjArray of all volumes in the geometry.

regards

Mohammad
loading complete geometry [message #11262 is a reply to message #11230] Fri, 03 December 2010 14:29 Go to previous messageGo to next message
Olaf Hartmann is currently offline  Olaf Hartmann
Messages: 105
Registered: December 2003
Location: Wien-Alsergrund
continuous participant
From: *smi.oeaw.ac.at
Dear PANDARooters,

do we have an up-to-date macro (in svn) to load the PANDA geometry as complete as possible, i.e. all available detector and detector support materials?

Cheers
Olaf.

Re: loading complete geometry [message #11266 is a reply to message #11262] Fri, 03 December 2010 21:21 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *4-87-r.retail.telecomitalia.it
Hi,
I think the most updated are the macros in macro/pid -> run_sim_tpccombi_XXX.C and run_sim_sttcombi_XX.C
icon5.gif  Re: How to get the parameters of Volumes? [message #11300 is a reply to message #11237] Mon, 13 December 2010 09:58 Go to previous messageGo to next message
Olaf Hartmann is currently offline  Olaf Hartmann
Messages: 105
Registered: December 2003
Location: Wien-Alsergrund
continuous participant
From: *smi.oeaw.ac.at
Hi,

another question concerning the volumes: how to get back the geometry parameters of the volumes in the code?
Interactively I can do something like

gGeoManager->GetVolume("FscAbsorber")->GetShape()->InspectShape()


but I found so far no way how to access the printout from this statement inside the code.

Cheers
Olaf.

Re: How to get the parameters of Volumes? [message #11301 is a reply to message #11300] Mon, 13 December 2010 10:27 Go to previous messageGo to next message
Tobias Stockmanns is currently offline  Tobias Stockmanns
Messages: 489
Registered: May 2007
first-grade participant
From: *ikp.kfa-juelich.de
Hi Olaf,

have a look into PndTools/PndGeoHandling.cxx.

I guess the method GetSensorDimensionsPath is doing what you want.

Cheers,

Tobias
Re: How to get the parameters of Volumes? [message #11302 is a reply to message #11301] Mon, 13 December 2010 10:42 Go to previous messageGo to next message
Olaf Hartmann is currently offline  Olaf Hartmann
Messages: 105
Registered: December 2003
Location: Wien-Alsergrund
continuous participant
From: *smi.oeaw.ac.at
Hi Tobias,

thanks, this method can be easily adapted for other shapes than boxes.

Tobias Stockmanns wrote on Mon, 13 December 2010 10:27


have a look into PndTools/PndGeoHandling.cxx.

I guess the method GetSensorDimensionsPath is doing what you want.



Cheers
Olaf.
Re: How to get the parameters of Volumes? [message #11307 is a reply to message #11302] Mon, 13 December 2010 16:01 Go to previous message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *pool.mediaWays.net
Olaf Hartmann wrote on Mon, 13 December 2010 10:42

Hi Tobias,

thanks, this method can be easily adapted for other shapes than boxes.

Cheers
Olaf.



Hi Olaf.

Just when you're at it, add your extension into the PndGeoHandling.

Regards.

Ralf
Previous Topic: TRAC ticketing system
Next Topic: PndEventReader
Goto Forum:
  


Current Time: Fri Nov 29 08:05:33 CET 2024

Total time taken to generate the page: 0.00892 seconds