LDMX Software
hcal::PolarfireEventHeader Struct Reference

Public Member Functions

void board (framework::Event &event, const std::string &prefix)
 board us onto the bus with the input prefix
 

Public Attributes

int version_
 version of daq format
 
int fpga_
 id for polarfire
 
int nsamples_
 number of samples
 
int spill_
 spill number
 
int ticks_
 number of 5MHz ticks since spill
 
int bunch_
 bunch number according to this polarfire
 
int number_
 event number according to this polarfire
 
int run_
 run number according to this polarfire
 
int dd_
 day of month run started
 
int month_
 month run started
 
int hh_
 hour run started
 
int mm_
 minute run started
 
std::vector< bool > good_bxheader_
 quality of link headers
 
std::vector< bool > good_trailer_
 quality of link trailers
 

Detailed Description

Definition at line 18 of file HcalRawDecoder.h.

Member Function Documentation

◆ board()

void hcal::PolarfireEventHeader::board ( framework::Event & event,
const std::string & prefix )

board us onto the bus with the input prefix

Struct to help interface between raw decoder read function and putting stuff onto event bus.

Definition at line 55 of file HcalRawDecoder.cxx.

56 {
57 {
58 event.add(prefix + "Version", version_);
59 event.add(prefix + "FPGA", fpga_);
60 event.add(prefix + "NSamples", nsamples_);
61 event.add(prefix + "Spill", spill_);
62 event.add(prefix + "Ticks", ticks_);
63 event.add(prefix + "Bunch", bunch_);
64 event.add(prefix + "Number", number_);
65 event.add(prefix + "Run", run_);
66 event.add(prefix + "DD", dd_);
67 event.add(prefix + "MM", month_);
68 event.add(prefix + "hh", hh_);
69 event.add(prefix + "mm", mm_);
70 event.add(prefix + "GoodLinkHeader", good_bxheader_);
71 event.add(prefix + "GoodLinkTrailer", good_trailer_);
72 }
73}
int ticks_
number of 5MHz ticks since spill
int version_
version of daq format
std::vector< bool > good_trailer_
quality of link trailers
int dd_
day of month run started
int number_
event number according to this polarfire
int mm_
minute run started
int fpga_
id for polarfire
int nsamples_
number of samples
int bunch_
bunch number according to this polarfire
int hh_
hour run started
int month_
month run started
int run_
run number according to this polarfire
std::vector< bool > good_bxheader_
quality of link headers

References bunch_, dd_, fpga_, good_bxheader_, good_trailer_, hh_, mm_, month_, nsamples_, number_, run_, spill_, ticks_, and version_.

Referenced by hcal::HcalRawDecoder::produce().

Member Data Documentation

◆ bunch_

int hcal::PolarfireEventHeader::bunch_

bunch number according to this polarfire

Definition at line 30 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ dd_

int hcal::PolarfireEventHeader::dd_

day of month run started

Definition at line 36 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ fpga_

int hcal::PolarfireEventHeader::fpga_

id for polarfire

Definition at line 22 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ good_bxheader_

std::vector<bool> hcal::PolarfireEventHeader::good_bxheader_

quality of link headers

Definition at line 44 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ good_trailer_

std::vector<bool> hcal::PolarfireEventHeader::good_trailer_

quality of link trailers

Definition at line 46 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ hh_

int hcal::PolarfireEventHeader::hh_

hour run started

Definition at line 40 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ mm_

int hcal::PolarfireEventHeader::mm_

minute run started

Definition at line 42 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ month_

int hcal::PolarfireEventHeader::month_

month run started

Definition at line 38 of file HcalRawDecoder.h.

Referenced by board().

◆ nsamples_

int hcal::PolarfireEventHeader::nsamples_

number of samples

Definition at line 24 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ number_

int hcal::PolarfireEventHeader::number_

event number according to this polarfire

Definition at line 32 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ run_

int hcal::PolarfireEventHeader::run_

run number according to this polarfire

Definition at line 34 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ spill_

int hcal::PolarfireEventHeader::spill_

spill number

Definition at line 26 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ ticks_

int hcal::PolarfireEventHeader::ticks_

number of 5MHz ticks since spill

Definition at line 28 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().

◆ version_

int hcal::PolarfireEventHeader::version_

version of daq format

Definition at line 20 of file HcalRawDecoder.h.

Referenced by board(), and hcal::HcalRawDecoder::read().


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