Belle II Software development
DQMHistAnalysisOutputFile.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// File : DQMHistAnalysisOut.h
10// Description : DQM Analysis, dump histograms to file (as reference histograms)
11//-
12
13#pragma once
14
15#include <dqm/core/DQMHistAnalysis.h>
16#include <framework/dataobjects/EventMetaData.h>
17#include <framework/datastore/StoreObjPtr.h>
18
19
20#include <string>
21
22namespace Belle2 {
30
31 // Public functions
32 public:
33
38
43
47 void initialize() override final;
48
52 void event() override final;
53
57 void endRun() override final;
58
62 void terminate() override final;
63
67 void save_to_file();
68
69 // Data members
70 private:
71
72 std::string m_folder;
73 std::string m_prefix;
74 std::string m_filename;
83 };
85} // end namespace Belle2
86
The base class for the histogram analysis module.
Class definition for the output module of Sequential ROOT I/O.
bool m_saveCanvases
Write all Canvases to file.
void initialize() override final
Initializer.
bool m_savePerEvent
Whether save to file per event.
std::string m_prefix
prefix for the output file name
std::string m_folder
output folder to save 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.
void endRun() override final
This method is called if the current run ends.
std::string m_filename
file name of root file
StoreObjPtr< EventMetaData > m_eventMetaDataPtr
event metadata object
void save_to_file()
Opens the root file and saves the content.
bool m_savePerRun
Whether save to file per run.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.