Belle II Software development
|
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: | |
Class to store Trigger Type information.
Definition at line 23 of file SVDTriggerType.h.
typedef uint8_t baseType |
The base integer type for SVDTriggerType.
Definition at line 27 of file SVDTriggerType.h.
|
inlineexplicit |
Constructor using the unique type.
Definition at line 30 of file SVDTriggerType.h.
|
inline |
|
inline |
baseType bin1 |
Definition at line 74 of file SVDTriggerType.h.
baseType bin12 |
Definition at line 80 of file SVDTriggerType.h.
baseType bin2 |
LSB.
Definition at line 75 of file SVDTriggerType.h.
baseType bin3 |
Definition at line 76 of file SVDTriggerType.h.
baseType bin34 |
first 2 bits
Definition at line 81 of file SVDTriggerType.h.
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.
baseType type |
Unique id.
Definition at line 70 of file SVDTriggerType.h.