| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::RpcHardwareId Class Reference

#include <Hardware.h>

Inheritance diagram for DayaBay::RpcHardwareId:

[legend]
Collaboration diagram for DayaBay::RpcHardwareId:
[legend]
List of all members.

Public Member Functions

 RpcHardwareId ()
 RpcHardwareId (int panelId, int layer, int strip)
 RpcHardwareId (int data)
virtual ~RpcHardwareId ()
RpcHardwareIdoperator= (const RpcHardwareId &id)
int panelId () const
int layer () const
int strip () const
int fullPackedData () const
Hardware::Hardware_t type () const
int id () const
bool operator== (const HardwareId &rhs) const
bool operator!= (const HardwareId &rhs) const

Protected Attributes

unsigned int m_data

Detailed Description

Definition at line 107 of file Hardware.h.


Constructor & Destructor Documentation

DayaBay::RpcHardwareId::RpcHardwareId (  )  [inline]

Definition at line 109 of file Hardware.h.

00109 : HardwareId(0) {}

DayaBay::RpcHardwareId::RpcHardwareId ( int  panelId,
int  layer,
int  strip 
) [inline]

Definition at line 110 of file Hardware.h.

00110                                                      : 
00111       HardwareId((0x000000ff & panelId)<<16 |
00112                  (0x000000ff & layer)<<8 |
00113                  (0x000000ff & strip), 
00114                  Hardware::kRpc) {}

DayaBay::RpcHardwareId::RpcHardwareId ( int  data  )  [inline]

Definition at line 115 of file Hardware.h.

00115 : HardwareId(data) {}

virtual DayaBay::RpcHardwareId::~RpcHardwareId (  )  [inline, virtual]

Definition at line 116 of file Hardware.h.

00116 {}


Member Function Documentation

RpcHardwareId& DayaBay::RpcHardwareId::operator= ( const RpcHardwareId id  )  [inline]

Definition at line 118 of file Hardware.h.

00119       { m_data = id.m_data; return *this; }

int DayaBay::RpcHardwareId::panelId (  )  const [inline]

Definition at line 122 of file Hardware.h.

00122 { return (m_data & 0x00ff0000) >> 16; }

int DayaBay::RpcHardwareId::layer (  )  const [inline]

Definition at line 125 of file Hardware.h.

00125 { return (m_data & 0x0000ff00) >> 8; }

int DayaBay::RpcHardwareId::strip (  )  const [inline]

Definition at line 128 of file Hardware.h.

00128 { return (m_data & 0x000000ff); }

int DayaBay::HardwareId::fullPackedData (  )  const [inline, inherited]

Definition at line 60 of file Hardware.h.

00060 { return m_data; }

Hardware::Hardware_t DayaBay::HardwareId::type (  )  const [inline, inherited]

Definition at line 63 of file Hardware.h.

00064       { return (Hardware::Hardware_t)((m_data&0xff000000)>>24); }

int DayaBay::HardwareId::id (  )  const [inline, inherited]

Reimplemented in DayaBay::PmtHardwareId.

Definition at line 66 of file Hardware.h.

00066 { return (m_data & 0x00ffffff); }

bool DayaBay::HardwareId::operator== ( const HardwareId rhs  )  const [inline, inherited]

Definition at line 69 of file Hardware.h.

00069 { return this->m_data == rhs.m_data; }

bool DayaBay::HardwareId::operator!= ( const HardwareId rhs  )  const [inline, inherited]

Definition at line 70 of file Hardware.h.

00070 { return !(*this == rhs); }


Member Data Documentation

unsigned int DayaBay::HardwareId::m_data [protected, inherited]

Definition at line 73 of file Hardware.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:14:49 2011 for Conventions by doxygen 1.4.7