Pottu
Public Member Functions | Friends | List of all members
pottu::DAQChannels::DetectorGroup Class Reference

Simple class to store name and included channels for this group. More...

#include <DAQChannels.hpp>

Public Member Functions

void add (uint16_t ch)
 Adds channel to this group. More...
 
void remove (uint16_t ch)
 Removes channel from this group. More...
 
const std::string & getName () const noexcept
 Returns the name of the group. More...
 
const std::vector< uint16_t > & getChannels () const noexcept
 Returns the vector of channel numbers assigned to this group. More...
 

Friends

class DAQChannels
 

Detailed Description

Simple class to store name and included channels for this group.

Member Function Documentation

◆ add()

void pottu::DAQChannels::DetectorGroup::add ( uint16_t  ch)
inline

Adds channel to this group.

Parameters
chData-acquisition channel number. Same channel can be added only once.

◆ getChannels()

const std::vector<uint16_t>& pottu::DAQChannels::DetectorGroup::getChannels ( ) const
inlinenoexcept

Returns the vector of channel numbers assigned to this group.

Returns
The vector of channel numbers assigned to this group. Vector is sorted to ascending channel numbers.

◆ getName()

const std::string& pottu::DAQChannels::DetectorGroup::getName ( ) const
inlinenoexcept

Returns the name of the group.

Returns
Name of the group.

◆ remove()

void pottu::DAQChannels::DetectorGroup::remove ( uint16_t  ch)
inline

Removes channel from this group.

Parameters
chData-acquisition channel number

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