 |
Belle II Software
release-05-02-19
|
31 class TOPCalChannelMask:
public TObject {
60 void setActive(
int moduleID,
unsigned channel);
67 void setDead(
int moduleID,
unsigned channel);
74 void setNoisy(
int moduleID,
unsigned channel);
90 bool isActive(
int moduleID,
unsigned channel)
const;
154 bool check(
const int module,
const unsigned channel)
const;
@ c_numChannels
number of channels per module
int getNumOfChannels() const
Returns number of all channels.
int getNumOfNoisyChannels() const
Returns number of noisy channels.
EStatus m_status[c_numModules][c_numChannels]
channel status
void setActive(int moduleID, unsigned channel)
Sets a specific channel as active.
void setNoisy(int moduleID, unsigned channel)
Sets a specific channel as noisy.
EStatus
Status of the channel.
int getNumOfActiveChannels() const
Returns number of active channels.
bool check(const int module, const unsigned channel) const
Check input module and channel arguments are sane.
int getNumOf(EStatus check) const
Counts and returns the number of channels having a given status.
@ c_numModules
number of modules
void setDead(int moduleID, unsigned channel)
Sets a specific channel as dead.
void setStatus(int moduleID, unsigned channel, EStatus status)
Sets the status for a single channel.
double getActiveFraction() const
Returns fraction of active channels.
Abstract base class for different kinds of events.
int getNumOfModuleChannels() const
Returns number of channels in a module.
EStatus getStatus(int moduleID, unsigned channel) const
Returns the status of a single channel.
int getNumOfDeadChannels() const
Returns number of dead channels.
TOPCalChannelMask()
Default constructor.
bool isActive(int moduleID, unsigned channel) const
Returns false if the channel is dead or noisy, and true is the channel is active.
ClassDef(TOPCalChannelMask, 1)
ClassDef.