Belle II Software  release-05-01-25
EKLMChannels.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Kirill Chilikin *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 /* Own header. */
12 #include <klm/dbobjects/eklm/EKLMChannels.h>
13 
14 using namespace Belle2;
15 
17 {
18 }
19 
21 {
22 }
23 
25 {
26  std::map<uint16_t, EKLMChannelData>::iterator it;
27  it = m_Channels.find(strip);
28  if (it == m_Channels.end())
29  m_Channels.insert(std::pair<uint16_t, EKLMChannelData>(strip, *dat));
30  else
31  it->second = *dat;
32 }
33 
34 const EKLMChannelData* EKLMChannels::getChannelData(uint16_t strip) const
35 {
36  std::map<uint16_t, EKLMChannelData>::const_iterator it;
37  it = m_Channels.find(strip);
38  if (it == m_Channels.end())
39  return nullptr;
40  return &(it->second);
41 }
Belle2::EKLMChannelData
EKLM channel data.
Definition: EKLMChannelData.h:33
Belle2::EKLMChannels::getChannelData
const EKLMChannelData * getChannelData(uint16_t strip) const
Get channel data.
Definition: EKLMChannels.cc:34
Belle2::EKLMChannels::~EKLMChannels
~EKLMChannels()
Destructor.
Definition: EKLMChannels.cc:20
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::EKLMChannels::m_Channels
std::map< uint16_t, EKLMChannelData > m_Channels
Channel data.
Definition: EKLMChannels.h:70
Belle2::EKLMChannels::setChannelData
void setChannelData(uint16_t strip, EKLMChannelData *dat)
Set channel data.
Definition: EKLMChannels.cc:24
Belle2::EKLMChannels::EKLMChannels
EKLMChannels()
Constructor.
Definition: EKLMChannels.cc:16