Belle II Software development
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/* KLM headers */
18#include <klm/dataobjects/bklm/BKLMElementNumbers.h>
19#include <klm/bklm/geometry/GeometryPar.h>
20
21namespace Belle2 {
26
31
32 public:
33
38
41
45 void initialize() override final;
46
50 void beginRun() override final;
51
55 void event() override final;
56
60 void endRun() override final;
61
62
63 private:
64
75 void CalculateKLMHitRate(auto* hist, int layer, Double_t totalEvents, Double_t layerArea,
76 Double_t& hitRate, Double_t& hitRateErr);
77
78
80 bool m_IsPhysicsRun = false;
81
84
87
90
93
96
98 const std::string m_tag[2] = {"OUT", "IN"};
99
101 const std::string m_title[2] = {"[Outside Active Veto Window]", "[Inside Active Veto Window]"};
102
105
106 };//class definition end
107
109}//namespace end
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.
std::string m_histogramDirectoryName
Name of histogram directory.
void CalculateKLMHitRate(auto *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.
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.
DQMHistAnalysisModule()
Constructor / Destructor.
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.