Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  30 May 2020, Gennaro Tortone, Bug Report, wrong run number 
    Reply  30 May 2020, Thomas Lindner, Bug Report, wrong run number 
       Reply  30 May 2020, Gennaro Tortone, Bug Report, wrong run number 
       Reply  03 Jun 2020, Konstantin Olchanski, Bug Report, wrong run number 
    Reply  03 Jun 2020, Konstantin Olchanski, Bug Report, wrong run number 
       Reply  03 Jun 2020, Gennaro Tortone, Bug Report, wrong run number 
          Reply  04 Jun 2020, Konstantin Olchanski, Bug Report, wrong run number 
Message ID: 1925     Entry time: 30 May 2020     In reply to: 1923     Reply to this: 1926   1928
Author: Thomas Lindner 
Topic: Bug Report 
Subject: wrong run number 
Hi,

I fixed this particular case, so that I now I get the run number correctly.

But Konstantin will need to explain how this class is supposed to be used more generally.  The example programs have a mix with sometimes needing leading slashes and other times not:

Thomass-MacBook-Pro-3:rootana lindner$ grep -s 'runinfo/Run' */*.c*
libAnalyzer/TRootanaEventLoop.cxx:   fODB->RI("runinfo/Run number", &fCurrentRunNumber);
manalyzer/manalyzer.cxx:   int run_number = midas->odbReadInt("/runinfo/Run number");
manalyzer/manalyzer_v0.cxx:   int run_number = midas->odbReadInt("/runinfo/Run number");
old_analyzer/analyzer.cxx:   gOdb->RI("runinfo/Run number", &gRunNumber);

Cheers,
Thomas

> 
> Hi,
> I build MIDAS and ROOTANA using same tag (midas-2020-03-a, rootana-2020-03-a):
> 
> if I build examples in ROOTANA I got wrong run number (always 0):
> 
> [root@lxgentor examples]# ./ana.exe -r9090
> 
> Using THttpServer in read/write mode
> TMidasOnline::connect: Connecting to experiment "exo" on host 
> "lxgentor.na.infn.it"
> MVOdb::SetMidasStatus: Error: MIDAS db_get_value() at ODB path "//runinfo/Run 
> number" returned status 312
> Opened output file with name : output00000000.root
> TDT724Waveform done init...... 
> Create Histos
> Create Histos
> TMidasOnline::eventRequest: Event request: buffer "SYSTEM" (2), event id 
> 0xffffffff, trigger mask 0xffffffff, sample 2, request id: 0
> 
> it seems that some function try to get "//runinfo/Run number" (double slash) 
> instead of "/runinfo/Run number"...
> 
> Thanks in advance,
> Gennaro
ELOG V3.1.4-2e1708b5