Belle II Software  release-05-02-19
TOPProductionEventDebug.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oskar Hartbrich, Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/datastore/RelationsObject.h>
14 
15 namespace Belle2 {
24  class TOPProductionEventDebug : public RelationsObject {
25  public:
26 
31  {}
32 
37  TOPProductionEventDebug(unsigned short formatType,
38  unsigned short formatVersion,
39  unsigned scrodID,
40  bool skipProcessingFlag,
41  unsigned short ctime,
42  unsigned short phase,
43  unsigned short asicMask,
44  unsigned short eventQueueDepth,
45  unsigned short eventNumberByte):
46  m_formatType(formatType),
47  m_formatVersion(formatVersion),
48  m_scrodID(scrodID),
49  m_skipProcessingFlag(skipProcessingFlag),
50  m_ctime(ctime),
51  m_phase(phase),
52  m_asicMask(asicMask),
53  m_eventQueueDepth(eventQueueDepth),
54  m_eventNumberByte(eventNumberByte)
55  {
56 
57  }
58 
59 
64  unsigned short getFormatType() const { return m_formatType; }
65 
70  unsigned short getFormatVersion() const { return m_formatVersion; }
71 
76  unsigned short getScrodID() const { return m_scrodID; }
77 
82  bool getSkipProcessingFlag() const { return m_skipProcessingFlag; }
83 
84 
89  unsigned short getCtime() const { return m_ctime; }
90 
95  unsigned short getPhase() const { return m_phase; }
96 
101  unsigned short getAsicMask() const { return m_asicMask; }
102 
107  unsigned short getEventQueueDepth() const { return m_eventQueueDepth; }
108 
113  unsigned short getEventNumberByte() const { return m_eventNumberByte; }
114 
115 
116  private:
117  unsigned short m_formatType = 0;
118  unsigned short m_formatVersion = 0;
119  unsigned short m_scrodID = 0;
120  bool m_skipProcessingFlag = false;
121  unsigned short m_ctime = 0;
122  unsigned short m_phase = 0;
123  unsigned short m_asicMask = 0;
124  unsigned short m_eventQueueDepth = 0;
125  unsigned short m_eventNumberByte = 0;
130  };
131 
132 
134 } // end namespace Belle2
Belle2::TOPProductionEventDebug::m_eventNumberByte
unsigned short m_eventNumberByte
frontend internal event number (8LSB)
Definition: TOPProductionEventDebug.h:133
Belle2::TOPProductionEventDebug::getAsicMask
unsigned short getAsicMask() const
Returns bit field of masked ASICs.
Definition: TOPProductionEventDebug.h:109
Belle2::TOPProductionEventDebug::getFormatVersion
unsigned short getFormatVersion() const
Returns data format version number.
Definition: TOPProductionEventDebug.h:78
Belle2::TOPProductionEventDebug::m_scrodID
unsigned short m_scrodID
hardware SCROD ID
Definition: TOPProductionEventDebug.h:127
Belle2::TOPProductionEventDebug::TOPProductionEventDebug
TOPProductionEventDebug()
Default constructor.
Definition: TOPProductionEventDebug.h:38
Belle2::TOPProductionEventDebug::getEventNumberByte
unsigned short getEventNumberByte() const
Returns least significant byte of FE event number.
Definition: TOPProductionEventDebug.h:121
Belle2::TOPProductionEventDebug::getFormatType
unsigned short getFormatType() const
Returns data format type number.
Definition: TOPProductionEventDebug.h:72
Belle2::TOPProductionEventDebug
Class to store debugging information about the event headers in the by the TOP production debugging r...
Definition: TOPProductionEventDebug.h:32
Belle2::TOPProductionEventDebug::getScrodID
unsigned short getScrodID() const
Returns SCROD ID.
Definition: TOPProductionEventDebug.h:84
Belle2::TOPProductionEventDebug::getSkipProcessingFlag
bool getSkipProcessingFlag() const
Returns skip processing bit.
Definition: TOPProductionEventDebug.h:90
Belle2::TOPProductionEventDebug::getEventQueueDepth
unsigned short getEventQueueDepth() const
Returns trigger FIFO queue depth.
Definition: TOPProductionEventDebug.h:115
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPProductionEventDebug::ClassDef
ClassDef(TOPProductionEventDebug, 1)
ClassDef.
Belle2::TOPProductionEventDebug::getPhase
unsigned short getPhase() const
Returns event phase.
Definition: TOPProductionEventDebug.h:103
Belle2::TOPProductionEventDebug::m_formatVersion
unsigned short m_formatVersion
data format version specifier
Definition: TOPProductionEventDebug.h:126
Belle2::TOPProductionEventDebug::m_phase
unsigned short m_phase
hardware phase
Definition: TOPProductionEventDebug.h:130
Belle2::TOPProductionEventDebug::m_skipProcessingFlag
bool m_skipProcessingFlag
skip processing bit, set if hit processing skipped due to queueDepth too high
Definition: TOPProductionEventDebug.h:128
Belle2::TOPProductionEventDebug::m_eventQueueDepth
unsigned short m_eventQueueDepth
trigger FIFO queue depth
Definition: TOPProductionEventDebug.h:132
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::TOPProductionEventDebug::m_formatType
unsigned short m_formatType
data format type specifier
Definition: TOPProductionEventDebug.h:125
Belle2::TOPProductionEventDebug::getCtime
unsigned short getCtime() const
Returns event header ctime.
Definition: TOPProductionEventDebug.h:97
Belle2::TOPProductionEventDebug::m_asicMask
unsigned short m_asicMask
bit field of masked ASICs (timeoutMask | setMask)
Definition: TOPProductionEventDebug.h:131
Belle2::TOPProductionEventDebug::m_ctime
unsigned short m_ctime
event header ctime
Definition: TOPProductionEventDebug.h:129