Belle II Software  release-06-02-00
DQMHistAnalysisPlotOnly.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 : DQMHistAnalysisPlotOnly.h
10 // Description : Module for DQM Histogram analysis
11 //-
12 
13 #pragma once
14 
15 #include <dqm/analysis/modules/DQMHistAnalysis.h>
16 
17 #include <string>
18 #include <TCanvas.h>
19 
20 namespace Belle2 {
30 
31  // Public functions
32  public:
33 
38 
43 
47  virtual void initialize() override;
48 
52  virtual void beginRun() override;
53 
57  virtual void event() override;
58 
62  virtual void endRun() override;
63 
67  virtual void terminate() override;
68 
69  // Data members
70  private:
71 
73  std::vector< std::vector<std::string>> m_histlist;
74 
80  TH1* GetHisto(TString a);
81 
83  std::map< std::string, TCanvas*> m_canvasList;
84 
85  };
87 } // end namespace Belle2
88 
The base class for the histogram analysis module.
The module to plot a list of histograms into canvases.
std::map< std::string, TCanvas * > m_canvasList
Parameter list for histograms.
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.
virtual void beginRun() override
Called when entering a new run.
std::vector< std::vector< std::string > > m_histlist
Parameter list for histograms.
TH1 * GetHisto(TString a)
Get histogram by its name.
Abstract base class for different kinds of events.