Belle II Software development
KLMTimeConstants.cc
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/* Own header. */
10#include <klm/dbobjects/KLMTimeConstants.h>
11
12/* Basf2 headers. */
13#include <framework/logging/Logger.h>
14
15using namespace Belle2;
16
17float KLMTimeConstants::getDelay(int cType) const
18{
19 switch (cType) {
20 case c_EKLM:
22 case c_BKLM:
24 case c_RPCPhi:
25 return m_DelayRPCPhi;
26 case c_RPCZ:
27 return m_DelayRPCZ;
28 }
29 B2FATAL("Incorrect channel type: " << cType);
30}
31
32void KLMTimeConstants::setDelay(float delay, int cType)
33{
34 switch (cType) {
35 case c_EKLM:
37 return;
38 case c_BKLM:
40 return;
41 case c_RPCPhi:
42 m_DelayRPCPhi = delay;
43 return;
44 case c_RPCZ:
45 m_DelayRPCZ = delay;
46 return;
47 }
48 B2FATAL("Incorrect channel type: " << cType);
49}
@ c_BKLM
BKLM scintillator.
@ c_EKLM
EKLM scintillator.
float getDelay(int cType) const
Get effective light speed of scintillators.
float m_DelayRPCPhi
Delay (ns / cm) for RPC phi plane.
float m_DelayEKLMScintillators
Delay (ns / cm) for EKLM scintillators.
float m_DelayBKLMScintillators
Delay (ns / cm) for BKLM scintillators.
float m_DelayRPCZ
Delay (ns / cm) for RPC Z plane.
void setDelay(float delay, int cType)
Set effective light speed of scintillators.
Abstract base class for different kinds of events.