Belle II Software development
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/core/DQMHistAnalysis.h>
12#include <dqm/dataobjects/DQMFileMetaData.h>
13#include <string>
14#include <TBranch.h>
15
16namespace Belle2 {
24
25 // Public functions
26 public:
27
32
37
41 void initialize() override final;
42
46 void beginRun() override final;
47
51 void event() override final;
52
56 void endRun() override final;
57
61 void terminate() override final;
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.
void terminate() override final
This method is called at the end of the event processing.
void event() override final
This method is called for each event.
std::string m_procID
processing id (online,proc10,etc)
void fillBranch(TBranch *br)
if new variables is added to run summary TTree this files
void endRun() override final
This method is called if the current run ends.
void beginRun() override final
Called when entering a new run.
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.