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 {
18
23 public:
24
30
45 TOPProductionEventDebug(unsigned short formatType,
46 unsigned short formatVersion,
47 unsigned scrodID,
48 bool skipProcessingFlag,
49 bool injVetoFlag,
50 unsigned short PSBypass,
51 unsigned short ctime,
52 unsigned short phase,
53 unsigned short asicMask,
54 unsigned short eventQueueDepth,
55 unsigned short eventNumberByte):
56 m_formatType(formatType),
57 m_formatVersion(formatVersion),
58 m_scrodID(scrodID),
59 m_skipProcessingFlag(skipProcessingFlag),
60 m_injVetoFlag(injVetoFlag),
61 m_PSBypass(PSBypass),
62 m_ctime(ctime),
63 m_phase(phase),
64 m_asicMask(asicMask),
65 m_eventQueueDepth(eventQueueDepth),
66 m_eventNumberByte(eventNumberByte)
67 {
68
69 }
70
71
76 unsigned short getFormatType() const { return m_formatType; }
77
82 unsigned short getFormatVersion() const { return m_formatVersion; }
83
88 unsigned short getScrodID() const { return m_scrodID; }
89
95
100 bool getInjectionVetoFlag() const {return m_injVetoFlag; }
101
106 unsigned short getPSBypassMode() const {return m_PSBypass; }
107
112 unsigned short getCtime() const { return m_ctime; }
113
118 unsigned short getPhase() const { return m_phase; }
119
124 unsigned short getAsicMask() const { return m_asicMask; }
125
130 unsigned short getEventQueueDepth() const { return m_eventQueueDepth; }
131
136 unsigned short getEventNumberByte() const { return m_eventNumberByte; }
137
138
139 private:
140
141 unsigned short m_formatType = 0;
142 unsigned short m_formatVersion = 0;
143 unsigned short m_scrodID = 0;
144 bool m_skipProcessingFlag = false;
145 bool m_injVetoFlag = false;
146 unsigned short m_PSBypass = 0;
147 unsigned short m_ctime = 0;
148 unsigned short m_phase = 0;
149 unsigned short m_asicMask = 0;
150 unsigned short m_eventQueueDepth = 0;
151 unsigned short m_eventNumberByte = 0;
152
154
155 };
156
157
159} // end namespace Belle2
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.
ClassDef(TOPProductionEventDebug, 2)
ClassDef.
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.
bool getInjectionVetoFlag() const
Returns injection veto flag.
unsigned short getPSBypassMode() const
Returns PS-bypass mode information.
unsigned short m_PSBypass
PS-bypass mode information.
unsigned short m_formatType
data format type specifier
TOPProductionEventDebug()
Default constructor.
unsigned short getEventNumberByte() const
Returns least significant byte of FE event number.
bool m_injVetoFlag
injection veto flag, set if TOP vetoed the event
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.
TOPProductionEventDebug(unsigned short formatType, unsigned short formatVersion, unsigned scrodID, bool skipProcessingFlag, bool injVetoFlag, unsigned short PSBypass, unsigned short ctime, unsigned short phase, unsigned short asicMask, unsigned short eventQueueDepth, unsigned short eventNumberByte)
Full constructor.
unsigned short m_asicMask
bit field of masked ASICs (timeoutMask | setMask)
unsigned short getScrodID() const
Returns SCROD ID.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.