FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
read_parameters.C
Go to the documentation of this file.
1 {
3 
4  Bool_t kParameterMerged = kTRUE;
5  FairParRootFileIo* parOut = new FairParRootFileIo(kParameterMerged);
6  parOut->open("mq_ex_params.root");
7  rtdb->setFirstInput(parOut);
8  // rtdb->saveOutput();
9  // rtdb->print();
10 
11  FairMQExParamsParOne* par = static_cast<FairMQExParamsParOne*>(rtdb->getContainer("FairMQExParamsParOne"));
12 
13  for (Int_t i = 0; i < 100; i++) {
14  rtdb->initContainers(2000 + i);
15 
16  par->print();
17  }
18 }
Bool_t kParameterMerged
list of container factories
Definition: FairRuntimeDb.h:24
static FairRuntimeDb * instance(void)
FairParSet * getContainer(const Text_t *)
Bool_t initContainers(Int_t runId, Int_t refId=-1, const Text_t *fileName="")
FairParRootFileIo * parOut
FairMQExParamsParOne * par
Bool_t open(const Text_t *fname, Option_t *option="READ", const Text_t *ftitle="", Int_t compress=1)
Bool_t setFirstInput(FairParIo *)