Belle II Software development
DQMHistAutoCanvas.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 : DQMHistAutoCanvas.h
10// Description : This module auto-plots each histogram in its canvas
11//-
12
13#pragma once
14
15#include <dqm/core/DQMHistAnalysis.h>
16#include <set>
17
18namespace Belle2 {
26
27 // Public functions
28 public:
29
34
38 void beginRun() override final;
39
43 void event() override final;
44
48 void terminate() override final;
49
50 // Data members
51 private:
53 std::vector<std::string> m_inclfolders;
55 std::vector<std::string> m_exclfolders;
57 std::string m_listfile;
58
60 std::set<std::string> m_canvaslist;
61
63 std::map<std::string, std::unique_ptr<TCanvas>> m_cs;
64 };
66} // end namespace Belle2
67
The base class for the histogram analysis module.
Class definition for the reference histogram display.
std::vector< std::string > m_inclfolders
The list of folders for which automatically generate canvases.
std::map< std::string, std::unique_ptr< TCanvas > > m_cs
The map of histogram names to canvas pointers for buffering.
void terminate() override final
This method is called at terminate.
void event() override final
This method is called for each event.
std::set< std::string > m_canvaslist
list of wanted canvas name if included as list file
void beginRun() override final
This method is called for each run.
std::vector< std::string > m_exclfolders
The list of folders which are excluded from automatically generate canvases.
std::string m_listfile
The filename of a list canvas names to auto generate.
Abstract base class for different kinds of events.