HerdSoftware  0.1.1
Public Member Functions | Private Attributes | List of all members
Herd::FitChannelInfo Class Reference

#include <FitChannelInfo.h>

Public Member Functions

virtual ~FitChannelInfo ()=default
 Virtual destructor. More...
 
void SetNChannels (size_t nChannels)
 Setup the total number of channels. More...
 
size_t GetNChannels ()
 Return the total number of channels. More...
 
float GetChannelPedestal (size_t channelID) const
 Get the pedestal for a given channel. More...
 
float GetChannelNoise (size_t channelID) const
 Get the noise for a given channel. More...
 
std::bitset< 16 > GetChannelFlags (size_t channelID) const
 Get the calibration flags for a given channel. More...
 
void SetChannelPedestal (size_t channelID, float value)
 Set the pedestal for a given channel. More...
 
void SetChannelNoise (size_t channelID, float value)
 Set the noise for a given channel. More...
 
void SetChannelFlags (size_t channelID, std::bitset< 16 > value)
 Set the calibration flags for a given channel. More...
 

Private Attributes

size_t m_nChannels = 0
 
std::vector< float > m_pedestals
 
std::vector< float > m_noises
 
std::vector< std::bitset< 16 > > m_flags
 

Constructor & Destructor Documentation

◆ ~FitChannelInfo()

virtual Herd::FitChannelInfo::~FitChannelInfo ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ GetChannelFlags()

std::bitset<16> Herd::FitChannelInfo::GetChannelFlags ( size_t  channelID) const
inline

Get the calibration flags for a given channel.

Parameters
channelID
Returns
the channel flags

◆ GetChannelNoise()

float Herd::FitChannelInfo::GetChannelNoise ( size_t  channelID) const
inline

Get the noise for a given channel.

Parameters
channelID
Returns
the channel noise

◆ GetChannelPedestal()

float Herd::FitChannelInfo::GetChannelPedestal ( size_t  channelID) const
inline

Get the pedestal for a given channel.

Parameters
channelID
Returns
the channel pedestal

◆ GetNChannels()

size_t Herd::FitChannelInfo::GetNChannels ( )
inline

Return the total number of channels.

Returns
Number of channels

◆ SetChannelFlags()

void Herd::FitChannelInfo::SetChannelFlags ( size_t  channelID,
std::bitset< 16 >  value 
)
inline

Set the calibration flags for a given channel.

Parameters
channelID
valuethe channel flags

◆ SetChannelNoise()

void Herd::FitChannelInfo::SetChannelNoise ( size_t  channelID,
float  value 
)
inline

Set the noise for a given channel.

Parameters
channelID
valuethe channel noise

◆ SetChannelPedestal()

void Herd::FitChannelInfo::SetChannelPedestal ( size_t  channelID,
float  value 
)
inline

Set the pedestal for a given channel.

Parameters
channelID
valuethe channel pedestal

◆ SetNChannels()

void Herd::FitChannelInfo::SetNChannels ( size_t  nChannels)
inline

Setup the total number of channels.

Parameters
nChannelsNumber of channels

Member Data Documentation

◆ m_flags

std::vector<std::bitset<16> > Herd::FitChannelInfo::m_flags
private

◆ m_nChannels

size_t Herd::FitChannelInfo::m_nChannels = 0
private

◆ m_noises

std::vector<float> Herd::FitChannelInfo::m_noises
private

◆ m_pedestals

std::vector<float> Herd::FitChannelInfo::m_pedestals
private

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