Belle II Software  release-08-01-10
KLMChannelMapValue< T > Class Template Reference

KLM channel map. More...

#include <KLMChannelMapValue.h>

Inheritance diagram for KLMChannelMapValue< T >:
Collaboration diagram for KLMChannelMapValue< T >:

Public Member Functions

 KLMChannelMapValue ()
 Constructor.
 
 ~KLMChannelMapValue ()
 Destructor.
 
const T getChannelData (KLMChannelNumber channel) const
 Get channel data. More...
 
void setChannelData (KLMChannelNumber channel, const T data)
 Set channel data. More...
 
void setDataAllChannels (const T data)
 Set data for all channels. More...
 

Private Member Functions

 ClassDef (Belle2::KLMChannelMapValue< T >, 1)
 Class version.
 

Private Attributes

std::map< KLMChannelNumber, T > m_ChannelData
 Channel data.
 

Detailed Description

template<class T>
class Belle2::KLMChannelMapValue< T >

KLM channel map.

Definition at line 33 of file KLMChannelMapValue.h.

Member Function Documentation

◆ getChannelData()

const T getChannelData ( KLMChannelNumber  channel) const
inline

Get channel data.

Parameters
[in]channelChannel number.

Definition at line 55 of file KLMChannelMapValue.h.

56  {
57  typename std::map<KLMChannelNumber, T>::const_iterator it;
58  it = m_ChannelData.find(channel);
59  if (it == m_ChannelData.end()) {
60  B2ERROR("No data for KLM channel in map." <<
61  LogVar("Channel number", channel));
62  }
63  return it->second;
64  }
std::map< KLMChannelNumber, T > m_ChannelData
Channel data.
Class to store variables with their name which were sent to the logging service.

◆ setChannelData()

void setChannelData ( KLMChannelNumber  channel,
const T  data 
)
inline

Set channel data.

Parameters
[in]channelChannel number.
[in]dataData.

Definition at line 71 of file KLMChannelMapValue.h.

◆ setDataAllChannels()

void setDataAllChannels ( const T  data)
inline

Set data for all channels.

Parameters
[in]dataData.

Definition at line 86 of file KLMChannelMapValue.h.


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