Belle II Software development
SVDOnlineToOfflineMap::SensorID Class Reference

Class to hold numbers related to sensor. More...

#include <SVDOnlineToOfflineMap.h>

Public Types

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

Public Member Functions

 SensorID (baseType id=0)
 Constructor taking a compound id.
 
 SensorID (sensorNumberType layer, sensorNumberType ladder, sensorNumberType dssd, bool side)
 Constructor taking sensor info.
 
SensorIDoperator= (baseType id)
 check if VxdID is the same or not
 
 operator baseType ()
 returns the VxdID
 

Private Attributes

union {
   baseType   id: 10
 unique id More...
 
   struct {
      sensorNumberType   layer: 2
 
      sensorNumberType   ladder: 4
 
      sensorNumberType   dssd: 3
 
      bool   side: 1
 
   }   PARTS
 Alternative struct representation.
 
m_ID
 Union type representing the SensorID compound.
 

Detailed Description

Class to hold numbers related to sensor.

Definition at line 92 of file SVDOnlineToOfflineMap.h.

Member Typedef Documentation

◆ baseType

typedef unsigned short baseType

Typedefs of the compound id type and chip number types.

Definition at line 95 of file SVDOnlineToOfflineMap.h.

◆ sensorNumberType

typedef unsigned short sensorNumberType

Type of chip numbers.

Definition at line 97 of file SVDOnlineToOfflineMap.h.

Constructor & Destructor Documentation

◆ SensorID() [1/2]

SensorID ( baseType  id = 0)
inlineexplicit

Constructor taking a compound id.

Definition at line 101 of file SVDOnlineToOfflineMap.h.

101{ m_ID.id = id; }
union Belle2::SVDOnlineToOfflineMap::SensorID::@252 m_ID
Union type representing the SensorID compound.

◆ SensorID() [2/2]

SensorID ( sensorNumberType  layer,
sensorNumberType  ladder,
sensorNumberType  dssd,
bool  side 
)
inline

Constructor taking sensor info.

Definition at line 103 of file SVDOnlineToOfflineMap.h.

104 { m_ID.PARTS.layer = layer; m_ID.PARTS.ladder = ladder; m_ID.PARTS.dssd = dssd; m_ID.PARTS.side = side; }

Member Function Documentation

◆ operator baseType()

operator baseType ( )
inline

returns the VxdID

Definition at line 110 of file SVDOnlineToOfflineMap.h.

110{ return m_ID.id; }

◆ operator=()

SensorID & operator= ( baseType  id)
inline

check if VxdID is the same or not

Definition at line 107 of file SVDOnlineToOfflineMap.h.

107{ m_ID.id = id; return *this; }

Member Data Documentation

◆ dssd

Definition at line 122 of file SVDOnlineToOfflineMap.h.

◆ id

unique id

Definition at line 117 of file SVDOnlineToOfflineMap.h.

◆ ladder

Definition at line 121 of file SVDOnlineToOfflineMap.h.

◆ layer

Definition at line 120 of file SVDOnlineToOfflineMap.h.

◆ side

bool side

Definition at line 123 of file SVDOnlineToOfflineMap.h.


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