Belle II Software development
SVDTriggerType Class Reference

Class to store Trigger Type information. More...

#include <SVDTriggerType.h>

Public Types

typedef uint8_t baseType
 The base integer type for SVDTriggerType.
 

Public Member Functions

 SVDTriggerType (baseType type=0)
 Constructor using the unique type.
 
void setType (baseType type)
 Set the unique type.
 
baseType getType () const
 Get the unique type.
 

Private Attributes

union {
   baseType   type: 4
 Unique id. More...
 
   struct {
      baseType   bin1: 1
 
      baseType   bin2: 1
 LSB. More...
 
      baseType   bin3: 1
 
      baseType   bin4: 1
 
   }   parts1
 
   struct {
      baseType   bin12: 2
 
      baseType   bin34: 2
 first 2 bits More...
 
   }   parts2
 
m_triggerID
 how to interpret the 4 bits:
 

Detailed Description

Class to store Trigger Type information.

Definition at line 23 of file SVDTriggerType.h.

Member Typedef Documentation

◆ baseType

typedef uint8_t baseType

The base integer type for SVDTriggerType.

Definition at line 27 of file SVDTriggerType.h.

Constructor & Destructor Documentation

◆ SVDTriggerType()

SVDTriggerType ( baseType  type = 0)
inlineexplicit

Constructor using the unique type.


Definition at line 30 of file SVDTriggerType.h.

31 {
32 m_triggerID.type = type;
33 }
baseType type
Unique id.
union Belle2::SVDTriggerType::@243 m_triggerID
how to interpret the 4 bits:

Member Function Documentation

◆ getType()

baseType getType ( ) const
inline

Get the unique type.

Definition at line 39 of file SVDTriggerType.h.

39{ return m_triggerID.type; }

◆ setType()

void setType ( baseType  type)
inline

Set the unique type.

Definition at line 36 of file SVDTriggerType.h.

36{ m_triggerID.type = type; }

Member Data Documentation

◆ bin1

baseType bin1

Definition at line 74 of file SVDTriggerType.h.

◆ bin12

baseType bin12

Definition at line 80 of file SVDTriggerType.h.

◆ bin2

baseType bin2

LSB.

Definition at line 75 of file SVDTriggerType.h.

◆ bin3

baseType bin3

Definition at line 76 of file SVDTriggerType.h.

◆ bin34

baseType bin34

first 2 bits

Definition at line 81 of file SVDTriggerType.h.

◆ bin4

baseType bin4

Definition at line 77 of file SVDTriggerType.h.

◆ 

union { ... } m_triggerID

how to interpret the 4 bits:

PID0 0x0 fine-timing trigger, tfine=0 PID1 0x4 fine-timing trigger, tfine=1 PID2 0x8 fine-timing trigger, tfine=2 PID3 0xc fine-timing trigger, tfine=3 RSV0 0x2 reserve 0 RSV1 0x6 reserve 1 RSV2 0xa reserve 2 RSV3 0xe reserve 3 ECL 0x1 ECL trigger, coarse-timing CDC 0x3 CDC trigger, coarse-timing DPHY 0x5 delayed physics trigger RAND 0x7 random trigger TEST 0x9 test trigger RSV4 0xb reserve 4 RSV5 0xd reserve 5 NONE 0xf not a trigger Union to store the ID and all components in one go.

◆ type

baseType type

Unique id.

Definition at line 70 of file SVDTriggerType.h.


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