GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » FairBaseParSet not initialized
FairBaseParSet not initialized [message #15553] Mon, 07 October 2013 12:05 Go to next message
Daniel Wielanek is currently offline  Daniel Wielanek
Messages: 14
Registered: October 2012
Location: Warsaw
occasional visitor
From: *jinr.ru
Dear FairROOTers,
I have strange problem. I wrote my code for analysis that uses MpdROOT (task in FairRunAna).
I have to create my data in two steps:
running runMC.C macro - this generates for me FairMCTracks and MpdTpcHits,
running reco.C macro - this fits MpdTpcHits to tracks.
Later I would like to analyse them, but when i try to use my overwritten FairTask I get error:
*************************************************************
initialisation for run id 573299799
*************************************************************
[ERROR ] init() FairBaseParSet not initialized
Error in <FairRuntimeDb::initContainers()>: Error occured during initialization

I tried to use similar code on data created by runMC.C macro and it worked without any problems, so I think that something in reco.C macro or task in this class are missed. Probably FairBaseParSet - that is present int file created by runMC.C (together with all geo stuff).
Can I add this class on the fly? What part of code should I change to wrote FairBaseParSet from previous file?
Re: FairBaseParSet not initialized [message #15554 is a reply to message #15553] Mon, 07 October 2013 13:18 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

Can you attach your macros here? did you specify your parameter file in the reco.C macro?

Cheers,

Mohammad
Re: FairBaseParSet not initialized [message #15555 is a reply to message #15554] Mon, 07 October 2013 13:49 Go to previous messageGo to next message
Daniel Wielanek is currently offline  Daniel Wielanek
Messages: 14
Registered: October 2012
Location: Warsaw
occasional visitor
From: *jinr.ru
Thank you for quick response.
  • Attachment: runMC.C
    (Size: 8.37KB, Downloaded 528 times)
  • Attachment: reco.C
    (Size: 6.62KB, Downloaded 314 times)
Re: FairBaseParSet not initialized [message #15557 is a reply to message #15555] Mon, 07 October 2013 16:45 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

The macros looks ok, if I understand it well, you are saving the parameters to the same file where your data is in the simulation macro, so when you run your reco.C everything goes ok because the parameters are in the data file, now when you produce the new file (mpddst.root) the parameters are not inside it.

So in the next steps after reco.C you need to set the file "$VMCWORKDIR/macro/mpd/evetest.root" as parameter file.

Cheers,

Mohammad
Re: FairBaseParSet not initialized [message #15560 is a reply to message #15557] Tue, 08 October 2013 16:03 Go to previous message
Daniel Wielanek is currently offline  Daniel Wielanek
Messages: 14
Registered: October 2012
Location: Warsaw
occasional visitor
From: *jinr.ru
Thank you!
Now works like a charm Laughing
Previous Topic: FairRunAna::SetGeomFile seems not to work
Next Topic: FairModule::CheckIfSensitive
Goto Forum:
  


Current Time: Fri Mar 29 09:34:15 CET 2024

Total time taken to generate the page: 0.00860 seconds