All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Public Attributes | List of all members
icarus::details::ChannelToWireMap::ChannelsInROPStruct Struct Reference

#include <ChannelToWireMap.h>

Classes

struct  Compare
 Compares with a channel ID (std::less<>). More...
 

Public Member Functions

 ChannelsInROPStruct ()=default
 
 ChannelsInROPStruct (raw::ChannelID_t firstChannel, unsigned int nChannels, readout::ROPID const &ropid)
 
constexpr bool isChannelAbove (raw::ChannelID_t channel) const
 Returns if channel is not in a lower ROP than this one. More...
 
constexpr bool operator< (ChannelsInROPStruct const &other) const
 Strict ordering according to the first channel in ROP. More...
 

Public Attributes

raw::ChannelID_t firstChannel = raw::InvalidChannelID
 First channel in ROP. More...
 
unsigned int nChannels = 0U
 
readout::ROPID ropid
 ID of the ROP we cover. More...
 

Detailed Description

Definition at line 37 of file ChannelToWireMap.h.

Constructor & Destructor Documentation

icarus::details::ChannelToWireMap::ChannelsInROPStruct::ChannelsInROPStruct ( )
default
icarus::details::ChannelToWireMap::ChannelsInROPStruct::ChannelsInROPStruct ( raw::ChannelID_t  firstChannel,
unsigned int  nChannels,
readout::ROPID const &  ropid 
)
inline

Definition at line 63 of file ChannelToWireMap.h.

Member Function Documentation

constexpr bool icarus::details::ChannelToWireMap::ChannelsInROPStruct::isChannelAbove ( raw::ChannelID_t  channel) const
inline

Returns if channel is not in a lower ROP than this one.

Definition at line 73 of file ChannelToWireMap.h.

74  { return (channel >= firstChannel); }
raw::ChannelID_t firstChannel
First channel in ROP.
constexpr bool icarus::details::ChannelToWireMap::ChannelsInROPStruct::operator< ( ChannelsInROPStruct const &  other) const
inline

Strict ordering according to the first channel in ROP.

Definition at line 77 of file ChannelToWireMap.h.

78  { return Compare{}(*this, other); }
bool Compare(const T &a, const T &b, const std::string &key)
Definition: diff_spectra.cc:93

Member Data Documentation

raw::ChannelID_t icarus::details::ChannelToWireMap::ChannelsInROPStruct::firstChannel = raw::InvalidChannelID

First channel in ROP.

Definition at line 40 of file ChannelToWireMap.h.

unsigned int icarus::details::ChannelToWireMap::ChannelsInROPStruct::nChannels = 0U

Definition at line 41 of file ChannelToWireMap.h.

readout::ROPID icarus::details::ChannelToWireMap::ChannelsInROPStruct::ropid

ID of the ROP we cover.

Definition at line 42 of file ChannelToWireMap.h.


The documentation for this struct was generated from the following file: