GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » R3BRoot » Data Analysis » reading container parameter (reading container parameter)
reading container parameter [message #22025] Mon, 08 January 2018 15:22 Go to next message
EliGaliana is currently offline  EliGaliana
Messages: 4
Registered: December 2017
Location: USC
occasional visitor
From: *usc.es
Hi,
I have created a parameter container, named califaCrystalCalPar, to be used in the Califa calibration procedures. It is filled in the task R3BCalifaMapped2CrystalCalPar, and the container looks fine (I can see the numbers), either saving it in ascii or in root file. However, when I try to read it and use it in the calibration task R3BCalifaMapped2CrystalCal, I only get zeros. I am not able to read the values properly, and I can't find why. The classes are in https://github.com/EliGaliana/R3BRoot/tree/Calibration_CALIFA/califa/unp ack and the intializing macro is attached.
Can anyone help me?
Many thanks in advance.
Re: reading container parameter [message #22035 is a reply to message #22025] Wed, 10 January 2018 17:17 Go to previous messageGo to next message
Dmytro Kresan is currently offline  Dmytro Kresan
Messages: 166
Registered: June 2004
first-grade participant
From: *web.vodafone.de
Hi,

the first thing we need to try is to call run->Init(); after the FairRuntimeDb block, meaning just before the Run().

If it will not help, please post the screen output of your both runs (just the init part, not the event loop).

Cheers,
Dima
Re: reading container parameter [message #22037 is a reply to message #22035] Wed, 10 January 2018 18:40 Go to previous message
EliGaliana is currently offline  EliGaliana
Messages: 4
Registered: December 2017
Location: USC
occasional visitor
From: *usc.es
Hi,

Thank you very much. I have changed run->Init() before run->Run(nev,0) and now I could read the parameters of the container.

Cheers,
Eli
Previous Topic: error undefined symbol TSpectrum
Next Topic: How to create more than one output event in FairTask Exec()-function?
Goto Forum:
  


Current Time: Fri Apr 12 14:28:10 CEST 2024

Total time taken to generate the page: 0.00869 seconds