LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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  :
25  crate(_crate), card(_card), channel(_channel) {};
util::UBDaqID::~UBDaqID ( )
inline

Definition at line 26 of file DatabaseUtil.h.

References crate.

26 {};

Member Function Documentation

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

Definition at line 32 of file DatabaseUtil.h.

References card, channel, and crate.

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

Member Data Documentation

int util::UBDaqID::card

Definition at line 29 of file DatabaseUtil.h.

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

int util::UBDaqID::channel

Definition at line 30 of file DatabaseUtil.h.

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

int util::UBDaqID::crate

Definition at line 26 of file DatabaseUtil.h.

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


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