Belle II Software  release-08-01-10
SVDOnlineToOfflineMap::ChipID Class Reference

Class to hold FADC+APV25 numbers. More...

#include <SVDOnlineToOfflineMap.h>

Collaboration diagram for SVDOnlineToOfflineMap::ChipID:

Public Types

typedef unsigned short baseType
 Typedefs of the compound id type and chip number types.
 
typedef unsigned char chipNumberType
 Type of chip numbers.
 

Public Member Functions

 ChipID (baseType id=0)
 Constructor taking a compound id.
 
 ChipID (chipNumberType FADC, chipNumberType APV25)
 Constructor taking chip numbers.
 
 ChipID (const ChipID &other)
 Copy ctor.
 
ChipIDoperator= (ChipID other)
 Assignment from same type.
 
ChipIDoperator= (baseType id)
 Assignment from base type.
 
 operator baseType ()
 cast to base type
 
bool operator== (const ChipID &other) const
 equality
 
bool operator< (const ChipID &other) const
 ordering
 
baseType getID () const
 Get chip ID.
 
chipNumberType getFADC () const
 Get FADC number.
 
chipNumberType getAPV25 () const
 Get APV25 number.
 
void setID (baseType id)
 Set chip ID.
 
void setFADC (chipNumberType FADC)
 Set FADC number.
 
void setAPV25 (chipNumberType APV25)
 Set APV25 number.
 

Private Attributes

union {
   baseType   id: 8 * sizeof(baseType)
 unique id
 
   struct {
      chipNumberType   FADC: 8 * sizeof(chipNumberType)
 
      chipNumberType   APV25: 8 * sizeof(chipNumberType)
 
   }   parts
 Alternative struct representation.
 
m_id
 Union type representing the ChipID compound.
 

Detailed Description

Class to hold FADC+APV25 numbers.

Definition at line 37 of file SVDOnlineToOfflineMap.h.


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