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();

create ROOT IO and open it:

FairParRootFileIo* inputRoot=new FairParRootFileIo();

set the different input to the runtime database


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.