9#include <trg/cdc/modules/unpacker/CDCTriggerUnpackerModule.h>
10#include <framework/core/ModuleParam.templateDetails.h>
11#include <trg/cdc/dbobjects/CDCTriggerNeuroConfig.h>
20using namespace CDCTriggerUnpacker;
33using dataWord = std::bitset<wordWidth>;
57 unsigned inEventWidth,
unsigned inOffset,
58 int inHeaderSize,
const std::vector<int>& inNodeID,
const std::vector<int>& inNodeID_pcie40,
59 unsigned inNInnerMergers,
int& inDelay,
63 inHeaderSize, inNodeID, inNodeID_pcie40, inDelay, inCnttrg, inDebugLevel),
72 void reserve(
int subDetectorId, std::array<int, nFinesse> nWords,
bool pciedata)
override
84 if (subDetectorId != iNode_i) {
91 size_t entries =
arrayPtr->getEntries();
93 for (
unsigned i = 0; i < nClocks; ++i) {
96 B2DEBUG(20,
name <<
": " << nClocks <<
" clocks");
97 }
else if (entries != nClocks) {
98 B2DEBUG(20,
"Number of clocks in " <<
name <<
" conflicts with others!");
104 std::array<int*, 48> data32tab,
105 std::array<int, 48> nWords,
106 bool pciedata)
override
118 if (subDetectorId != iNode_i) {
122 B2DEBUG(20,
"The module " <<
name <<
" does not have enough data (" <<
123 nWords[iFinesse_i] <<
"). Nothing will be unpacked.");
131 auto mergerClock = (*arrayPtr)[iclock];
132 B2DEBUG(100,
"clock " << iclock);
137 dataWord word(data32tab[iFinesse_i][i + j]);
139 mergerClock->m_signal[iMerger].set(pos *
wordWidth + k, word[k]);
148 for (
int i = 0; i < std::accumulate(nMergers.begin(), nMergers.end(), 0); ++i) {
149 B2DEBUG(99, (*
arrayPtr)[0]->m_signal[i].to_string());
159 const std::string& inName,
unsigned inEventWidth,
unsigned inOffset,
160 unsigned inHeaderSize,
const std::vector<int>& inNodeID,
const std::vector<int>& inNodeID_pcie40,
161 unsigned inNumTS,
int& inDelay,
164 SubTrigger(inName, inEventWidth, inOffset /
wordWidth, inHeaderSize, inNodeID, inNodeID_pcie40,
165 inDelay, inCnttrg, inDebugLevel),
167 iTracker(
std::stoul(inName.substr(inName.length() - 1))),
189 void reserve(
int subDetectorId, std::array<int, nFinesse> nWords,
bool pciedata)
override
203 if (subDetectorId == iNode_i) {
205 for (
unsigned i = 0; i < nClocks; ++i) {
209 for (
unsigned j = 0; j < nTrackers; ++j) {
210 for (
unsigned iAxialTSF = 0; iAxialTSF < nAxialTSF; ++iAxialTSF) {
211 inputClock->
m_signal[iAxialTSF][j].fill(zero_val);
213 outputClock->
m_signal.at(j).fill(zero_val);
216 B2DEBUG(20,
name <<
": " << nClocks <<
" clocks");
217 }
else if (entries != nClocks) {
218 B2DEBUG(20,
"Number of clocks in " <<
name <<
" conflicts with others!");
232 std::array<int*, 48> data32tab,
233 std::array<int, 48> nWords,
234 bool pciedata)
override
246 if (subDetectorId != iNode_i) {
253 using halfDataWord = std::bitset<16>;
254 std::vector<halfDataWord> counters;
257 counters.emplace_back(data32tab[iFinesse_i]
259 B2DEBUG(100,
"iclock " << iclock <<
" --> " << counters.at(iclock).to_ulong() <<
" : " << std::hex << counters.at(iclock));
261 bool counter_correct_error =
false;
262 while (counters.at(1).to_ulong() - counters.at(0).to_ulong() != 4) {
263 std::rotate(counters.begin(), counters.begin() + 1, counters.end());
272 B2DEBUG(90,
"PHYSJG: clock counter rotation over one cycle: " << ccShift);
273 for (
const auto& c : counters) {
274 B2DEBUG(90,
"" << c.to_ulong() <<
" : " << std::hex << c);
276 counter_correct_error =
true;
280 if (counter_correct_error) {
281 B2DEBUG(20,
"PHYSJG: " <<
name <<
" too many clock counter rotation corrections: " << ccShift <<
" data object skipped.");
285 if (! std::is_sorted(counters.begin(), counters.end(),
286 [](halfDataWord i, halfDataWord j) {
287 return (j.to_ulong() - i.to_ulong() == 4);
289 B2DEBUG(20,
"clock counters are still out of order");
290 for (
const auto& c : counters) {
291 B2DEBUG(90,
"" << c.to_ulong());
296 B2DEBUG(15,
"shifting the first " << ccShift <<
297 " clock(s) to the end for " <<
name);
308 auto inputClock = (*inputArrayPtr)[iclock];
309 auto outputClock = (*outputArrayPtr)[iclock];
311 outputClock->m_signal.at(
iTracker).fill(zero_val);
312 B2DEBUG(90,
"unpacker clock " << iclock);
318 std::array<dataWord, 2> ccword({
319 data32tab[iFinesse_i][i + 2], data32tab[iFinesse_i][i + 3]
323 for (
unsigned iTSF = 0; iTSF < nAxialTSF; ++iTSF) {
325 inputClock->m_signal[nAxialTSF - 1 - iTSF][
iTracker].fill(zero_val);
341 for (
unsigned pos = 0; pos < clockCounterWidth; ++pos) {
342 const int j = (pos + iTSF * clockCounterWidth) /
wordWidth;
343 const int k = (pos + iTSF * clockCounterWidth) %
wordWidth;
360 inputClock->m_signal[nAxialTSF - 1 - iTSF][
iTracker][pos] =
365 for (
unsigned pos = 0; pos <
numTS * lenTS; ++pos) {
368 dataWord word(data32tab[iFinesse_i][i + j]);
372 inputClock->m_signal[nAxialTSF - 1 - iTSF][
iTracker]
373 [clockCounterWidth + pos] = std_logic(word[
wordWidth - 1 - k]);
389 unsigned TSFWidth = clockCounterWidth +
numTS * lenTS;
390 for (
unsigned pos = 0; pos < TSFWidth; ++pos) {
393 dataWord word(data32tab[iFinesse_i][i + j]);
394 inputClock->m_signal[nAxialTSF - 1 - iTSF][
iTracker][pos] =
399 display_hex(inputClock->m_signal[nAxialTSF - 1 - iTSF][
iTracker]);
408 const int outputOffset = nAxialTSF *
numTS * lenTS;
409 const int oldtrackWidth = 6;
410 for (
unsigned pos = 0; pos < 732; ++pos) {
413 dataWord word(data32tab[iFinesse_i][i + j]);
414 outputClock->m_signal.at(
iTracker).at(clockCounterWidth + oldtrackWidth + pos)
425 for (
unsigned pos = 0; pos < T2DOutputWidth; ++pos) {
426 const int j = (pos + outputOffset) /
wordWidth;
427 const int k = (pos + outputOffset) %
wordWidth;
428 dataWord word(data32tab[iFinesse_i][i + j]);
430 outputClock->m_signal.at(
iTracker).at(clockCounterWidth + pos)
432 }
catch (
const std::out_of_range& e) {
433 B2DEBUG(20,
"Out-of-range access ot outputClock->m_signal.at(iTracker).at(clockCounterWidth + pos)"
435 <<
LogVar(
"clockCounterWidth", clockCounterWidth)
442 display_hex(outputClock->m_signal.at(
iTracker));
452 const std::string& inName,
unsigned inEventWidth,
unsigned inOffset,
453 unsigned inHeaderSize,
const std::vector<int>& inNodeID,
const std::vector<int>& inNodeID_pcie40,
int& inDelay,
456 SubTrigger(inName, inEventWidth, inOffset /
wordWidth, inHeaderSize, inNodeID, inNodeID_pcie40,
457 inDelay, inCnttrg, inDebugLevel),
459 iTracker(
std::stoul(inName.substr(inName.length() - 1))),
469 void reserve(
int subDetectorId, std::array<int, nFinesse> nWords,
bool pciedata)
override
483 if (subDetectorId == iNode_i) {
485 for (
unsigned i = 0; i < nClocks; ++i) {
488 for (
unsigned j = 0; j < nTrackers; ++j) {
489 nnclock->
m_signal[j].fill(zero_val);
492 B2DEBUG(20,
name <<
": " << nClocks <<
" clocks");
493 }
else if (entries != nClocks) {
494 B2DEBUG(20,
"Number of clocks in " <<
name <<
" conflicts with others!");
500 std::array<int*, nFinesse> data32tab,
501 std::array<int, nFinesse> nWords,
502 bool pciedata)
override
514 if (subDetectorId != iNode_i) {
521 auto nnclock = (*ArrayPtr)[iclock];
522 B2DEBUG(20,
"clock " << iclock);
528 for (
unsigned pos = 0; pos < NN_WIDTH; ++pos) {
531 std::bitset<wordWidth> word(data32tab[iFinesse_i][i + j]);
535 display_hex(nnclock->m_signal[
iTracker]);
551 "whether to unpack merger data (recorded by Merger Reader / TSF)",
false);
553 "whether to unpack 2D tracker data",
false);
555 "whether to unpacker neurotrigger data",
false);
557 "flag to decode 2D finder track",
false);
559 "flag to decode input TS to 2D",
false);
561 "flag to decode neurotrigger data",
false);
571 "list of COPPER and HSLB ID of Merger reader (TSF)", defaultMergerNodeID);
579 "list of COPPER and HSLB ID of 2D tracker", defaultTracker2DNodeID);
580 NodeList defaultTracker2DNodeID_pcie40 = {
587 "list of PCIe40 ch ID of 2D tracker", defaultTracker2DNodeID_pcie40);
596 "list of COPPER and HSLB ID of neurotrigger", defaultNeuroNodeID);
597 NodeList defaultNeuroNodeID_pcie40 = {
604 "list of PCIe40 ch ID of neurotrigger", defaultNeuroNodeID_pcie40);
607 "number of words (number of bits / 32) of the B2L header", 3);
609 "Whether to align out-of-sync Belle2Link data between different sub-modules",
true);
611 "Use values stored in the payload of the ConditionsDB."
612 "This affects the output scaling of the Neurotrigger as well as the"
613 "bit configuration of its unpacker. If false, an old unpacker version with fixed scalings and old bit adresses is used.",
616 "Simulate 13 bit drift time by using 2d clock counter value.",
626 m_mergerBits.registerInDataStore(
"CDCTriggerMergerBits");
629 m_bitsTo2D.registerInDataStore(
"CDCTriggerTSFTo2DBits");
630 m_bits2DTo3D.registerInDataStore(
"CDCTrigger2DTo3DBits");
633 m_bitsNN.registerInDataStore(
"CDCTriggerNNBits");
659 for (
int iSL = 0; iSL < 9; iSL += 2) {
661 const int nInnerMergers = std::accumulate(
nMergers.begin(),
663 B2DEBUG(20,
"in: " << nInnerMergers);
679 m_n2DTS = m_dbn2DTS->getnTS();
680 int datasize_2D = 64;
683 }
else if (m_n2DTS == 15) {
687 for (
int iTracker = 0; iTracker < 4; ++iTracker) {
691 "Tracker2D" + std::to_string(iTracker), datasize_2D, 82,
m_headerSize,
700 "Neuro" + std::to_string(iTracker), 64, 0,
m_headerSize,
718 m_exp = bevt->getExperiment();
719 m_run = bevt->getRun();
722 B2FATAL(
"CDCTriggerNeuroConfig is not valid.");
724 B2DEBUG(2,
"Load Neurotrigger configuration for network " <<
m_cdctriggerneuroconfig->getNNName() <<
" from database ");
725 B2DEBUG(10, padright(
"Name", 50) << padright(
"start", 10) << padright(
"end", 10) << padright(
"offset", 10));
727 B2DEBUG(10, padright(x.name, 48) <<
": " << padright(std::to_string(x.start), 10) << padright(std::to_string(x.end),
728 10) << padright(std::to_string(x.offset), 10));
740 B2DEBUG(10, padright(
" ", 100));
741 B2DEBUG(10,
"----------------------------------------------------------------------------------------------------");
742 B2DEBUG(10, padright(
" ", 100));
744 std::string experimentstring =
"Experiment " + std::to_string(eventMetaData->getExperiment()) +
" Run " +
745 std::to_string(eventMetaData->getRun()) +
" Event " + std::to_string(eventMetaData->getEvent());
746 B2DEBUG(10, padright(experimentstring, 100));
751 B2DEBUG(20,
"exp<7: skip cdctrg unpacker for DQM");
756 B2DEBUG(99,
m_rawTriggers.getEntries() <<
" COPPERs in RawTRGs");
762 if (rawTRG.GetMaxNumOfCh(0) == 48) {
m_pciedata =
true; }
763 else if (rawTRG.GetMaxNumOfCh(0) == 4) {
m_pciedata =
false; }
764 else { B2FATAL(
"CDCTriggerUnpackerModule: Invalid value of GetMaxNumOfCh from raw data: " <<
LogVar(
"Number of ch: ", rawTRG.GetMaxNumOfCh(0))); }
766 const int subDetectorId = rawTRG.GetNodeID(0);
769 const int nEntriesRawTRG = rawTRG.GetNumEntries();
772 B2DEBUG(99,
"nEntries of rawTRG: " << nEntriesRawTRG);
773 for (
int j = 0; j < nEntriesRawTRG; ++j) {
777 std::array<int, nFinesse> nWords;
778 std::array<int*, nFinesse> data32tab;
781 for (
int iFinesse = 0; iFinesse < rawTRG.GetMaxNumOfCh(0); ++iFinesse) {
782 nWords[iFinesse] = rawTRG.GetDetectorNwords(j, iFinesse);
783 if (nWords[iFinesse] == 0) {
786 data32tab[iFinesse] = (
int*)rawTRG.GetDetectorBuffer(j, iFinesse);
791 if (trg->getHeaders(subDetectorId, data32tab, nWords,
m_pciedata)) {
792 trg->reserve(subDetectorId, nWords,
m_pciedata);
793 B2DEBUG(99,
"starting to unpack a subTrigger, subDetectorId" << std::hex << subDetectorId);
794 trg->unpack(subDetectorId, data32tab, nWords,
m_pciedata);
799 B2DEBUG(99,
"looped over entries and filled words " << nEntriesRawTRG);
801 B2DEBUG(99,
"looped over rawTriggers, unpacking 2D ");
805 for (
short iclock = 0; iclock <
m_bits2DTo3D.getEntries(); ++iclock) {
813 B2DEBUG(99,
"unpack 2D Input TS ");
815 std::array<int, 4> clockCounter2D = {0, 0, 0, 0};
816 std::array<int, 4> timeOffset2D = {0, 0, 0, 0};
818 for (
int iTracker = 0; iTracker < nTrackers; ++iTracker) {
823 std::string strInput = slv_to_bin_string(trackerData);
824 clockCounter2D[iTracker] = std::stoi(strInput.substr(0, clockCounterWidth), 0, 2);
825 int clockCounterDiff = clockCounter2D[iTracker] - clockCounter2D[0];
835 if (clockCounterDiff > 1250) {
836 clockCounterDiff -= 1280;
837 }
else if (clockCounterDiff < -1250) {
838 clockCounterDiff += 1280;
840 timeOffset2D[iTracker] = clockCounterDiff;
841 if (clockCounterDiff != 0) {
842 B2DEBUG(100,
"Adding " << clockCounterDiff <<
" clock(s) to 2D" << iTracker <<
" found time");
844 if (std::abs(clockCounterDiff) > 2) {
845 B2DEBUG(20,
"Clock counters between 2D [0," << iTracker <<
"] differ by " << clockCounterDiff <<
" clocks! (" \
846 << clockCounter2D[0] <<
", " << clockCounter2D[iTracker] <<
")");
849 for (
short iclock = 0; iclock <
m_bitsTo2D.getEntries(); ++iclock) {
850 B2DEBUG(30,
"clock " << iclock);
854 B2DEBUG(99,
"now unpack neuro ");
863 B2DEBUG(99,
" all is unpacked ##### ");
Class to hold one clock cycle of raw bit content.
SignalBus m_signal
SignalBus of the Bitstream.
static constexpr std::array< int, 9 > nMergers
data width of a single merger unit
int m_debugLevel
debug level specified in the steering file
StoreArray< RawTRG > m_rawTriggers
array containing the raw trigger data object
bool m_pciedata
PCIe40 data or copper data.
NodeList m_tracker2DNodeID_pcie40
list of (PCIe40 ID, ch ID) of 2D tracker
DBObjPtr< CDCTriggerNeuroConfig > m_cdctriggerneuroconfig
current neurotrigger config from database; used for unscaling network target
int m_headerSize
number of words (number of bits / 32) of the B2L header
int m_mergerDelay
Belle2Link delay of the merger reader.
bool m_sim13dt
bool value wether to simulate 13 bit drift time by using 2dcc
StoreArray< MergerBits > m_mergerBits
merger output bitstream
StoreArray< CDCTriggerMLPInput > m_NeuroInputs
decoded input vector for neural network
int m_NeuroCnttrg
NN cnttrg.
void initialize() override
Register input and output data.
int m_NeuroDelay
Belle2Link delay of the neurotrigger.
void event() override
convert raw data (in B2L buffer to bitstream)
NodeList m_neuroNodeID
list of (COPPER ID, HSLB ID) of neurotrigger
StoreArray< CDCTriggerUnpacker::T2DOutputBitStream > m_bits2DTo3D
bitstream of 2D output to 3D/Neuro
bool m_decodeNeuro
flag to decode neurotrigger data
void terminate() override
Delete dynamically allocated variables.
int m_2DFinderDelay
Belle2Link delay of the 2D finder.
StoreArray< CDCTriggerSegmentHit > m_TSHits
decoded track segment hit
bool m_alignFoundTime
flag to align found time in different sub-modules
bool m_unpackTracker2D
flag to unpack 2D tracker data
CDCTriggerUnpackerModule()
Constructor: Sets the description, the properties and the parameters of the module.
NodeList m_tracker2DNodeID
list of (COPPER ID, HSLB ID) of 2D tracker
StoreArray< CDCTriggerSegmentHit > m_NNInputTSHitsAll
all decoded stereo track segment hits from the neural network input
StoreArray< CDCTriggerTrack > m_2DFinderTracks
decoded 2D finder track
void beginRun() override
begin Run
bool m_decodeTSHit
flag to decode track segment
StoreArray< CDCTriggerTrack > m_NeuroTracks
decoded Neuro tracks
StoreArray< CDCTriggerTrack > m_NNInput2DFinderTracks
decoded 2D finder tracks from the neural network input
int m_2DFinderCnttrg
2D cnttrg
StoreObjPtr< BinnedEventT0 > m_ETFTime
store object for unpacked etf event time from neuro b2link
bool m_decode2DFinderInputTS
flag to decode 2D finder input TS
NodeList m_neuroNodeID_pcie40
list of (PCIe40 ID, ch ID) of neurotrigger
StoreArray< CDCTriggerUnpacker::NNBitStream > m_bitsNN
bitstream of Neuro input and output (including intermediate results)
NodeList m_mergerNodeID
list of (COPPER ID, HSLB ID) of Merger reader (TSF)
StoreArray< CDCTriggerFinderClone > m_2DFinderClones
additional information of the 2D finder track
StoreArray< CDCTriggerUnpacker::TSFOutputBitStream > m_bitsTo2D
bitstream of TSF output to 2D tracker
StoreArray< CDCTriggerSegmentHit > m_NNInputTSHits
decoded track segment hits from the neural network input
bool m_unpackNeuro
flag to unpack neurotrigger data
std::vector< SubTrigger * > m_subTrigger
vector holding the pointers to all the dynamically allocated SubTriggers
bool m_decode2DFinderTrack
flag to decode 2D finder track
bool m_useDB
bool value for wether to use the conditions database
bool m_unpackMerger
flag to unpack merger data (recorded by Merger Reader / TSF)
int getDebugLevel() const
Returns the configured debug messaging level.
LogConfig & getLogConfig()
Returns the log system configuration.
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
void setReturnValue(int value)
Sets the return value for this module as integer.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
bool registerInDataStore(DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut)
Register the object/array in the DataStore.
bool create(bool replace=false)
Create a default object in the data store.
Accessor to arrays stored in the data store.
T * appendNew()
Construct a new T object at the end of the array.
int getEntries() const
Get the number of objects in the array.
bool registerRelationTo(const StoreArray< TO > &toArray, DataStore::EDurability durability=DataStore::c_Event, DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut, const std::string &namedRelation="") const
Register a relation to the given StoreArray.
Type-safe access to single objects in the data store.
bool isValid() const
Check whether the object was created.
Class to store variables with their name which were sent to the logging service.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
static constexpr int wordWidth
width of a single word in the raw int buffer
static constexpr int mergerWidth
Merger data width.
std::vector< std::vector< int > > NodeList
Node list.
Abstract base class for different kinds of events.
unpacker for the merger reader (TSF which reads the merger output)
StoreArray< MergerBits > * arrayPtr
pointer to the merger output Bitstream
void unpack(int subDetectorId, std::array< int *, 48 > data32tab, std::array< int, 48 > nWords, bool pciedata) override
Unpack function.
unsigned nInnerMergers
number of merger units in the inner super layer than this one
Merger(StoreArray< MergerBits > *inArrayPtr, const std::string &inName, unsigned inEventWidth, unsigned inOffset, int inHeaderSize, const std::vector< int > &inNodeID, const std::vector< int > &inNodeID_pcie40, unsigned inNInnerMergers, int &inDelay, int &inCnttrg, int inDebugLevel)
Constructor.
void reserve(int subDetectorId, std::array< int, nFinesse > nWords, bool pciedata) override
reserve enough number of clocks (entries) in the Bitstream StoreArray
Neuro(StoreArray< NNBitStream > *arrPtr, const std::string &inName, unsigned inEventWidth, unsigned inOffset, unsigned inHeaderSize, const std::vector< int > &inNodeID, const std::vector< int > &inNodeID_pcie40, int &inDelay, int &inCnttrg, int inDebugLevel)
Constructor.
void unpack(int subDetectorId, std::array< int *, nFinesse > data32tab, std::array< int, nFinesse > nWords, bool pciedata) override
Unpack the Belle2Link data and fill the Bitstream.
StoreArray< NNBitStream > * ArrayPtr
Array pointer for NN.
unsigned offsetBitWidth
Offset bit width.
unsigned iTracker
Tracker board ID.
void reserve(int subDetectorId, std::array< int, nFinesse > nWords, bool pciedata) override
Calculate the number of clocks in the data, reserve that much of clocks in the Bitstream(s)
enum class SubTriggerType : unsigned char {Merger, TSF, T2D, T3D, Neuro, ETF};
int iNode_pcie40
PCIe40 id of the board.
int headerSize
Size of the B2L header in words.
unsigned offset
The starting point of the data in an event.
int debugLevel
debug level in the steering file
std::string firmwareVersion
version of the FPGA firmware
int iFinesse
FINESSE (HSLB) id) of the board.
int iFinesse_pcie40
PCIe40 ch 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.
unpacker for the 2D tracker
Tracker2D(StoreArray< TSFOutputBitStream > *inArrayPtr, StoreArray< T2DOutputBitStream > *outArrayPtr, const std::string &inName, unsigned inEventWidth, unsigned inOffset, unsigned inHeaderSize, const std::vector< int > &inNodeID, const std::vector< int > &inNodeID_pcie40, unsigned inNumTS, int &inDelay, int &inCnttrg, int inDebugLevel)
constructor
StoreArray< T2DOutputBitStream > * outputArrayPtr
pointer to the Bitstream of 2D output to 3D/Neuro
void unpack(int subDetectorId, std::array< int *, 48 > data32tab, std::array< int, 48 > nWords, bool pciedata) override
Unpack the Belle2Link data and fill the Bitstream.
unsigned offsetBitWidth
starting point of the input data in an Belle2Link event
unsigned iTracker
ID of the 2D tracker (0 to 3)
unsigned numTS
Number of TS sent to 2D (0 to 20)
StoreArray< TSFOutputBitStream > * inputArrayPtr
pointer to the Bitstream of 2D input
void reserve(int subDetectorId, std::array< int, nFinesse > nWords, bool pciedata) override
Calculate the number of clocks in the data, reserve that much of clocks in the Bitstream(s)