Belle II Software development
KLMTimeCableDelay Class Reference

Class to store BKLM delay time coused by cable in the database. More...

#include <KLMTimeCableDelay.h>

Inheritance diagram for KLMTimeCableDelay:

Public Member Functions

 KLMTimeCableDelay ()
 Constructor.
 
 ~KLMTimeCableDelay ()
 Destructor.
 
void setTimeDelay (KLMChannelNumber channel, float timeDelay)
 Set the time calibration constant.
 
float getTimeDelay (KLMChannelNumber channel) const
 Get the time calibration constant.
 
void clearTimeDelay ()
 Clear the time calibration constants.
 

Private Member Functions

 ClassDef (KLMTimeCableDelay, 1)
 Class version.
 

Private Attributes

std::map< KLMChannelNumber, float > m_timeDelay
 Map of the time calibration constants.
 

Detailed Description

Class to store BKLM delay time coused by cable in the database.

Definition at line 29 of file KLMTimeCableDelay.h.

Constructor & Destructor Documentation

◆ KLMTimeCableDelay()

Constructor.

Definition at line 17 of file KLMTimeCableDelay.cc.

18{
19}

◆ ~KLMTimeCableDelay()

Destructor.

Definition at line 21 of file KLMTimeCableDelay.cc.

22{
23}

Member Function Documentation

◆ clearTimeDelay()

void clearTimeDelay ( )

Clear the time calibration constants.

Definition at line 44 of file KLMTimeCableDelay.cc.

45{
46 m_timeDelay.clear();
47}
std::map< KLMChannelNumber, float > m_timeDelay
Map of the time calibration constants.

◆ getTimeDelay()

float getTimeDelay ( KLMChannelNumber  channel) const

Get the time calibration constant.

Parameters
[in]channelChannel number.

Definition at line 35 of file KLMTimeCableDelay.cc.

36{
37 std::map<KLMChannelNumber, float>::const_iterator it;
38 it = m_timeDelay.find(channel);
39 if (it == m_timeDelay.end())
40 return std::numeric_limits<float>::quiet_NaN();
41 return it->second;
42}

◆ setTimeDelay()

void setTimeDelay ( KLMChannelNumber  channel,
float  timeDelay 
)

Set the time calibration constant.

Parameters
[in]channelChannel number.
[in]timeDelayTime calibration constant.

Definition at line 25 of file KLMTimeCableDelay.cc.

26{
27 std::map<KLMChannelNumber, float>::iterator it;
28 it = m_timeDelay.find(channel);
29 if (it == m_timeDelay.end())
30 m_timeDelay.insert(std::pair<KLMChannelNumber, float>(channel, delay));
31 else
32 it->second = delay;
33}

Member Data Documentation

◆ m_timeDelay

std::map<KLMChannelNumber, float> m_timeDelay
private

Map of the time calibration constants.

Definition at line 64 of file KLMTimeCableDelay.h.


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