Belle II Software release-09-00-11
DQMHistAnalysisKLMMonObj.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/* DQM headers. */
12#include <dqm/core/DQMHistAnalysis.h>
13
14/* C++ headers. */
15#include <string>
16
17/* ROOT forward declaration. */
18class TH2;
19
20/* KLM headers */
21#include <klm/dataobjects/bklm/BKLMElementNumbers.h>
22#include <klm/bklm/geometry/GeometryPar.h>
23
24namespace Belle2 {
34
35 public:
36
41
44
48 void initialize() override final;
49
53 void beginRun() override final;
54
58 void event() override final;
59
63 void endRun() override final;
64
65
66 private:
67
78 void CalculateKLMHitRate(TH2* hist, int layer, Double_t totalEvents, Double_t layerArea,
79 Double_t& hitRate, Double_t& hitRateErr);
80
81
83 bool m_IsPhysicsRun = false;
84
87
90
93
96
99
101 const std::string m_tag[2] = {"OUT", "IN"};
102
104 const std::string m_title[2] = {"[Outside Active Veto Window]", "[Inside Active Veto Window]"};
105
108
109 };//class definition end
110
112}//namespace end
BKLM element numbers.
Analysis of HLT histograms for KLM Monitoring Object on Mirabelle.
void initialize() override final
Initializer.
const bklm::GeometryPar * m_bklmGeoPar
BKLM Geometry data.
Double_t m_lookbackWindow
Lookback window in seconds for hit rate calculation (default: 10.4 microseconds)
bool m_IsPhysicsRun
Run type flag for physics runs.
const BKLMElementNumbers * m_BklmElementNumbers
BKLM element numbers.
const std::string m_title[2]
Name of histogram suffix based on tag.
void event() override final
This method is called for each event.
void CalculateKLMHitRate(TH2 *hist, int layer, Double_t totalEvents, Double_t layerArea, Double_t &hitRate, Double_t &hitRateErr)
Calculate KLM hit rate for a specific layer from 2D histogram.
std::string m_histogramDirectoryName
Name of histogram directory.
void endRun() override final
This method is called if the current run ends.
void beginRun() override final
Called when entering a new run.
bool m_IsNullRun
Run type flag for null runs.
const std::string m_tag[2]
Tag suffix based on injection veto.
MonitoringObject * m_klmMonObj
KLM Monitoring object.
The base class for the histogram analysis module.
MonitoringObject is a basic object to hold data for the run-dependency monitoring Run summary TCanvas...
Provides BKLM geometry parameters for simulation, reconstruction etc (from Gearbox or DataBase)
Definition: GeometryPar.h:37
Abstract base class for different kinds of events.