Belle II Software  release-08-01-10
KLMTimeCableDelay Class Reference

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

#include <KLMTimeCableDelay.h>

Inheritance diagram for KLMTimeCableDelay:
Collaboration diagram for KLMTimeCableDelay:

Public Member Functions

 KLMTimeCableDelay ()
 Constructor.
 
 ~KLMTimeCableDelay ()
 Destructor.
 
void setTimeDelay (KLMChannelNumber channel, float timeDelay)
 Set the time calibration constant. More...
 
float getTimeDelay (KLMChannelNumber channel) const
 Get the time calibration constant. More...
 
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.

Member Function Documentation

◆ 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 }
std::map< KLMChannelNumber, float > m_timeDelay
Map of the time calibration constants.

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


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