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: *
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();
FairParRootFileIo* parInput1 = new FairParRootFileIo();

//pay attention here, if we do like this:

//or swap the input order

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: *

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.


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

Current Time: Wed Apr 24 01:35:13 CEST 2024

Total time taken to generate the page: 0.00673 seconds