Belle II Software development
KLMTimeResolution Class Reference

Class to store KLM time resolution in the database. More...

#include <KLMTimeResolution.h>

Inheritance diagram for KLMTimeResolution:

Public Member Functions

 KLMTimeResolution ()
 Constructor.
 
 ~KLMTimeResolution ()
 Destructor.
 
float getTimeResolution (KLMChannelNumber channel) const
 Get time resolution.
 
void setTimeResolution (KLMChannelNumber channel, float resolution)
 Set time resolution.
 

Private Member Functions

 ClassDef (Belle2::KLMTimeResolution, 1)
 Class version.
 

Private Attributes

std::map< KLMChannelNumber, float > m_TimeResolution
 Time resolution.
 

Detailed Description

Class to store KLM time resolution in the database.

Definition at line 30 of file KLMTimeResolution.h.

Constructor & Destructor Documentation

◆ KLMTimeResolution()

KLMTimeResolution ( )
inline

Constructor.

Definition at line 37 of file KLMTimeResolution.h.

38 {
39 }

◆ ~KLMTimeResolution()

~KLMTimeResolution ( )
inline

Destructor.

Definition at line 44 of file KLMTimeResolution.h.

45 {
46 }

Member Function Documentation

◆ getTimeResolution()

float getTimeResolution ( KLMChannelNumber  channel) const

Get time resolution.

Parameters
[in]channelChannel number.

Definition at line 17 of file KLMTimeResolution.cc.

18{
19 std::map<KLMChannelNumber, float>::const_iterator it;
20 it = m_TimeResolution.find(channel);
21 if (it == m_TimeResolution.end())
22 return std::numeric_limits<float>::quiet_NaN();
23 return it->second;
24}
std::map< KLMChannelNumber, float > m_TimeResolution
Time resolution.

◆ setTimeResolution()

void setTimeResolution ( KLMChannelNumber  channel,
float  resolution 
)

Set time resolution.

Parameters
[in]channelChannel number.
[in]resolutionResolution.

Definition at line 26 of file KLMTimeResolution.cc.

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

Member Data Documentation

◆ m_TimeResolution

std::map<KLMChannelNumber, float> m_TimeResolution
private

Time resolution.

Definition at line 64 of file KLMTimeResolution.h.


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