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 {
22
24
25 // Public functions
26 public:
27
32
36 void initialize() override final;
37
41 void beginRun() override final;
42
46 void event() override final;
47
51 void endRun() override final;
52
56 void terminate() override final;
57
59 void addTreeEntry();
60
62 // missing (previous) entries in the TTree (with the value from the first run)
63 void fillBranch(TBranch* br);
64
65 // Data members
66 private:
67
68 std::string m_filename;
69 std::string m_procID;
70 std::string m_treeFile;
71 int m_run = 0;
72 int m_exp = 0;
73 int m_nevt = 0;
74 std::string m_runtype;
75
76
78 };
79
80} // end namespace Belle2
81
Metadata information about a DQM file.
DQMHistAnalysisModule()
Constructor / Destructor.
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.