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

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

#include <KLMTimeResolution.h>

Inheritance diagram for KLMTimeResolution:
Collaboration diagram for KLMTimeResolution:

Public Member Functions

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

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.

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.


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