Belle II Software  release-06-02-00
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 
32 
37 
41  virtual void initialize() override;
42 
46  virtual void beginRun() override;
47 
51  virtual void event() override;
52 
56  virtual void endRun() override;
57 
61  virtual void terminate() override;
62 
64  void addTreeEntry();
65 
67  // missing (previous) entries in the TTree (with the value from the first run)
68  void fillBranch(TBranch* br);
69 
70  // Data members
71  private:
72 
73  std::string m_filename;
74  std::string m_procID;
75  std::string m_treeFile;
76  int m_run = 0;
77  int m_exp = 0;
78  int m_nevt = 0;
79  std::string m_runtype;
83  };
85 } // end namespace Belle2
86 
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
Initializer.
virtual void event() override
This method is called for each event.
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
Called when entering a new run.
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.