Belle II Software development
DQMHistAnalysisTRG.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 : DQMHistAnalysisTRG.h
10// Description : DQM Analysis TRG
11//-
12
13#pragma once
14
15#include <dqm/core/DQMHistAnalysis.h>
16
17#include <TLine.h>
18
19namespace Belle2 {
27
28 // Public functions
29 public:
30
35
39 static double getThreshold(const TH1* hist, const double lower_bound, const double widthFraction = 0.01);
40
41 private:
42
47
51 void initialize(void) override final;
52
56 void beginRun(void) override final;
57
61 void endRun(void) override final;
62
66 void event(void) override final;
67
71 void terminate(void) override final;
72
76 void doHistAnalysis();
77
78 private:
79
80 // Data members
82 std::string m_pvPrefix;
83
85 TCanvas* m_canvas = nullptr;
86
87 };
89} // end namespace Belle2
90
The base class for the histogram analysis module.
DQM Trigger Histogram code and example.
void terminate(void) override final
This method is called at the end of the event processing.
static double getThreshold(const TH1 *hist, const double lower_bound, const double widthFraction=0.01)
A utility function to find the location of the tail of histograms.
void initialize(void) override final
Initializer.
void endRun(void) override final
Called when run ends.
std::string m_pvPrefix
prefix for EPICS PVs
void doHistAnalysis()
Do the actual processing.
void beginRun(void) override final
Called when entering a new run.
void event(void) override final
This method is called for each event.
Abstract base class for different kinds of events.