LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
util::UBDaqID Class Reference

#include "DatabaseUtil.h"

Public Member Functions

 UBDaqID ()
 
 UBDaqID (int _crate, int _card, int _channel)
 
 ~UBDaqID ()
 
const bool operator< (const UBDaqID &rhs) const
 

Public Attributes

int crate
 
int card
 
int channel
 

Detailed Description

Definition at line 21 of file DatabaseUtil.h.

Constructor & Destructor Documentation

util::UBDaqID::UBDaqID ( )
inline

Definition at line 23 of file DatabaseUtil.h.

23 : crate(-1), card(-1), channel(-1){};
util::UBDaqID::UBDaqID ( int  _crate,
int  _card,
int  _channel 
)
inline

Definition at line 24 of file DatabaseUtil.h.

24 : crate(_crate), card(_card), channel(_channel){};
util::UBDaqID::~UBDaqID ( )
inline

Definition at line 25 of file DatabaseUtil.h.

References crate.

25 {};

Member Function Documentation

const bool util::UBDaqID::operator< ( const UBDaqID rhs) const
inline

Definition at line 31 of file DatabaseUtil.h.

References card, channel, and crate.

32  {
33  bool is_less = false;
34  if (this->crate == rhs.crate && this->card == rhs.card && this->channel < rhs.channel)
35  is_less = true;
36  else if (this->crate == rhs.crate && this->card < rhs.card)
37  is_less = true;
38  else if (this->crate < rhs.crate)
39  is_less = true;
40  return is_less;
41  }

Member Data Documentation

int util::UBDaqID::card

Definition at line 28 of file DatabaseUtil.h.

Referenced by util::DatabaseUtil::LoadUBChannelMap(), and operator<().

int util::UBDaqID::channel

Definition at line 29 of file DatabaseUtil.h.

Referenced by util::DatabaseUtil::LoadUBChannelMap(), and operator<().

int util::UBDaqID::crate

Definition at line 25 of file DatabaseUtil.h.

Referenced by util::DatabaseUtil::LoadUBChannelMap(), operator<(), and ~UBDaqID().


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