Belle II Software development
KLMChannelStatus.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11/* KLM headers. */
12#include <klm/dataobjects/KLMElementNumberDefinitions.h>
13
14/* ROOT headers. */
15#include <TObject.h>
16
17/* C++ headers. */
18#include <map>
19
20namespace Belle2 {
29 class KLMChannelStatus : public TObject {
30
31 public:
32
37
40
43
46
49
52
53 };
54
59
64
70
76 void setChannelStatus(KLMChannelNumber channel, enum ChannelStatus status);
77
82 void setStatusAllChannels(enum ChannelStatus status);
83
89
93 bool operator==(KLMChannelStatus& status);
94
99 unsigned int newNormalChannels(KLMChannelStatus& status);
100
101 private:
102
104 std::map<KLMChannelNumber, enum ChannelStatus> m_ChannelStatus;
105
108
109 };
110
112}
KLM channel status.
void setChannelStatus(KLMChannelNumber channel, enum ChannelStatus status)
Set channel status.
enum ChannelStatus getChannelStatus(KLMChannelNumber channel) const
Get channel status.
void setStatusAllChannels(enum ChannelStatus status)
Set status for all channels.
ClassDef(Belle2::KLMChannelStatus, 1)
Class version.
int getActiveStripsInModule(KLMChannelNumber module) const
Get number of active strips in the specified KLM module.
bool operator==(KLMChannelStatus &status)
Operator ==.
std::map< KLMChannelNumber, enum ChannelStatus > m_ChannelStatus
Channel data.
ChannelStatus
Channel status.
@ c_Hot
Hot channel (large background).
@ c_Undetermined
Undetermined (used during calibration).
@ c_Normal
Normally operating channel.
@ c_Dead
Dead channel (no signal).
@ c_Unknown
Unknown status (no data).
unsigned int newNormalChannels(KLMChannelStatus &status)
Number of new channels with status c_Normal that have a different status in another channel-status da...
uint16_t KLMChannelNumber
Channel number.
Abstract base class for different kinds of events.