Belle II Software  release-05-01-25
SubTrigger Struct Reference

enum class SubTriggerType : unsigned char {Merger, TSF, T2D, T3D, Neuro, ETF}; More...

#include <CDCTriggerUnpackerModule.h>

Inheritance diagram for SubTrigger:
Collaboration diagram for SubTrigger:

Public Member Functions

 SubTrigger (std::string inName, unsigned inEventWidth, unsigned inOffset, int inHeaderSize, std::vector< int > inNodeID, int &inDelay, int &inCnttrg, int inDebugLevel=0)
 constructor
 
virtual void reserve (int, std::array< int, nFinesse >)
 Calculate the number of clocks in the data, reserve that much of clocks in the Bitstream(s) 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...
 
virtual ~SubTrigger ()
 destructor
 

Public Attributes

std::string name
 Name of the UT3.
 
unsigned eventWidth
 Size of an event in the Belle2Link data in 32-bit words.
 
unsigned offset
 The starting point of the data in an event.
 
int headerSize
 Size of the B2L header in words.
 
int iNode
 COPPER id of the board.
 
int iFinesse
 FINESSE (HSLB) id) of the board.
 
std::string firmwareType
 type of the FPGA firmware
 
std::string firmwareVersion
 version of the FPGA firmware
 
int & delay
 Reference to the variable of its Belle2Link delay.
 
int & cnttrg
 counter of trgger signal, total 32 bits, the 20 LSBs recorded in the event header
 
int debugLevel
 debug level in the steering file
 

Detailed Description

enum class SubTriggerType : unsigned char {Merger, TSF, T2D, T3D, Neuro, ETF};

Definition at line 66 of file CDCTriggerUnpackerModule.h.

Member Function Documentation

◆ getHeaders()

virtual int getHeaders ( int  subDetectorId,
std::array< int *, 4 >  data32tab,
std::array< int, 4 >  nWords 
)
inlinevirtual

Get the Belle2Link header information.

Parameters
subDetectorIdCOPPER id of the current data
data32tablist of pointers to the Belle2Link data buffers
nWordsNumber of words of each FINESSE in the COPPER
Returns
1 if there are data other than the header

Definition at line 138 of file CDCTriggerUnpackerModule.h.

◆ reserve()

virtual void reserve ( int  ,
std::array< int, nFinesse  
)
inlinevirtual

Calculate the number of clocks in the data, reserve that much of clocks in the Bitstream(s)

Parameters
subDetectorIdCOPPER id of the current data
nWordsNumber of words of each FINESSE in the COPPER

Reimplemented in Neuro, Tracker2D, and Merger.

Definition at line 112 of file CDCTriggerUnpackerModule.h.

◆ unpack()

virtual void unpack ( int  ,
std::array< int *, nFinesse ,
std::array< int, nFinesse  
)
inlinevirtual

Unpack the Belle2Link data and fill the Bitstream.

Parameters
subDetectorIdCOPPER id of the current data
data32tablist of pointers to the Belle2Link data buffers
nWordsNumber of words of each FINESSE in the COPPER

Reimplemented in Neuro.

Definition at line 123 of file CDCTriggerUnpackerModule.h.


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