Belle II Software development
KLMEventT0HitResolution.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/* ROOT headers. */
12#include <TObject.h>
13
14namespace Belle2 {
19
26 class KLMEventT0HitResolution : public TObject {
27
28 public:
29
33 enum Category {
34
37
40
42 c_RPC = 3,
43
46
48 c_RPCZ = 5,
49 };
50
55
60
66 void setSigmaEKLMScint(float sigma, float sigmaErr);
67
73 void setSigmaBKLMScint(float sigma, float sigmaErr);
74
80 void setSigmaRPC(float sigma, float sigmaErr);
81
87 void setSigmaRPCPhi(float sigma, float sigmaErr);
88
94 void setSigmaRPCZ(float sigma, float sigmaErr);
95
102 void setSigma(float sigma, float sigmaErr, int category);
103
105 float getSigmaEKLMScint() const;
106
108 float getSigmaEKLMScintErr() const;
109
111 float getSigmaBKLMScint() const;
112
114 float getSigmaBKLMScintErr() const;
115
117 float getSigmaRPC() const;
118
120 float getSigmaRPCErr() const;
121
123 float getSigmaRPCPhi() const;
124
126 float getSigmaRPCPhiErr() const;
127
129 float getSigmaRPCZ() const;
130
132 float getSigmaRPCZErr() const;
133
139 float getSigma(int category) const;
140
146 float getSigmaErr(int category) const;
147
148 private:
149
151 float m_SigmaEKLMScint = 0.0;
152
155
157 float m_SigmaBKLMScint = 0.0;
158
161
163 float m_SigmaRPC = 0.0;
164
166 float m_SigmaRPCErr = 0.0;
167
169 float m_SigmaRPCPhi = 0.0;
170
172 float m_SigmaRPCPhiErr = 0.0;
173
175 float m_SigmaRPCZ = 0.0;
176
178 float m_SigmaRPCZErr = 0.0;
179
182
183 };
184
186} // namespace Belle2
float m_SigmaBKLMScintErr
Uncertainty on per-hit sigma for BKLM scintillator [ns].
void setSigma(float sigma, float sigmaErr, int category)
Generic setter by category.
float getSigmaBKLMScint() const
Get per-hit sigma for BKLM scintillator [ns].
float m_SigmaRPCZ
Per-hit sigma for BKLM RPC Z-readout [ns].
float m_SigmaRPCPhi
Per-hit sigma for BKLM RPC Phi-readout [ns].
float getSigmaEKLMScintErr() const
Get per-hit sigma uncertainty for EKLM scintillator [ns].
float getSigma(int category) const
Get per-hit sigma for a given category.
void setSigmaRPC(float sigma, float sigmaErr)
Set per-hit sigma for BKLM RPC (combined).
float m_SigmaRPC
Per-hit sigma for BKLM RPC (combined) [ns].
void setSigmaRPCZ(float sigma, float sigmaErr)
Set per-hit sigma for BKLM RPC Z-readout.
void setSigmaEKLMScint(float sigma, float sigmaErr)
Set per-hit sigma for EKLM scintillator.
float getSigmaErr(int category) const
Get per-hit sigma uncertainty for a given category.
float getSigmaRPCPhi() const
Get per-hit sigma for BKLM RPC Phi-readout [ns].
float m_SigmaBKLMScint
Per-hit sigma for BKLM scintillator [ns].
float m_SigmaEKLMScint
Per-hit sigma for EKLM scintillator [ns].
ClassDef(KLMEventT0HitResolution, 1)
Class version.
Category
Detector category for per-hit resolution.
@ c_RPC
BKLM RPC (combined phi/z).
float m_SigmaRPCPhiErr
Uncertainty on per-hit sigma for BKLM RPC Phi-readout [ns].
float m_SigmaRPCErr
Uncertainty on per-hit sigma for BKLM RPC (combined) [ns].
float getSigmaEKLMScint() const
Get per-hit sigma for EKLM scintillator [ns].
void setSigmaRPCPhi(float sigma, float sigmaErr)
Set per-hit sigma for BKLM RPC Phi-readout.
float getSigmaBKLMScintErr() const
Get per-hit sigma uncertainty for BKLM scintillator [ns].
float getSigmaRPCErr() const
Get per-hit sigma uncertainty for BKLM RPC (combined) [ns].
float getSigmaRPCZ() const
Get per-hit sigma for BKLM RPC Z-readout [ns].
float getSigmaRPC() const
Get per-hit sigma for BKLM RPC (combined) [ns].
float m_SigmaEKLMScintErr
Uncertainty on per-hit sigma for EKLM scintillator [ns].
void setSigmaBKLMScint(float sigma, float sigmaErr)
Set per-hit sigma for BKLM scintillator.
float getSigmaRPCZErr() const
Get per-hit sigma uncertainty for BKLM RPC Z-readout [ns].
float getSigmaRPCPhiErr() const
Get per-hit sigma uncertainty for BKLM RPC Phi-readout [ns].
float m_SigmaRPCZErr
Uncertainty on per-hit sigma for BKLM RPC Z-readout [ns].
Abstract base class for different kinds of events.