Belle II Software development
|
Class to store SVD mode information. More...
#include <SVDModeByte.h>
Public Types | |
enum | { TriggerBinBits = 3 , DAQModeBits = 2 , EventTypeBits = 1 , RunTypeBits = 2 , Bits = TriggerBinBits + DAQModeBits + EventTypeBits + RunTypeBits , MaxTriggerTime = (1 << TriggerBinBits) - 1 , MaxGoodTriggerBin = 3 , MaxDAQMode = (1 << DAQModeBits) - 1 , MaxEventType = (1 << EventTypeBits) - 1 , MaxRunType = (1 << RunTypeBits) - 1 , MaxID = (1 << Bits) - 1 } |
typedef uint8_t | baseType |
The base integer type for SVDModeByte. | |
Public Member Functions | |
SVDModeByte (baseType id=c_DefaultID) | |
Constructor using the unique id. | |
SVDModeByte (baseType runType, baseType eventType, baseType daqMode, baseType triggerBin) | |
Constructor using triggerBin, daqMode etc. | |
SVDModeByte (const SVDModeByte &b) | |
Copy constructor. | |
SVDModeByte & | operator= (const SVDModeByte &b) |
Assignment operator. | |
SVDModeByte & | operator= (baseType id) |
Assignment from baseType. | |
operator baseType () const | |
Convert to baseType. | |
operator std::string () const | |
Convert to string. | |
bool | operator== (const SVDModeByte &b) const |
Check for equality. | |
baseType | getID () const |
Get the unique id. | |
baseType | getTriggerBin () const |
Get the triggerBin id. | |
baseType | getDAQMode () const |
Get the daqMode id. | |
baseType | getEventType () const |
Get the eventMode id. | |
baseType | getRunType () const |
Get the runMode id. | |
bool | hasTimeFit () const |
Do we have time fit information? | |
bool | isZeroSuppressedRun () const |
Do we have useful run type? A useful run is. | |
void | setID (baseType id) |
Set the unique id. | |
void | setTriggerBin (baseType triggerBin) |
Set the triggerBin id. | |
void | setDAQMode (baseType daqMode) |
Set the daqMode id. | |
void | setEventType (baseType eventType) |
Set the eventType id. | |
void | setRunType (baseType runType) |
Set the runType id. | |
std::string | __str__ () const |
make this type printable in python with print(vxd_id) | |
Static Public Attributes | |
static const baseType | c_DefaultID = 151 |
Default / non-informative id 10010111 = 151 Run type: zero-suppressed, 2 Event type: global run, 0 DAQ mode: 6-samples, 2 Trigger invalid 111 = 7. | |
Private Attributes | |
union { | |
baseType id: Bits | |
Unique id. More... | |
struct { | |
baseType triggerBin: TriggerBinBits | |
Trigger time id. More... | |
baseType daqMode: DAQModeBits | |
DAQ mode id. More... | |
baseType eventType: EventTypeBits | |
Event type id. More... | |
baseType runType: RunTypeBits | |
Run type id. More... | |
} parts | |
< Struct to contain all id components | |
} | m_id |
Union to store the ID and all components in one go. | |
Class to store SVD mode information.
Definition at line 69 of file SVDModeByte.h.
typedef uint8_t baseType |
The base integer type for SVDModeByte.
Definition at line 72 of file SVDModeByte.h.
anonymous enum |
Enumerator | |
---|---|
TriggerBinBits | Number of bits available to represent a triggerBin. |
DAQModeBits | Number of bits available to represent DAQ Mode. |
EventTypeBits | Number of bits available to represent event type. |
RunTypeBits | Number of bits available to represent run type. |
Bits | Total bit size of the SVDModeByte. |
MaxTriggerTime | Maximum available trigger time ID. |
MaxGoodTriggerBin | Maximum valid trigger time ID. |
MaxDAQMode | Maximum available DAQ mode ID. |
MaxEventType | Maximum available event type ID. |
MaxRunType | Maximum available run type ID. |
MaxID | Maximum value for ID. |
Definition at line 73 of file SVDModeByte.h.
|
inline |
Constructor using the unique id.
Definition at line 110 of file SVDModeByte.h.
|
inline |
Constructor using triggerBin, daqMode etc.
Definition at line 115 of file SVDModeByte.h.
|
inline |
|
inline |
make this type printable in python with print(vxd_id)
Definition at line 182 of file SVDModeByte.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Do we have time fit information?
Definition at line 150 of file SVDModeByte.h.
|
inline |
Do we have useful run type? A useful run is.
Definition at line 157 of file SVDModeByte.h.
|
inline |
|
inline |
Assignment from baseType.
Definition at line 129 of file SVDModeByte.h.
|
inline |
|
inline |
|
inline |
Set the daqMode id.
Definition at line 172 of file SVDModeByte.h.
|
inline |
Set the eventType id.
Definition at line 175 of file SVDModeByte.h.
|
inline |
|
inline |
Set the runType id.
Definition at line 178 of file SVDModeByte.h.
|
inline |
baseType daqMode |
DAQ mode id.
Definition at line 194 of file SVDModeByte.h.
baseType eventType |
Event type id.
Definition at line 196 of file SVDModeByte.h.
baseType id |
Unique id.
Definition at line 189 of file SVDModeByte.h.
baseType runType |
Run type id.
Definition at line 198 of file SVDModeByte.h.
baseType triggerBin |
Trigger time id.
Definition at line 192 of file SVDModeByte.h.