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
42 void initialize() override final;
43
47 void terminate() override final;
48
52 void beginRun() override final;
53
57 void event() override final;
58
62 void endRun() override final;
63
64
65 private:
66
77 void CalculateKLMHitRate(auto* hist, int layerGlobalBin, Double_t totalEvents, Double_t layerArea,
78 Double_t& hitRate, Double_t& hitRateErr);
79
80
82 bool m_IsPhysicsRun = false;
83
86
89
92
95
98
100 const std::string m_tag[2] = {"OUT", "IN"};
101
103 const std::string m_title[2] = {"[Outside Active Veto Window]", "[Inside Active Veto Window]"};
104
107
108 };//class definition end
109
111}//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.
void CalculateKLMHitRate(auto *hist, int layerGlobalBin, 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.
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.