Belle II Software development
DQMHistAnalysisInputTest.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 <framework/dataobjects/EventMetaData.h>
12#include <framework/datastore/StoreObjPtr.h>
13
14#include <dqm/core/DQMHistAnalysis.h>
15
16#include <string>
17#include <TH1.h>
18#include <TF1.h>
19
20namespace Belle2 {
31
32 public:
33
38
42 void initialize() override final;
43
47 void beginRun() override final;
48
52 void event() override final;
53
57 void endRun() override final;
58
62 void terminate() override final;
63
67 void PlotDelta(void);
68
69 private:
70
73
75 std::vector<std::string> m_configs{};
76
78 unsigned int m_expno;
79
81 unsigned int m_runno;
82
84 std::string m_runtype;
85
87 unsigned int m_events;
88
90 unsigned int m_count{};
91
93 unsigned int m_nonfillmod{0};
94
96 std::vector <TH1*> m_testHisto{};
97
99 std::vector <TF1*> m_func{};
100
102 std::vector <std::vector <double>> m_fpar{};
103
105 std::vector <unsigned int> m_fill{};
106
108 std::vector <unsigned int> m_underflow{};
109
111 std::vector <std::string> m_myNames{};
112
113 };
115} // end namespace Belle2
116
Class to dynamically fill histograms from a config file for offline testing of analysis modules.
void PlotDelta(void)
Plot/print function for debugging.
unsigned int m_nonfillmod
Fill skip modulo.
void initialize() override final
Initialize the module.
std::vector< std::string > m_configs
List of config files.
std::vector< unsigned int > m_fill
according list of fills per "event"
unsigned int m_events
total number of events for run.
void terminate() override final
Termination action.
std::vector< TF1 * > m_func
according list of function for filling histo
void event() override final
Event processor.
std::vector< std::string > m_myNames
keeping a list of histo Names
std::vector< TH1 * > m_testHisto
list of test histogram
std::vector< std::vector< double > > m_fpar
according parameter list for function definition
void endRun() override final
End-of-run action.
std::vector< unsigned int > m_underflow
according list of underflow fills per "event"
void beginRun() override final
Called when entering a new run.
StoreObjPtr< EventMetaData > m_eventMetaDataPtr
Global EventMetaData for run number and event number.
The base class for the histogram analysis module.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.