Belle II Software  release-06-00-14
DQMHistAnalysisOutputMonObj.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <dqm/analysis/modules/DQMHistAnalysis.h>
12 #include <dqm/dataobjects/DQMFileMetaData.h>
13 #include <string>
14 #include <TBranch.h>
15 
16 namespace Belle2 {
24 
25  // Public functions
26  public:
27 
31 
33  virtual void initialize() override;
34 
36  virtual void beginRun() override;
37  virtual void event() override;
38  virtual void endRun() override;
39  virtual void terminate() override;
40 
42  void addTreeEntry();
43 
45  // missing (previous) entries in the TTree (with the value from the first run)
46  void fillBranch(TBranch* br);
47 
48  // Data members
49  private:
50 
51  std::string m_filename;
52  std::string m_procID;
53  std::string m_treeFile;
54  int m_run = 0;
55  int m_exp = 0;
56  int m_nevt = 0;
57  std::string m_runtype;
61  };
63 } // end namespace Belle2
64 
Metadata information about a DQM file.
The base class for the histogram analysis module.
Class definition for the module to store MonitoringObject to output root file.
virtual void initialize() override
Module functions to be called from main process.
virtual void event() override
This method is the core of the module.
virtual void endRun() override
This method is called if the current run ends.
virtual void terminate() override
This method is called at the end of the event processing.
std::string m_procID
processing id (online,proc10,etc)
virtual void beginRun() override
Module functions to be called from event process.
void fillBranch(TBranch *br)
if new variables is added to run summary TTree this files
void addTreeEntry()
Makes entry with monitoring variables in the run summary TTree.
DQMFileMetaData * m_metaData
output file meta data
std::string m_treeFile
if set, entry with monitoring variables is made in the run summary TTree
Abstract base class for different kinds of events.