GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » STT lookup table.
STT lookup table. [message #8355] Thu, 30 April 2009 13:40 Go to next message
Lia Lavezzi
Messages: 291
Registered: May 2007
Location: Torino
first-grade participant

From: *pv.infn.it
Hi all,
I am writing the lookup table to be able to retrieve at the digi/reco step the geometry information of the straw tubes without the need of saving them as variables of the PndSttPoint.

I wanted to retrieve them from the parameters root file, but since I have to access the geo information for each point this seems to slow down both the digitization and (more) the reconstruction.
I was wondering (maybe this is a strange question Rolling Eyes ): is this an expected behaviour? I mean, is accessing the geo information from the parameter file a good idea or should I think of something else? Can it be that the switching between the simulation and parameter file slows down things?

If this is the reason, my second hypothesis would be to create an object PndSttTube and fill it with the geometry information, then save an array of all the tubes in the simulation output file (only once, not for each event). Could this speed up things?

I am just making some guess because I am fighting with this map and I can' t find a way out! Sad

Any comment/suggestion is welcome!!!

Thank you very much,
Lia.
Re: STT lookup table. [message #8358 is a reply to message #8355] Thu, 30 April 2009 13:58 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Hi,
I think you could create, at the task initialization, an object which stores the lookup table according to the parameter file, and then just using it at each point.
In this way you access only one time to the parameter file (and I think the I/O is the slowest part of the mechanism), and you can use the numbers inside the object as many times you want and fast enough, considering that all the numbers are already stored in the memory and there is no I/O anymore (of course it depends also on the size of the lookup table).

Or maybe I am missing some points and I have not understood the question Smile
Re: STT lookup table. [message #8363 is a reply to message #8358] Thu, 30 April 2009 16:03 Go to previous message
Lia Lavezzi
Messages: 291
Registered: May 2007
Location: Torino
first-grade participant

From: *47-151.net24.it
Quote:

I think you could create, at the task initialization, an object which stores the lookup table according to the parameter file, and then just using it at each point.


Hi Stefano,
do you mean to create at the initialization of the task the whole array of PndSttTubes containing all the information in it? Maybe this could be a good solution! I will try it soon! Thank you! Smile

Ciao,
Lia.
Previous Topic: Detector geoemtries in own folder
Next Topic: New safety feature
Goto Forum:
  


Current Time: Wed Dec 04 21:48:38 CET 2024

Total time taken to generate the page: 0.01085 seconds