Mapping of ROP channels into wires. More...
#include <ChannelToWireMap.h>
Classes | |
struct | ChannelsInROPStruct |
Public Member Functions | |
ChannelsInROPStruct const * | find (raw::ChannelID_t channel) const |
Returns data of the ROP including channel , nullptr if none. More... | |
ChannelsInROPStruct const * | find (readout::ROPID const &ropid) const |
Returns data of the ROP ropid , nullptr if none. More... | |
raw::ChannelID_t | endChannel () const |
Returns the ID of the first invalid channel (the last channel, plus 1). More... | |
unsigned int | nChannels () const |
Returns the number of mapped channels. More... | |
void | addROP (readout::ROPID const &rid, raw::ChannelID_t firstROPchannel, unsigned int nChannels) |
void | setEndChannel (raw::ChannelID_t channel) |
Sets the ID of the channels after the last valid one. More... | |
void | clear () |
Resets the data of the map to like just constructed. More... | |
Private Attributes | |
std::vector< ChannelsInROPStruct > | fROPfirstChannel |
Collection of channel ROP channel information, sorted by first channel. More... | |
raw::ChannelID_t | fEndChannel = 0 |
ID of the first invalid channel. More... | |
Mapping of ROP channels into wires.
For each readout plane, we store its first channel (the last one can be found from the next ROP), and for all wire planes after the first one, the first channel that is shared (with the previous plane, that is) and the first channel on that plane that is not shared.
Definition at line 34 of file ChannelToWireMap.h.
|
inline |
Adds the next ROP with its first channel ID (must be larger than previous).
Definition at line 97 of file ChannelToWireMap.h.
void icarus::details::ChannelToWireMap::clear | ( | ) |
Resets the data of the map to like just constructed.
Definition at line 47 of file ChannelToWireMap.cxx.
|
inline |
Returns the ID of the first invalid channel (the last channel, plus 1).
Definition at line 89 of file ChannelToWireMap.h.
auto icarus::details::ChannelToWireMap::find | ( | raw::ChannelID_t | channel | ) | const |
Returns data of the ROP including channel
, nullptr
if none.
Definition at line 19 of file ChannelToWireMap.cxx.
auto icarus::details::ChannelToWireMap::find | ( | readout::ROPID const & | ropid | ) | const |
Returns data of the ROP ropid
, nullptr
if none.
Definition at line 34 of file ChannelToWireMap.cxx.
|
inline |
Returns the number of mapped channels.
Definition at line 92 of file ChannelToWireMap.h.
|
inline |
Sets the ID of the channels after the last valid one.
Definition at line 110 of file ChannelToWireMap.h.
|
private |
ID of the first invalid channel.
Definition at line 120 of file ChannelToWireMap.h.
|
private |
Collection of channel ROP channel information, sorted by first channel.
Definition at line 118 of file ChannelToWireMap.h.