GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » FairRuntimeDb only two inputs
Re: FairRuntimeDb only two inputs [message #8331 is a reply to message #8330] Wed, 29 April 2009 09:55 Go to previous messageGo to previous 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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reco Hit for TpcCluster
Next Topic: Genfit problems with new code - STT (r5323)
Goto Forum:
  


Current Time: Fri Apr 26 03:18:51 CEST 2024

Total time taken to generate the page: 0.00648 seconds