Belle II Software development
B2LDataField Struct Reference

Public Member Functions

 B2LDataField (StoreArray< CDCTriggerUnpacker::NNBitStream > *bitsNN, unsigned foundtime, unsigned iTracker, const CDCTriggerNeuroConfig::B2FormatLine &b2line)
 

Public Attributes

std::string data
 
std::string name
 

Detailed Description

Definition at line 289 of file Unpacker.h.

Constructor & Destructor Documentation

◆ B2LDataField()

B2LDataField ( StoreArray< CDCTriggerUnpacker::NNBitStream > *  bitsNN,
unsigned  foundtime,
unsigned  iTracker,
const CDCTriggerNeuroConfig::B2FormatLine b2line 
)
inline

Definition at line 290 of file Unpacker.h.

295 {
296 if (int(b2line.offset + foundtime) >= 0 &&
297 int(b2line.offset + foundtime) < bitsNN->getEntries()) {
298
299 NNBitStream* bitsn = (*bitsNN)[foundtime + b2line.offset];
300
301 if (int(slv_to_bin_string(bitsn->signal()[iTracker]).size()) >= (NN_WIDTH - b2line.start)) {
302 data = slv_to_bin_string(bitsn->signal()[iTracker]).substr(NN_WIDTH - 1 - b2line.end, b2line.end - b2line.start + 1);
303 } else {
304 data = "";
305 }
306 } else {
307 data = "";
308 }
309
310
311 name = b2line.name;
312 }
std::string slv_to_bin_string(std::array< char, N > signal, bool padding=false)
Transform into string.
Definition: Cosim.h:64

Member Data Documentation

◆ data

std::string data

Definition at line 313 of file Unpacker.h.

◆ name

std::string name

Definition at line 314 of file Unpacker.h.


The documentation for this struct was generated from the following file: