unpacker for the 2D tracker
More...
|
| Tracker2D (StoreArray< TSFOutputBitStream > *inArrayPtr, StoreArray< T2DOutputBitStream > *outArrayPtr, const std::string &inName, unsigned inEventWidth, unsigned inOffset, unsigned inHeaderSize, const std::vector< int > &inNodeID, unsigned inNumTS, int &inDelay, int &inCnttrg, int inDebugLevel) |
| constructor
|
|
void | reserve (int subDetectorId, std::array< int, nFinesse > nWords) override |
| Calculate the number of clocks in the data, reserve that much of clocks in the Bitstream(s) More...
|
|
void | unpack (int subDetectorId, std::array< int *, 4 > data32tab, std::array< int, 4 > nWords) override |
| Unpack the Belle2Link data and fill the Bitstream. More...
|
|
virtual void | unpack (int, std::array< int *, nFinesse >, std::array< int, nFinesse >) |
| Unpack the Belle2Link data and fill the Bitstream. More...
|
|
virtual int | getHeaders (int subDetectorId, std::array< int *, 4 > data32tab, std::array< int, 4 > nWords) |
| Get the Belle2Link header information. More...
|
|
unpacker for the 2D tracker
Definition at line 134 of file CDCTriggerUnpackerModule.cc.
◆ getHeaders()
virtual int getHeaders |
( |
int |
subDetectorId, |
|
|
std::array< int *, 4 > |
data32tab, |
|
|
std::array< int, 4 > |
nWords |
|
) |
| |
|
inlinevirtualinherited |
Get the Belle2Link header information.
- Parameters
-
subDetectorId | COPPER id of the current data |
data32tab | list of pointers to the Belle2Link data buffers |
nWords | Number of words of each FINESSE in the COPPER |
- Returns
- 1 if there are data other than the header
Definition at line 128 of file CDCTriggerUnpackerModule.h.
◆ reserve()
void reserve |
( |
int |
subDetectorId, |
|
|
std::array< int, nFinesse > |
nWords |
|
) |
| |
|
inlineoverridevirtual |
Calculate the number of clocks in the data, reserve that much of clocks in the Bitstream(s)
- Parameters
-
subDetectorId | COPPER id of the current data |
nWords | Number of words of each FINESSE in the COPPER |
Reimplemented from SubTrigger.
Definition at line 168 of file CDCTriggerUnpackerModule.cc.
172 if (subDetectorId ==
iNode) {
174 for (
unsigned i = 0; i < nClocks; ++i) {
178 for (
unsigned j = 0; j < nTrackers; ++j) {
179 for (
unsigned iAxialTSF = 0; iAxialTSF < nAxialTSF; ++iAxialTSF) {
180 inputClock->
m_signal[iAxialTSF][j].fill(zero_val);
182 outputClock->
m_signal[j].fill(zero_val);
185 B2DEBUG(20,
name <<
": " << nClocks <<
" clocks");
186 }
else if (entries != nClocks) {
187 B2DEBUG(20,
"Number of clocks in " <<
name <<
" conflicts with others!");
Class to hold one clock cycle of raw bit content.
SignalBus m_signal
SignalBus of the Bitstream.
T * appendNew()
Construct a new T object at the end of the array.
int getEntries() const
Get the number of objects in the array.
int headerSize
Size of the B2L header in words.
int iFinesse
FINESSE (HSLB) id) of the board.
std::string name
Name of the UT3.
unsigned eventWidth
Size of an event in the Belle2Link data in 32-bit words.
int iNode
COPPER id of the board.
StoreArray< T2DOutputBitStream > * outputArrayPtr
pointer to the Bitstream of 2D output to 3D/Neuro
StoreArray< TSFOutputBitStream > * inputArrayPtr
pointer to the Bitstream of 2D input
◆ unpack() [1/2]
void unpack |
( |
int |
subDetectorId, |
|
|
std::array< int *, 4 > |
data32tab, |
|
|
std::array< int, 4 > |
nWords |
|
) |
| |
|
inlineoverride |
Unpack the Belle2Link data and fill the Bitstream.
- Parameters
-
subDetectorId | COPPER id of the current data |
data32tab | list of pointers to the Belle2Link data buffers |
nWords | Number of words of each FINESSE in the COPPER |
Definition at line 201 of file CDCTriggerUnpackerModule.cc.
◆ unpack() [2/2]
virtual void unpack |
( |
int |
, |
|
|
std::array< int *, nFinesse > |
, |
|
|
std::array< int, nFinesse > |
|
|
) |
| |
|
inlinevirtualinherited |
Unpack the Belle2Link data and fill the Bitstream.
- Parameters
-
subDetectorId | COPPER id of the current data |
data32tab | list of pointers to the Belle2Link data buffers |
nWords | Number of words of each FINESSE in the COPPER |
Reimplemented in Neuro.
Definition at line 113 of file CDCTriggerUnpackerModule.h.
The documentation for this struct was generated from the following file: