Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  30 Jan 2025, Pavel Murat, Forum, converting non-MIDAS slow control data into MIDAS history format ? 
    Reply  31 Jan 2025, Pavel Murat, Forum, converting non-MIDAS slow control data into MIDAS history format ? 
    Reply  01 Feb 2025, Pavel Murat, Bug Report, MIDAS history system not using the event timestamps ? test_frontend.pyval_nightly.csv
       Reply  01 Apr 2025, Pavel Murat, Bug Report, MIDAS history system not using the event timestamps ? 
          Reply  01 Apr 2025, Konstantin Olchanski, Bug Report, MIDAS history system not using the event timestamps ? 
             Reply  02 Apr 2025, Pavel Murat, Bug Report, MIDAS history system not using the event timestamps ? 
                Reply  02 Apr 2025, Konstantin Olchanski, Bug Report, MIDAS history system not using the event timestamps ? 
Message ID: 3012     Entry time: 01 Apr 2025     In reply to: 2936     Reply to this: 3020
Author: Pavel Murat 
Topic: Bug Report 
Subject: MIDAS history system not using the event timestamps ? 
Dear MIDAS experts, 

I confirm that when writing out history files corresponding to the slow control event data, 
MIDAS history system timestamps the data not with the event time coming from the event data, 
but with the current time determined by the program - 

https://bitbucket.org/tmidas/midas/src/293d27fad0c87c80c4ed7b94b5c40ba1e150bea4/progs/mlogger.cxx#lines-5321

where 'now' is defined as  

time_t now = time(NULL);

I'm looking for a way to timestamp the history data with the event time - that is important 
for HEP applications outside the DAQ domain. Yes, MIDAS infrastructure is very well suited for that, 
there could have a number of such applications, and experiments could significantly benefit from that.

So I'm wondering whether the implementation is a design choice made or it could be changed. 

The change itself and especially its validation may require a non-negligible amount of work - I'd be happy to contribute.

Any insight much appreciated. 

-- thanks, regards, Pasha
ELOG V3.1.4-2e1708b5