#include <RandomChannelStatusService.h>
Public Member Functions | |
bool | IsBad (raw::ChannelID_t chan) const override |
Returns whether the specified channel is bad in the current run. More... | |
bool | IsPresent (raw::ChannelID_t) const override |
Returns whether the specified channel is physical and connected to wire. More... | |
bool | IsNoisy (raw::ChannelID_t) const override |
Returns whether the specified channel is noisy in the current run. More... | |
std::set< raw::ChannelID_t > | GoodChannels () const override |
Returns a copy of set of good channel IDs for the current run. More... | |
std::set< raw::ChannelID_t > | BadChannels () const override |
Returns a copy of set of bad channel IDs for the current run. More... | |
std::set< raw::ChannelID_t > | NoisyChannels () const override |
Returns a copy of set of noisy channel IDs for the current run. More... | |
Public Member Functions inherited from lariov::ChannelStatusProvider | |
ChannelStatusProvider ()=default | |
Default constructor. More... | |
ChannelStatusProvider (ChannelStatusProvider const &)=delete | |
ChannelStatusProvider (ChannelStatusProvider &&)=delete | |
ChannelStatusProvider & | operator= (ChannelStatusProvider const &)=delete |
ChannelStatusProvider & | operator= (ChannelStatusProvider &&)=delete |
virtual | ~ChannelStatusProvider ()=default |
Virtual destructor; destructs nothing. More... | |
virtual bool | IsGood (raw::ChannelID_t channel) const |
Returns whether the specified channel is physical and good. More... | |
virtual Status_t | Status (raw::ChannelID_t channel) const |
Returns a status integer with arbitrary meaning. More... | |
virtual bool | HasStatus (raw::ChannelID_t channel) const |
Returns whether the specified status is a valid one. More... | |
Protected Types | |
enum | EMode_t { kUnknown, kRandomAPAs, kRandomAPAsides, kRandomBoards, kRandomChips, kRandomChans } |
Protected Member Functions | |
RandomChannelStatusProvider (const fhicl::ParameterSet &pset) | |
void | MarkChansBad (unsigned int target) |
void | MarkAPAsBad (unsigned int target) |
void | MarkAPASidesBad (unsigned int target) |
void | MarkBoardsOrChipsBad (EMode_t mode, unsigned int target) |
void | MarkBoardBad (int board, const std::vector< std::vector< raw::ChannelID_t >> &chans) |
void | MarkChipBad (int board, int chip, const geo::GeometryCore *geom, const std::vector< std::vector< raw::ChannelID_t >> &chans) |
Protected Attributes | |
std::set< raw::ChannelID_t > | fBadChans |
std::set< raw::ChannelID_t > | fGoodChans |
Friends | |
class | RandomChannelStatusService |
Additional Inherited Members | |
Public Types inherited from lariov::ChannelStatusProvider | |
using | Status_t = unsigned short |
type representing channel status More... | |
using | ChannelSet_t = std::set< raw::ChannelID_t > |
Type of set of channel IDs. More... | |
Static Public Member Functions inherited from lariov::ChannelStatusProvider | |
static bool | IsValidStatus (Status_t status) |
Returns whether the specified status is a valid one. More... | |
Static Public Attributes inherited from lariov::ChannelStatusProvider | |
static constexpr Status_t | InvalidStatus = std::numeric_limits<Status_t>::max() |
Value or invalid status. More... | |
Definition at line 12 of file RandomChannelStatusService.h.
|
protected |
Enumerator | |
---|---|
kUnknown | |
kRandomAPAs |
"APAs" |
kRandomAPAsides |
"APAsides" |
kRandomBoards |
"boards" |
kRandomChips |
"chips" |
kRandomChans |
"channels" |
Definition at line 36 of file RandomChannelStatusService.h.
|
protected |
Definition at line 174 of file RandomChannelStatusService_service.cc.
|
inlineoverridevirtual |
Returns a copy of set of bad channel IDs for the current run.
Implements lariov::ChannelStatusProvider.
Definition at line 28 of file RandomChannelStatusService.h.
|
inlineoverridevirtual |
Returns a copy of set of good channel IDs for the current run.
Implements lariov::ChannelStatusProvider.
Definition at line 23 of file RandomChannelStatusService.h.
|
inlineoverridevirtual |
Returns whether the specified channel is bad in the current run.
Implements lariov::ChannelStatusProvider.
Definition at line 15 of file RandomChannelStatusService.h.
|
inlineoverridevirtual |
Returns whether the specified channel is noisy in the current run.
Implements lariov::ChannelStatusProvider.
Definition at line 21 of file RandomChannelStatusService.h.
|
inlineoverridevirtual |
Returns whether the specified channel is physical and connected to wire.
Implements lariov::ChannelStatusProvider.
Definition at line 20 of file RandomChannelStatusService.h.
|
protected |
Definition at line 256 of file RandomChannelStatusService_service.cc.
|
protected |
Definition at line 288 of file RandomChannelStatusService_service.cc.
|
protected |
Definition at line 358 of file RandomChannelStatusService_service.cc.
|
protected |
Definition at line 325 of file RandomChannelStatusService_service.cc.
|
protected |
Definition at line 229 of file RandomChannelStatusService_service.cc.
|
protected |
Definition at line 373 of file RandomChannelStatusService_service.cc.
|
inlineoverridevirtual |
Returns a copy of set of noisy channel IDs for the current run.
Implements lariov::ChannelStatusProvider.
Definition at line 33 of file RandomChannelStatusService.h.
|
friend |
Definition at line 46 of file RandomChannelStatusService.h.
|
protected |
Definition at line 64 of file RandomChannelStatusService.h.
|
protected |
Definition at line 64 of file RandomChannelStatusService.h.