Belle II Software development
KLMTimeConstants Class Reference

Class to store KLM constants related to time. More...

#include <KLMTimeConstants.h>

Inheritance diagram for KLMTimeConstants:

Public Types

enum  ChannelType {
  c_EKLM = 1 ,
  c_BKLM = 2 ,
  c_RPCPhi = 3 ,
  c_RPCZ = 4
}
 Channel type. More...
 

Public Member Functions

 KLMTimeConstants ()
 Constructor.
 
 ~KLMTimeConstants ()
 Destructor.
 
float getDelay (int cType) const
 Get effective light speed of scintillators.
 
void setDelay (float delay, int cType)
 Set effective light speed of scintillators.
 

Private Member Functions

 ClassDef (KLMTimeConstants, 1)
 Class version.
 

Private Attributes

float m_DelayEKLMScintillators = 0.0
 Delay (ns / cm) for EKLM scintillators.
 
float m_DelayBKLMScintillators = 0.0
 Delay (ns / cm) for BKLM scintillators.
 
float m_DelayRPCPhi = 0.0
 Delay (ns / cm) for RPC phi plane.
 
float m_DelayRPCZ = 0.0
 Delay (ns / cm) for RPC Z plane.
 

Detailed Description

Class to store KLM constants related to time.

Definition at line 23 of file KLMTimeConstants.h.

Member Enumeration Documentation

◆ ChannelType

Channel type.

Enumerator
c_EKLM 

EKLM scintillator.

c_BKLM 

BKLM scintillator.

c_RPCPhi 

RPC phi plane.

c_RPCZ 

RPC z plane.

Definition at line 30 of file KLMTimeConstants.h.

30 {
31
33 c_EKLM = 1,
34
36 c_BKLM = 2,
37
39 c_RPCPhi = 3,
40
42 c_RPCZ = 4,
43
44 };
@ c_BKLM
BKLM scintillator.
@ c_EKLM
EKLM scintillator.

Constructor & Destructor Documentation

◆ KLMTimeConstants()

KLMTimeConstants ( )
inline

Constructor.

Definition at line 49 of file KLMTimeConstants.h.

50 {
51 }

◆ ~KLMTimeConstants()

~KLMTimeConstants ( )
inline

Destructor.

Definition at line 56 of file KLMTimeConstants.h.

57 {
58 }

Member Function Documentation

◆ getDelay()

float getDelay ( int  cType) const

Get effective light speed of scintillators.

Parameters
[in]cTypeFlag of channel type.

Definition at line 17 of file KLMTimeConstants.cc.

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}
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.

◆ setDelay()

void setDelay ( float  delay,
int  cType 
)

Set effective light speed of scintillators.

Parameters
[in]delayDelay.
[in]cTypeFlag of channel type.

Definition at line 32 of file KLMTimeConstants.cc.

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}

Member Data Documentation

◆ m_DelayBKLMScintillators

float m_DelayBKLMScintillators = 0.0
private

Delay (ns / cm) for BKLM scintillators.

Definition at line 79 of file KLMTimeConstants.h.

◆ m_DelayEKLMScintillators

float m_DelayEKLMScintillators = 0.0
private

Delay (ns / cm) for EKLM scintillators.

Definition at line 76 of file KLMTimeConstants.h.

◆ m_DelayRPCPhi

float m_DelayRPCPhi = 0.0
private

Delay (ns / cm) for RPC phi plane.

Definition at line 82 of file KLMTimeConstants.h.

◆ m_DelayRPCZ

float m_DelayRPCZ = 0.0
private

Delay (ns / cm) for RPC Z plane.

Definition at line 85 of file KLMTimeConstants.h.


The documentation for this class was generated from the following files: