GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » FairRuntimeDb only two inputs
FairRuntimeDb only two inputs [message #8328] Wed, 29 April 2009 09:21 Go to next message
Tobias Stockmanns is currently offline  Tobias Stockmanns
Messages: 489
Registered: May 2007
first-grade participant
From: *ikp.kfa-juelich.de
Dear pandaRooters,

I have the following problem:

I want to digitize the simulated data of the MVD and the TPC in the same macro.
Both require a parameter input file.

Unfortunately I cannot set three parameter input files in the RuntimeDB. The first slot is occupied by the parameter file of the simulation.

Is there a way to add more than two parameter inputs or is this functionality missing in the runtimeDB and should be added?

Cheers,

Tobias
Re: FairRuntimeDb only two inputs [message #8329 is a reply to message #8328] Wed, 29 April 2009 09:41 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Tobias

Do you use ascii parameter files?

Ciao

Florian
Re: FairRuntimeDb only two inputs [message #8330 is a reply to message #8329] Wed, 29 April 2009 09:45 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 Florian,

yes I use ASCII files.

I just have realized that there is an all.par ASCII data file which contains the parameters of all detectors. I do not know if this is useful because you have to modify this file if you want to have different configurations, but at least it works.

Maybe we still should discuss if an unlimited number of parameter input files is possible.

Ciao,

Tobias
Re: FairRuntimeDb only two inputs [message #8331 is a reply to message #8330] Wed, 29 April 2009 09:55 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Tobias

I implemented a new functionality for CBM, which concatenates the
ascii input files on the fly and uses then only one input for ascii. To do so i add a new overloaded function to the Ascii Io class. Now you can generate a TList with the names of all the parameter files and pass this list to the open function of the asciiIO. The asciiIO class produces a combined parameter file and open this new file.
See example below.

Here is the definition part, with in principle unlimited number of filenames

// Digitisation files
TList *parFileList = new TList();

TString paramDir = gSystem->Getenv("VMCWORKDIR");
paramDir += "/parameters/sts/";

TObjString stsDigiFile = paramDir + "sts_Standard_s3055AAFK5.SecD.digi.par";
parFileList->Add(&stsDigiFile);

TObjString trdDigiFile = "./trd.digi.par";
parFileList->Add(&trdDigiFile);


And here is the change when opening the file.

parIo2->open(parFileList,"in");


Hope this is what you're looking for.

Ciao

Florian
Re: FairRuntimeDb only two inputs [message #8333 is a reply to message #8331] Wed, 29 April 2009 10:01 Go to previous message
Tobias Stockmanns is currently offline  Tobias Stockmanns
Messages: 489
Registered: May 2007
first-grade participant
From: *ikp.kfa-juelich.de
Hi Florian,

this is exactly what I was looking for. Thank you.

Ciao,

Tobias
Previous Topic: Reco Hit for TpcCluster
Next Topic: Genfit problems with new code - STT (r5323)
Goto Forum:
  


Current Time: Sat Nov 30 18:32:22 CET 2024

Total time taken to generate the page: 0.00785 seconds