58 void setActive(
int moduleID,
unsigned channel);
65 void setDead(
int moduleID,
unsigned channel);
72 void setNoisy(
int moduleID,
unsigned channel);
88 bool isActive(
int moduleID,
unsigned channel)
const;
152 bool check(
const int module,
const unsigned channel)
const;
Channel status for all 512 channels of 16 modules.
int getNumOfDeadChannels() const
Returns number of dead channels.
ClassDef(TOPCalChannelMask, 1)
ClassDef.
int getNumOfNoisyChannels(int moduleID) const
Returns number of module noisy channels.
EStatus m_status[c_numModules][c_numChannels]
channel status
int getNumOfActiveChannels() const
Returns number of active channels.
int getNumOfChannels() const
Returns number of all channels.
@ c_numChannels
number of channels per module
@ c_numModules
number of modules
double getActiveFraction(int moduleID) const
Returns fraction of module active channels.
EStatus
Status of the channel.
int getNumOfNoisyChannels() const
Returns number of noisy channels.
TOPCalChannelMask()
Default constructor.
int getNumOfDeadChannels(int moduleID) const
Returns number of module dead channels.
int getNumOfModuleChannels() const
Returns number of channels in a module.
double getActiveFraction() const
Returns fraction of active channels.
int getNumOfActiveChannels(int moduleID) const
Returns number of module active channels.
void setActive(int moduleID, unsigned channel)
Sets a specific channel as active.
int getNumOf(EStatus check) const
Counts and returns the number of channels having a given status.
void setNoisy(int moduleID, unsigned channel)
Sets a specific channel as noisy.
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.
bool isActive(int moduleID, unsigned channel) const
Returns false if the channel is dead or noisy, and true is the channel is active.
EStatus getStatus(int moduleID, unsigned channel) const
Returns the status of a single channel.
bool check(const int module, const unsigned channel) const
Check input module and channel arguments are sane.
Abstract base class for different kinds of events.