HerdSoftware  0.4.0
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 NChannels ()
 Return the total number of channels. More...
 
float ChannelPedestal (size_t channelID) const
 Get the pedestal for a given channel. More...
 
float ChannelNoise (size_t channelID) const
 Get the noise for a given channel. More...
 
std::bitset< 16 > ChannelFlags (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

◆ ChannelFlags()

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

Get the calibration flags for a given channel.

Parameters
channelID
Returns
the channel flags

◆ ChannelNoise()

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

Get the noise for a given channel.

Parameters
channelID
Returns
the channel noise

◆ ChannelPedestal()

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

Get the pedestal for a given channel.

Parameters
channelID
Returns
the channel pedestal

◆ NChannels()

size_t Herd::FitChannelInfo::NChannels ( )
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: