Belle II Software prerelease-11-00-00a
TOPUnpackerErrors.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#include <bitset>
13
14namespace Belle2 {
19
24
25 public:
26
32
37 void setErrorFlag(unsigned BS)
38 {
39 if (BS < m_errorFlags.size()) m_errorFlags.set(BS);
40 }
41
46 const std::bitset<64>& getErrorFlags() const {return m_errorFlags;}
47
48 private:
49
50 std::bitset<64> m_errorFlags;
51
53
54 };
55
57} // end namespace Belle2
58
TOPUnpackerErrors()
Default constructor.
void setErrorFlag(unsigned BS)
Sets unpacker error flag @parameter BS boardstack number within the TOP detector (0-based)
std::bitset< 64 > m_errorFlags
unpacker error flags (one per boardstack)
const std::bitset< 64 > & getErrorFlags() const
Returns unpacker error flags.
ClassDef(TOPUnpackerErrors, 1)
ClassDef.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.