DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::detdataformats::fwtp::RawTp Struct Reference

#include <RawTp.hpp>

Collaboration diagram for dunedaq::detdataformats::fwtp::RawTp:
[legend]

Public Member Functions

 RawTp ()
 
void set_nhits (int nhits)
 
const TpHeaderget_tp_header () const
 
TpHeaderget_tp_header ()
 
size_t get_header_size ()
 
size_t get_frame_size ()
 
uint64_t get_timestamp () const
 
uint64_t get_timestamp ()
 
void set_timestamp (const uint64_t ts)
 
int get_nhits ()
 
uint16_t get_padding_3 ()
 

Public Attributes

TpHeader m_head
 
TpData m_blocks []
 

Private Attributes

int m_nhits
 

Detailed Description

Definition at line 177 of file RawTp.hpp.

Constructor & Destructor Documentation

◆ RawTp()

dunedaq::detdataformats::fwtp::RawTp::RawTp ( )
inline

Definition at line 179 of file RawTp.hpp.

180 {
181 m_nhits = 1;
182 }

Member Function Documentation

◆ get_frame_size()

size_t dunedaq::detdataformats::fwtp::RawTp::get_frame_size ( )
inline

Definition at line 198 of file RawTp.hpp.

199 {
200 return sizeof(TpHeader) + get_nhits() * sizeof(TpData);
201 }

◆ get_header_size()

size_t dunedaq::detdataformats::fwtp::RawTp::get_header_size ( )
inline

Definition at line 194 of file RawTp.hpp.

195 {
196 return sizeof(TpHeader);
197 }

◆ get_nhits()

int dunedaq::detdataformats::fwtp::RawTp::get_nhits ( )
inline

Definition at line 216 of file RawTp.hpp.

◆ get_padding_3()

uint16_t dunedaq::detdataformats::fwtp::RawTp::get_padding_3 ( )
inline

Definition at line 220 of file RawTp.hpp.

221 {
222 return m_head.get_padding_3();
223 }

◆ get_timestamp() [1/2]

uint64_t dunedaq::detdataformats::fwtp::RawTp::get_timestamp ( )
inline

Definition at line 207 of file RawTp.hpp.

208 {
209 return m_head.get_timestamp();
210 }

◆ get_timestamp() [2/2]

uint64_t dunedaq::detdataformats::fwtp::RawTp::get_timestamp ( ) const
inline

Definition at line 203 of file RawTp.hpp.

204 {
205 return m_head.get_timestamp();
206 }

◆ get_tp_header() [1/2]

TpHeader * dunedaq::detdataformats::fwtp::RawTp::get_tp_header ( )
inline

Definition at line 192 of file RawTp.hpp.

192{ return &m_head; }

◆ get_tp_header() [2/2]

const TpHeader * dunedaq::detdataformats::fwtp::RawTp::get_tp_header ( ) const
inline

Definition at line 191 of file RawTp.hpp.

191{ return &m_head; }

◆ set_nhits()

void dunedaq::detdataformats::fwtp::RawTp::set_nhits ( int nhits)
inline

Definition at line 185 of file RawTp.hpp.

185 {
186 m_nhits = nhits;
187 m_head.set_nhits(nhits);
188 }

◆ set_timestamp()

void dunedaq::detdataformats::fwtp::RawTp::set_timestamp ( const uint64_t ts)
inline

Definition at line 211 of file RawTp.hpp.

212 {
214 }
PDS Frame with unphysical timestamp detected with ts
void set_timestamp(const uint64_t new_timestamp)
Definition RawTp.hpp:47

Member Data Documentation

◆ m_blocks

TpData dunedaq::detdataformats::fwtp::RawTp::m_blocks[]

Definition at line 232 of file RawTp.hpp.

◆ m_head

TpHeader dunedaq::detdataformats::fwtp::RawTp::m_head

Definition at line 229 of file RawTp.hpp.

◆ m_nhits

int dunedaq::detdataformats::fwtp::RawTp::m_nhits
private

Definition at line 226 of file RawTp.hpp.


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