Belle II Software development
dhc_dhe_start_frame Struct Reference

DHH start frame data struct. More...

#include <PXDRawDataStructs.h>

Public Member Functions

unsigned short getEventNrLo (void) const
 get trigger_nr_lo
 
unsigned short getEventNrHi (void) const
 get trigger_nr_hi
 
unsigned short getStartFrameNr (void) const
 last DHP frame before trigger
 
unsigned short getTriggerGate (void) const
 trigger gate (updated to 8 bit, before 10!)
 
unsigned int getFixedSize (void) const
 8 words
 
void print (void) const
 print
 
unsigned int getActiveDHPMask (void) const
 get Active DHP Mask (from word0)
 
unsigned int getDHEId (void) const
 get DHE Id (from word0)
 

Public Attributes

const dhc_frame_header_word0 word0
 word0
 
const ubig16_t trigger_nr_lo
 trigger_nr_lo
 
const ubig16_t trigger_nr_hi
 trigger_nr_hi
 
const ubig16_t dhe_time_tag_lo
 dhe_time_tag_lo
 
const ubig16_t dhe_time_tag_hi
 dhe_time_tag_hi
 
const ubig16_t sfnr_offset
 sfnr_offset
 
const unsigned int crc32
 crc32
 

Detailed Description

DHH start frame data struct.

Encapsules the access for different bits and data words See Data format definitions [BELLE2-NOTE-TE-2016-009] on https://docs.belle2.org/

Definition at line 158 of file PXDRawDataStructs.h.

Member Function Documentation

◆ getActiveDHPMask()

unsigned int getActiveDHPMask ( void  ) const
inline

get Active DHP Mask (from word0)

Definition at line 196 of file PXDRawDataStructs.h.

197 {
198 return word0.getMisc() & 0xF;
199 };
const dhc_frame_header_word0 word0
word0
unsigned short getMisc(void) const
get misc

◆ getDHEId()

unsigned int getDHEId ( void  ) const
inline

get DHE Id (from word0)

Definition at line 201 of file PXDRawDataStructs.h.

202 {
203 return (word0.getMisc() >> 4) & 0x3F;
204 };

◆ getEventNrHi()

unsigned short getEventNrHi ( void  ) const
inline

get trigger_nr_hi

Definition at line 174 of file PXDRawDataStructs.h.

175 {
176 return trigger_nr_hi;
177 };
const ubig16_t trigger_nr_hi
trigger_nr_hi

◆ getEventNrLo()

unsigned short getEventNrLo ( void  ) const
inline

get trigger_nr_lo

Definition at line 169 of file PXDRawDataStructs.h.

170 {
171 return trigger_nr_lo;
172 };
const ubig16_t trigger_nr_lo
trigger_nr_lo

◆ getFixedSize()

unsigned int getFixedSize ( void  ) const
inline

8 words

Definition at line 189 of file PXDRawDataStructs.h.

190 {
191 return 16;
192 };

◆ getStartFrameNr()

unsigned short getStartFrameNr ( void  ) const
inline

last DHP frame before trigger

Definition at line 179 of file PXDRawDataStructs.h.

180 {
181 return (sfnr_offset & 0xFC00) >> 10;
182 };
const ubig16_t sfnr_offset
sfnr_offset

◆ getTriggerGate()

unsigned short getTriggerGate ( void  ) const
inline

trigger gate (updated to 8 bit, before 10!)

Definition at line 184 of file PXDRawDataStructs.h.

185 {
186 return sfnr_offset & 0xFF;
187 };

◆ print()

void print ( void  ) const

print

Definition at line 86 of file PXDRawDataStructs.cc.

87 {
88 word0.print();
89 B2DEBUG(99, "DHC Event Frame TNRLO $" << std::hex << trigger_nr_lo << " DTTLO $" << std::hex << dhe_time_tag_lo << " DTTHI $" <<
90 std::hex <<
92 << " DHEID $" << std::hex << getDHEId()
93 << " DHPMASK $" << std::hex << getActiveDHPMask()
94 << " SFNR $" << std::hex << getStartFrameNr()
95 << " OFF $" << std::hex << getTriggerGate()
96 << " CRC " << std::hex << crc32);
97 };
const ubig16_t dhe_time_tag_hi
dhe_time_tag_hi
const ubig16_t dhe_time_tag_lo
dhe_time_tag_lo
unsigned int getDHEId(void) const
get DHE Id (from word0)
unsigned short getTriggerGate(void) const
trigger gate (updated to 8 bit, before 10!)
unsigned short getStartFrameNr(void) const
last DHP frame before trigger
unsigned int getActiveDHPMask(void) const
get Active DHP Mask (from word0)

Member Data Documentation

◆ crc32

const unsigned int crc32

crc32

Definition at line 165 of file PXDRawDataStructs.h.

◆ dhe_time_tag_hi

const ubig16_t dhe_time_tag_hi

dhe_time_tag_hi

Definition at line 163 of file PXDRawDataStructs.h.

◆ dhe_time_tag_lo

const ubig16_t dhe_time_tag_lo

dhe_time_tag_lo

Definition at line 162 of file PXDRawDataStructs.h.

◆ sfnr_offset

const ubig16_t sfnr_offset

sfnr_offset

Definition at line 164 of file PXDRawDataStructs.h.

◆ trigger_nr_hi

const ubig16_t trigger_nr_hi

trigger_nr_hi

Definition at line 161 of file PXDRawDataStructs.h.

◆ trigger_nr_lo

const ubig16_t trigger_nr_lo

trigger_nr_lo

Definition at line 160 of file PXDRawDataStructs.h.

◆ word0

word0

Definition at line 159 of file PXDRawDataStructs.h.


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