Belle II Software development
TOPProductionEventDebug.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/datastore/RelationsObject.h>
12
13namespace Belle2 {
23 public:
24
29 {}
30
43 TOPProductionEventDebug(unsigned short formatType,
44 unsigned short formatVersion,
45 unsigned scrodID,
46 bool skipProcessingFlag,
47 unsigned short ctime,
48 unsigned short phase,
49 unsigned short asicMask,
50 unsigned short eventQueueDepth,
51 unsigned short eventNumberByte):
52 m_formatType(formatType),
53 m_formatVersion(formatVersion),
54 m_scrodID(scrodID),
55 m_skipProcessingFlag(skipProcessingFlag),
56 m_ctime(ctime),
57 m_phase(phase),
58 m_asicMask(asicMask),
59 m_eventQueueDepth(eventQueueDepth),
60 m_eventNumberByte(eventNumberByte)
61 {
62
63 }
64
65
70 unsigned short getFormatType() const { return m_formatType; }
71
76 unsigned short getFormatVersion() const { return m_formatVersion; }
77
82 unsigned short getScrodID() const { return m_scrodID; }
83
89
90
95 unsigned short getCtime() const { return m_ctime; }
96
101 unsigned short getPhase() const { return m_phase; }
102
107 unsigned short getAsicMask() const { return m_asicMask; }
108
113 unsigned short getEventQueueDepth() const { return m_eventQueueDepth; }
114
119 unsigned short getEventNumberByte() const { return m_eventNumberByte; }
120
121
122 private:
123 unsigned short m_formatType = 0;
124 unsigned short m_formatVersion = 0;
125 unsigned short m_scrodID = 0;
126 bool m_skipProcessingFlag = false;
127 unsigned short m_ctime = 0;
128 unsigned short m_phase = 0;
129 unsigned short m_asicMask = 0;
130 unsigned short m_eventQueueDepth = 0;
131 unsigned short m_eventNumberByte = 0;
136 };
137
138
140} // end namespace Belle2
Defines interface for accessing relations of objects in StoreArray.
Class to store debugging information about the event headers in the by the TOP production debugging r...
ClassDef(TOPProductionEventDebug, 1)
ClassDef.
unsigned short m_eventNumberByte
frontend internal event number (8LSB)
unsigned short m_scrodID
hardware SCROD ID
unsigned short getFormatType() const
Returns data format type number.
bool getSkipProcessingFlag() const
Returns skip processing bit.
bool m_skipProcessingFlag
skip processing bit, set if hit processing skipped due to queueDepth too high
unsigned short getAsicMask() const
Returns bit field of masked ASICs.
TOPProductionEventDebug(unsigned short formatType, unsigned short formatVersion, unsigned scrodID, bool skipProcessingFlag, unsigned short ctime, unsigned short phase, unsigned short asicMask, unsigned short eventQueueDepth, unsigned short eventNumberByte)
Full constructor.
unsigned short m_formatType
data format type specifier
TOPProductionEventDebug()
Default constructor.
unsigned short getEventNumberByte() const
Returns least significant byte of FE event number.
unsigned short getEventQueueDepth() const
Returns trigger FIFO queue depth.
unsigned short m_ctime
event header ctime
unsigned short getCtime() const
Returns event header ctime.
unsigned short m_formatVersion
data format version specifier
unsigned short m_eventQueueDepth
trigger FIFO queue depth
unsigned short m_phase
hardware phase
unsigned short getFormatVersion() const
Returns data format version number.
unsigned short getPhase() const
Returns event phase.
unsigned short m_asicMask
bit field of masked ASICs (timeoutMask | setMask)
unsigned short getScrodID() const
Returns SCROD ID.
Abstract base class for different kinds of events.