Belle II Software development
CDCChannelMap Class Reference

Database object of CDC channel map. More...

#include <CDCChannelMap.h>

Inheritance diagram for CDCChannelMap:

Public Member Functions

 CDCChannelMap ()
 Default constructor.
 
 CDCChannelMap (unsigned short slayer, unsigned short layer, unsigned short wire, unsigned short board, unsigned short channel)
 Constructor.
 
unsigned getBoardID () const
 Get Board ID.
 
unsigned getBoardChannel () const
 Get channel.
 
unsigned short getISuperLayer () const
 Get super layer ID.
 
unsigned short getILayer () const
 Get layer ID.
 
unsigned short getIWire () const
 Get wire ID.
 

Private Member Functions

 ClassDef (CDCChannelMap, 2)
 ClassDef.
 

Private Attributes

unsigned short m_wire
 Wire ID.
 
unsigned short m_board
 Board ID.
 
unsigned short m_channel
 Channel ID.
 

Detailed Description

Database object of CDC channel map.

Definition at line 22 of file CDCChannelMap.h.

Constructor & Destructor Documentation

◆ CDCChannelMap() [1/2]

CDCChannelMap ( )
inline

Default constructor.

Definition at line 28 of file CDCChannelMap.h.

28 :
29 m_wire(65535), m_board(0), m_channel(0)
30 {}
unsigned short m_wire
Wire ID.
Definition: CDCChannelMap.h:79
unsigned short m_channel
Channel ID.
Definition: CDCChannelMap.h:81
unsigned short m_board
Board ID.
Definition: CDCChannelMap.h:80

◆ CDCChannelMap() [2/2]

CDCChannelMap ( unsigned short  slayer,
unsigned short  layer,
unsigned short  wire,
unsigned short  board,
unsigned short  channel 
)
inline

Constructor.

Definition at line 35 of file CDCChannelMap.h.

37 :
38 m_wire(WireID(slayer, layer, wire).getEWire()),
39 m_board(board), m_channel(channel)
40 {
41
42 }

Member Function Documentation

◆ getBoardChannel()

unsigned getBoardChannel ( ) const
inline

Get channel.

Definition at line 52 of file CDCChannelMap.h.

52{return m_channel;}

◆ getBoardID()

unsigned getBoardID ( ) const
inline

Get Board ID.

Definition at line 47 of file CDCChannelMap.h.

47{return m_board;}

◆ getILayer()

unsigned short getILayer ( ) const
inline

Get layer ID.

Definition at line 65 of file CDCChannelMap.h.

66 {
67 return ((m_wire % 4096) / 512);
68 }

◆ getISuperLayer()

unsigned short getISuperLayer ( ) const
inline

Get super layer ID.

Definition at line 57 of file CDCChannelMap.h.

58 {
59 return (m_wire / 4096);
60 }

◆ getIWire()

unsigned short getIWire ( ) const
inline

Get wire ID.

Definition at line 73 of file CDCChannelMap.h.

74 {
75 return (m_wire % 512);
76 }

Member Data Documentation

◆ m_board

unsigned short m_board
private

Board ID.

Definition at line 80 of file CDCChannelMap.h.

◆ m_channel

unsigned short m_channel
private

Channel ID.

Definition at line 81 of file CDCChannelMap.h.

◆ m_wire

unsigned short m_wire
private

Wire ID.

Definition at line 79 of file CDCChannelMap.h.


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