Reading Parameters using ROOT/ASCII files

In the run macro, when initializing one has to add:

FairRuntimeDb* rtdb=fRun->GetRuntimeDb();
FairParRootFileIo* input=new FairParRootFileIo();

create ASCII IO and open it:

FairParAsciiFileIo* inputAscii = new FairParAsciiFileIo();
inputAscii->open("sts_digi.par");

create ROOT IO and open it:

FairParRootFileIo* inputRoot=new FairParRootFileIo();
inputRoot->open("testparams.root");

set the different input to the runtime database

rtdb->setFirstInput(inputAscii);
rtdb->setSecondInput(inputRoot);

setting the parameters in this order means, if a parameter was found in the first input (in this case ASCII) then it will be initialized from there, and even if it exist in the second input it will not be read again.