Belle II Software development
|
Class to hold one clock cycle of raw bit content. More...
#include <Bitstream.h>
Public Member Functions | |
Bitstream () | |
default constructor | |
Bitstream (SignalBus bus) | |
constructor from Signal Bus | |
~Bitstream () | |
destructor, empty because we don't allocate memory explicitly. | |
const SignalBus & | signal () |
accessors | |
Protected Member Functions | |
ClassDef (Bitstream, 4) | |
Needed to make the ROOT object storable. | |
Protected Attributes | |
SignalBus | m_signal |
SignalBus of the Bitstream. | |
Friends | |
class | CDCTriggerUnpackerModule |
struct | Merger |
struct | Tracker2D |
struct | Neuro |
Class to hold one clock cycle of raw bit content.
It is intended to be put into a StoreArray, where each element contains the data in one clock cycle.
The recommended type of the signal bus is nested std::array<char, N> or std::array<std::bitset, N> (although it can be virtually any container).
To add a signal bus with a new type (or dimension), declare the type in linkdef.h, e.g.
#pragma link C++ class Belle2::Bitstream<array<array<array<char, 429>, 4>, 5> >+
and then it can be used in a module.
using namespace Belle2; using std::array; using signalBus = array<array<array<char, 429>, 4>, 5>; StoreArray<Bitstream<signalBus> > bitsFromTSFTo2D;
Definition at line 54 of file Bitstream.h.
|
inline |
|
inlineexplicit |
|
inline |
destructor, empty because we don't allocate memory explicitly.
Definition at line 67 of file Bitstream.h.
|
inline |
|
friend |
Definition at line 55 of file Bitstream.h.
|
friend |
Definition at line 56 of file Bitstream.h.
|
friend |
Definition at line 58 of file Bitstream.h.
|
friend |
Definition at line 57 of file Bitstream.h.
|
protected |
SignalBus of the Bitstream.
Definition at line 77 of file Bitstream.h.