Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  22 May 2007, Randolf Pohl, Bug Report, analyzer_init called by odb_load 
    Reply  22 May 2007, Stefan Ritt, Bug Report, analyzer_init called by odb_load 
       Reply  22 May 2007, Randolf Pohl, Bug Report, analyzer_init called by odb_load 
          Reply  22 May 2007, Stefan Ritt, Bug Report, analyzer_init called by odb_load 
Message ID: 380     Entry time: 22 May 2007     In reply to: 379
Author: Stefan Ritt 
Topic: Bug Report 
Subject: analyzer_init called by odb_load 
> Thanks for the quick reply, Stefan.
> 
> Please don't change anything in the code unless you find it really important.
I guess 
> changing the analyzer_init prototype will break a lot of code out there?
> 
> In fact, I think I do understand this behavior now.
> And even without your suggested fix there is a simple workaround: I add a static 
> variable to my analyzer_init.cxx file, and do something similar to your bFirst
fix.
> 
> In conclusion, commit your fix if it does not harm others. Postpone this
commit to a 
> future new version of midas which breaks a lot of things anyway...
> 
> A last question, for me to understand: Why not call db_open_record in 
> ana_begin_of_run then?

I fully agree with you that db_open_record would better go into ana_begin_of_run
(and
analyzer_init not being called in odb_load), and I fully agree with you that
changing the
code would break many experiments. ;-)

So I guess we leave it as it is right now as you suggested.
ELOG V3.1.4-2e1708b5