Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  19 May 2025, Jonas A. Krieger, Suggestion, manalyzer root output file with custom filename including run number 
    Reply  12 Nov 2025, Jonas A. Krieger, Suggestion, manalyzer root output file with custom filename including run number 
       Reply  25 Nov 2025, Konstantin Olchanski, Suggestion, manalyzer root output file with custom filename including run number 
          Reply  08 Dec 2025, Konstantin Olchanski, Suggestion, manalyzer root output file with custom filename including run number 
Message ID: 3175     Entry time: 08 Dec 2025     In reply to: 3142
Author: Konstantin Olchanski 
Topic: Suggestion 
Subject: manalyzer root output file with custom filename including run number 
I updated the root helper constructor to give the user more control over ROOT output file names.

You can now change it to anything you want in the module run constructor, see manalyzer_example_esoteric.cxx

Is this good enough?

struct ExampleE1: public TARunObject
{
   ExampleE1(TARunInfo* runinfo)
      : TARunObject(runinfo)
   {
#ifdef HAVE_ROOT
      if (runinfo->fRoot)
         runinfo->fRoot->fOutputFileName = "my_custom_file_name.root";
#endif
   }
}

K.O.
ELOG V3.1.4-2e1708b5