GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » EMC » Bug?
Bug? [message #14770] Thu, 23 May 2013 12:47 Go to next message
Jifeng Hu is currently offline  Jifeng Hu
Messages: 31
Registered: October 2012
continuous participant
From: *physik.uni-giessen.de
Emc simulation codes section as follows:

TString parFile = "simparams_10.root";
TString digiFile = "emc.par";

later open and read:

FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
FairParAsciiFileIo* parIo1 = new FairParAsciiFileIo();
parIo1->open(emcDigiFile.Data(),"in");
FairParRootFileIo* parInput1 = new FairParRootFileIo();
parInput1->open(parFile.Data());

//pay attention here, if we do like this:
rtdb->setFirstInput(parIo1);
rtdb->setSecondInput(parInput1);

//or swap the input order
rtdb->setFirstInput(parInput1);
rtdb->setSecondInput(parIo1);

we do have different results, anyone meets such things?
Re: Bug? [message #14787 is a reply to message #14770] Fri, 24 May 2013 06:07 Go to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *dip0.t-ipconnect.de
Hi,

This is work as designed! it seems that you have the same parameters names with different values in the ROOT and ASCII parameter files. The framework is design to read the parameter values once (First input) if it found them again in the second input it will simply ignore them. So if you need to overwrite some parameters from the database or root files you define them in an ASCII file and set the file as first input, only these parameters will be changed and the rest stay the same.

regards,

Mohammad
Previous Topic: updates on the forward end-cap geometry and simulations
Next Topic: small update!
Goto Forum:
  


Current Time: Thu Mar 28 15:19:35 CET 2024

Total time taken to generate the page: 0.00558 seconds