LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lariov::ChannelStatus Class Reference

#include "ChannelStatus.h"

Inheritance diagram for lariov::ChannelStatus:
lariov::ChData

Public Member Functions

 ChannelStatus (unsigned int ch)
 Constructor. More...
 
 ~ChannelStatus ()=default
 Default destructor. More...
 
bool IsDead () const
 
bool IsLowNoise () const
 
bool IsNoisy () const
 
bool IsPresent () const
 
bool IsGood () const
 
chStatus Status () const
 
void SetStatus (chStatus status)
 
unsigned int Channel () const
 
void SetChannel (unsigned int ch)
 
bool operator< (unsigned int rhs) const
 
bool operator< (const ChData &ch) const
 

Static Public Member Functions

static chStatus GetStatusFromInt (int status)
 

Protected Attributes

unsigned int fChannel
 

Private Attributes

chStatus fStatus
 

Detailed Description

Definition at line 33 of file ChannelStatus.h.

Constructor & Destructor Documentation

lariov::ChannelStatus::ChannelStatus ( unsigned int  ch)
inline

Constructor.

Definition at line 37 of file ChannelStatus.h.

References ~ChannelStatus().

37 : ChData(ch) {}
ChData(unsigned int ch)
Constructor.
Definition: ChData.h:27
lariov::ChannelStatus::~ChannelStatus ( )
default

Default destructor.

Referenced by ChannelStatus().

Member Function Documentation

unsigned int lariov::ChData::Channel ( ) const
inlineinherited

Definition at line 32 of file ChData.h.

References lariov::ChData::fChannel.

Referenced by lariov::ChData::operator<().

32 { return fChannel; }
unsigned int fChannel
Definition: ChData.h:40
static chStatus lariov::ChannelStatus::GetStatusFromInt ( int  status)
inlinestatic

Definition at line 51 of file ChannelStatus.h.

References lariov::kDEAD, lariov::kDISCONNECTED, lariov::kGOOD, lariov::kLOWNOISE, lariov::kNOISY, and lariov::kUNKNOWN.

Referenced by lariov::SIOVChannelStatusProvider::DBUpdate(), and lariov::SIOVChannelStatusProvider::SIOVChannelStatusProvider().

52  {
53  switch (status) {
54  case kDISCONNECTED: return kDISCONNECTED; break;
55  case kDEAD: return kDEAD; break;
56  case kLOWNOISE: return kLOWNOISE; break;
57  case kNOISY: return kNOISY; break;
58  case kGOOD: return kGOOD; break;
59  default: return kUNKNOWN;
60  };
61 
62  return kUNKNOWN;
63  }
bool lariov::ChannelStatus::IsDead ( ) const
inline

Definition at line 42 of file ChannelStatus.h.

References fStatus, and lariov::kDEAD.

Referenced by lariov::SIOVChannelStatusProvider::IsBad().

42 { return fStatus == kDEAD ? true : false; }
bool lariov::ChannelStatus::IsGood ( ) const
inline

Definition at line 46 of file ChannelStatus.h.

References fStatus, and lariov::kGOOD.

Referenced by lariov::SIOVChannelStatusProvider::IsGood().

46 { return fStatus == kGOOD ? true : false; }
bool lariov::ChannelStatus::IsLowNoise ( ) const
inline

Definition at line 43 of file ChannelStatus.h.

References fStatus, and lariov::kLOWNOISE.

Referenced by lariov::SIOVChannelStatusProvider::IsBad().

43 { return fStatus == kLOWNOISE ? true : false; }
bool lariov::ChannelStatus::IsNoisy ( ) const
inline

Definition at line 44 of file ChannelStatus.h.

References fStatus, and lariov::kNOISY.

Referenced by lariov::SIOVChannelStatusProvider::IsNoisy().

44 { return fStatus == kNOISY ? true : false; }
bool lariov::ChannelStatus::IsPresent ( ) const
inline

Definition at line 45 of file ChannelStatus.h.

References fStatus, and lariov::kDISCONNECTED.

Referenced by lariov::SIOVChannelStatusProvider::IsPresent().

45 { return fStatus == kDISCONNECTED ? false : true; }
bool lariov::ChData::operator< ( unsigned int  rhs) const
inlineinherited

Definition at line 35 of file ChData.h.

References lariov::ChData::fChannel.

35 { return fChannel < rhs; }
unsigned int fChannel
Definition: ChData.h:40
bool lariov::ChData::operator< ( const ChData ch) const
inlineinherited

Definition at line 37 of file ChData.h.

References lariov::ChData::Channel(), and lariov::ChData::fChannel.

37 { return fChannel < ch.Channel(); }
unsigned int fChannel
Definition: ChData.h:40
void lariov::ChData::SetChannel ( unsigned int  ch)
inlineinherited
void lariov::ChannelStatus::SetStatus ( chStatus  status)
inline
chStatus lariov::ChannelStatus::Status ( ) const
inline

Member Data Documentation

unsigned int lariov::ChData::fChannel
protectedinherited
chStatus lariov::ChannelStatus::fStatus
private

Definition at line 66 of file ChannelStatus.h.

Referenced by IsDead(), IsGood(), IsLowNoise(), IsNoisy(), IsPresent(), SetStatus(), and Status().


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