GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Meetings » pandaroot meeting, 10 May, 14:00
Re: some notes... [message #11786 is a reply to message #11784] Thu, 12 May 2011 13:39 Go to previous messageGo to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: 140.181.8*
Hi,

As I said in the meeting we had something, Florian has already done this and it is simply like this:

1. create a TList
2. Add a TObjString which present the file name of your ascii file
3. set the list as an input for the run time data base

i.e:
Quote:

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

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

TObjString stsDigiFile = paramDir + "/sts/sts_standard.digi.par";
parFileList->Add(&stsDigiFile);

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

FairRuntimeDb* rtdb = run->GetRuntimeDb();
FairParRootFileIo* parIo1 = new FairParRootFileIo();
FairParAsciiFileIo* parIo2 = new FairParAsciiFileIo();
parIo1->open(parFile.Data());
parIo2->open(parFileList,"in");
rtdb->setFirstInput(parIo1);
rtdb->setSecondInput(parIo2);
rtdb->setOutput(parIo1);

............



I think this should solve the whole problem, each detector has his own par file and we take it from there into the full simulation.


regards

Mohammad

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: pandaroot meeting, 26 April, 14:00
Next Topic: pandaroot meeting, 24 May, 14:00
Goto Forum:
  


Current Time: Sat Dec 07 09:51:37 CET 2024

Total time taken to generate the page: 0.00828 seconds