32 namespace SVDRunType {
45 namespace SVDEventType {
56 namespace SVDDAQModeType {
133 operator std::string()
const;
182 std::string
__str__()
const {
return (std::string)(*this); }
204 std::ostream&
operator<<(std::ostream& out,
const SVDModeByte&
id);
Class to store SVD mode information.
std::string __str__() const
make this type printable in python with print(vxd_id)
void setTriggerBin(baseType triggerBin)
Set the triggerBin id.
@ DAQModeBits
Number of bits available to represent DAQ Mode.
@ MaxEventType
Maximum available event type ID.
@ TriggerBinBits
Number of bits available to represent a triggerBin.
@ MaxID
Maximum value for ID.
@ MaxGoodTriggerBin
Maximum valid trigger time ID.
@ MaxDAQMode
Maximum available DAQ mode ID.
@ MaxTriggerTime
Maximum available trigger time ID.
@ 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.
@ MaxRunType
Maximum available run type ID.
baseType getID() const
Get the unique id.
baseType triggerBin
Trigger time id.
void setDAQMode(baseType daqMode)
Set the daqMode id.
struct Belle2::SVDModeByte::@241::@242 parts
< Struct to contain all id components
SVDModeByte(baseType runType, baseType eventType, baseType daqMode, baseType triggerBin)
Constructor using triggerBin, daqMode etc.
baseType getRunType() const
Get the runMode id.
bool operator==(const SVDModeByte &b) const
Check for equality.
SVDModeByte & operator=(const SVDModeByte &b)
Assignment operator.
void setEventType(baseType eventType)
Set the eventType id.
baseType getEventType() const
Get the eventMode id.
baseType runType
Run type id.
union Belle2::SVDModeByte::@241 m_id
Union to store the ID and all components in one go.
void setRunType(baseType runType)
Set the runType id.
baseType daqMode
DAQ mode id.
baseType getTriggerBin() const
Get the triggerBin id.
SVDModeByte(baseType id=c_DefaultID)
Constructor using the unique id.
void setID(baseType id)
Set the unique id.
uint8_t baseType
The base integer type for SVDModeByte.
SVDModeByte & operator=(baseType id)
Assignment from baseType.
SVDModeByte(const SVDModeByte &b)
Copy constructor.
bool isZeroSuppressedRun() const
Do we have useful run type? A useful run is.
bool hasTimeFit() const
Do we have time fit information?
baseType getDAQMode() const
Get the daqMode id.
baseType eventType
Event type id.
std::ostream & operator<<(std::ostream &output, const IntervalOfValidity &iov)
static const baseType c_DefaultID
Default / non-informative id 10010111 = 151 Run type: zero-suppressed, 2 Event type: global run,...
constexpr uint8_t daq_3samples
three samples per strip
constexpr uint8_t daq_1sample
one sample per strip
constexpr uint8_t daq_6samples
six samples per strip
constexpr uint8_t global_run
global run
constexpr uint8_t local_run
local run - should never happen
constexpr uint8_t zero_suppressed
constexpr uint8_t zero_suppressed_timefit
constexpr uint8_t transparent
01.
Abstract base class for different kinds of events.