Belle II Software development
PXDDAQDHPStatus.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
12#include <TClass.h>
13
14namespace Belle2 {
27 class PXDDAQDHPStatus final {
28 public:
29
32
37 explicit PXDDAQDHPStatus(uint8_t chipid, uint16_t fn) : m_chipID(chipid), m_frameNr(fn) {}
38
40 virtual ~PXDDAQDHPStatus() {};
41
43 void setChipID(uint8_t chipid) { m_chipID = chipid;};
45 uint8_t getChipID(void) const { return m_chipID;};
46
48 void setFrameNr(uint16_t fn) { m_frameNr = fn;};
50 uint16_t getFrameNr(void) const { return m_frameNr;};
51
53 void setTruncated(void) { m_truncated = true;};
55 bool getTruncated(void) { return m_truncated;};
56
57 private:
58
59 uint8_t m_chipID{0};
60 uint16_t m_frameNr{0};
61 bool m_truncated{false};
65
66 }; // class PXDDAQDHPStatus
67
69} // end namespace Belle2
The PXD DAQ DHP Status class.
bool getTruncated(void)
get Truncation
ClassDef(PXDDAQDHPStatus, 2)
necessary for ROOT
uint16_t getFrameNr(void) const
get Readout Frame number
void setChipID(uint8_t chipid)
Set Chip ID of DHP.
PXDDAQDHPStatus()
Default constructor for the ROOT IO.
bool m_truncated
DHE reports truncated frame.
void setFrameNr(uint16_t fn)
set Readout Frame number
virtual ~PXDDAQDHPStatus()
destructor
PXDDAQDHPStatus(uint8_t chipid, uint16_t fn)
constructor setting the error mask, dhcid, raw and reduced data counters, ...
uint8_t m_chipID
Chip ID as delivered by DAQ.
uint8_t getChipID(void) const
Get Chip ID of DHP.
void setTruncated(void)
set Truncation
uint16_t m_frameNr
Frame number (low bits) from DHP header.
Abstract base class for different kinds of events.