Belle II Software development
DQMHistComparitor.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 : DQMHistComparitor.h
10// Description : Compare a list of histograms with its reference
11//-
12
13#pragma once
14
15#include <dqm/core/DQMHistAnalysis.h>
16
17namespace Belle2 {
25
29 typedef struct {
31 std::string pvfit;
33 std::string pvstatus;
39 std::string histName;
41 std::string refName;
43 TCanvas* canvas;
45 int algo;
47 float warning;
49 float error;
52 } CMPNODE;
53
54 // Public functions
55 public:
56
61
62 private:
67
71 void initialize() override final;
72
76 void beginRun() override final;
77
81 void event() override final;
82
86 void endRun() override final;
87
91 void terminate() override final;
92
93 // Data members
95 std::vector< std::vector<std::string>> m_histlist;
97 std::vector<CMPNODE*> m_pnode;
98
99 };
101} // end namespace Belle2
102
The base class for the histogram analysis module.
Class definition for the reference histogram display.
void initialize() override final
Initializer.
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::vector< std::vector< std::string > > m_histlist
Parameter list for histograms.
void beginRun() override final
Called when entering a new run.
std::vector< CMPNODE * > m_pnode
Struct for extracted parameters + EPICS PV.
Abstract base class for different kinds of events.
STL namespace.
The struct for reference histogram comparison.
TCanvas * canvas
The canvas to display both original and reference histograms.
std::string pvfit
The name of the fit result PV, empty if none.
std::string refName
The name of the reference histogram.
int algo
The algo to use: 0=Chi2Test (default), 1=KolmogorovTest (2.
float error
The error level for the histogram difference.
std::string histName
The name of the histogram to be compared.
std::string pvstatus
The name of the status PV, empty if none.
int min_entries
The minimum entries for histogram comparison.
float warning
The warning level for the histogram difference.