DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::fddetdataformats Namespace Reference

Namespaces

namespace  python
 

Classes

struct  ADC16Data
 
struct  ColdataBlock
 COLDATA block struct. More...
 
struct  ColdataHeader
 COLDATA header struct. More...
 
struct  ColdataSegment
 COLDATA segment struct. More...
 
class  CRTBernFrame
 Class for accessing/holding raw CRT data from the 'Bern' panels ProtoDUNE-II VD. More...
 
class  CRTGrenobleFrame
 Class for accessing/holding raw CRT data from the 'Grenoble' panels ProtoDUNE-II VD. More...
 
class  DAPHNEFrame
 
class  DAPHNEStreamFrame
 
struct  Sample
 
class  TDE16Frame
 
class  TDEEthFrame
 Class for accessing raw WIB eth frames, as used in ProtoDUNE-II. More...
 
struct  TDEHeader
 
class  WIB2Frame
 Class for accessing raw WIB v2 frames, as used in ProtoDUNE-SP-II. More...
 
class  WIBEthFrame
 Class for accessing raw WIB eth frames, as used in ProtoDUNE-II. More...
 
class  WIBFrame
 FELIX frame. More...
 
struct  WIBHeader
 WIB header struct. More...
 

Typedefs

using word_t = uint32_t
 
using adc_t = uint16_t
 

Functions

std::ostream & operator<< (std::ostream &o, TDEHeader const &tde_header)
 
std::ostream & operator<< (std::ostream &o, Sample const &sampleinfo)
 
std::ostream & operator<< (std::ostream &o, TDE16Frame const &tde16frame)
 
std::ostream & operator<< (std::ostream &o, WIBHeader const &h)
 
std::ostream & operator<< (std::ostream &o, ColdataHeader const &hdr)
 
std::ostream & operator<< (std::ostream &o, const ColdataBlock &block)
 
std::ostream & operator<< (std::ostream &o, WIBFrame const &frame)
 

Variables

static constexpr int ticks_between_adc_samples = 32
 
static constexpr int tot_adc16_samples = 4474
 
static constexpr int n_channels_per_amc = 64
 

Typedef Documentation

◆ adc_t

Definition at line 23 of file WIBFrame.hpp.

◆ word_t

Definition at line 22 of file WIBFrame.hpp.

Function Documentation

◆ operator<<() [1/7]

std::ostream & dunedaq::fddetdataformats::operator<< ( std::ostream & o,
ColdataHeader const & hdr )
inline

Definition at line 192 of file WIBFrame.hpp.

194{
195 o << "s1_error:" << unsigned(hdr.s1_error) << " s2_error:" << unsigned(hdr.s2_error)
196 << " checksum_a1:" << unsigned(hdr.checksum_a_1) << " checksum_b1:" << unsigned(hdr.checksum_b_1)
197 << " checksum_a2:" << unsigned(hdr.checksum_a_2) << " checksum_b1:" << unsigned(hdr.checksum_b_2)
198 << " coldata_convert_count:" << unsigned(hdr.coldata_convert_count)
199 << " error_register:" << unsigned(hdr.error_register) << " hdr_1:" << unsigned(hdr.hdr_1)
200 << " hdr_2:" << unsigned(hdr.hdr_2) << " hdr_3:" << unsigned(hdr.hdr_3) << " hdr_4:" << unsigned(hdr.hdr_4)
201 << " hdr_5:" << unsigned(hdr.hdr_5) << " hdr_6:" << unsigned(hdr.hdr_6) << " hdr_7:" << unsigned(hdr.hdr_7)
202 << " hdr_8:" << unsigned(hdr.hdr_8);
203 return o << '\n';
204}

◆ operator<<() [2/7]

std::ostream & dunedaq::fddetdataformats::operator<< ( std::ostream & o,
const ColdataBlock & block )
inline

Definition at line 328 of file WIBFrame.hpp.

330{
331 o << block.head;
332
333 // Note that this is an ADC-centric view, whereas ColdataBlock uses a channel-centric view
334 o << "\t\t0\t1\t2\t3\t4\t5\t6\t7\n";
335 for (int adc = 0; adc < 8; adc++) {
336 o << "Stream " << adc << ":\t";
337 for (int ch = 0; ch < 8; ch++) {
338 o << std::hex << block.get_channel(adc, ch) << '\t';
339 }
340 o << std::dec << '\n';
341 }
342 return o;
343}
PDS Frame with unphysical timestamp detected with ch
uint16_t get_channel(const uint8_t adc, const uint8_t ch) const
Definition WIBFrame.hpp:305

◆ operator<<() [3/7]

std::ostream & dunedaq::fddetdataformats::operator<< ( std::ostream & o,
Sample const & sampleinfo )
inline

Definition at line 91 of file TDE16Frame.hpp.

93{
94 return o << "sample: " << unsigned(sampleinfo.sample) << " reserved: " << unsigned(sampleinfo.reserved) << '\n';
95}

◆ operator<<() [4/7]

std::ostream & dunedaq::fddetdataformats::operator<< ( std::ostream & o,
TDE16Frame const & tde16frame )
inline

Definition at line 97 of file TDE16Frame.hpp.

99{
100 o << "Printing frame:" << '\n';
101 o << tde16frame.m_daq_header << '\n';
102 o << tde16frame.m_tde16_header << '\n';
103 return o;
104}

◆ operator<<() [5/7]

std::ostream & dunedaq::fddetdataformats::operator<< ( std::ostream & o,
TDEHeader const & tde_header )
inline

Definition at line 83 of file TDE16Frame.hpp.

85{
86 return o << std::hex << "channel: " << tde_header.channel << "version: " << tde_header.version
87 << "TAItime: " << tde_header.TAItime
88 << " tde_header: " << tde_header.tde_header<< " tde_errors: " << tde_header.tde_errors << std::dec << '\n';
89}

◆ operator<<() [6/7]

std::ostream & dunedaq::fddetdataformats::operator<< ( std::ostream & o,
WIBFrame const & frame )
inline

Definition at line 429 of file WIBFrame.hpp.

431{
432 o << "Printing frame:" << '\n';
433 o << frame.m_head << '\n';
434 for (auto b : frame.m_blocks) {
435 o << b;
436 }
437 return o;
438}

◆ operator<<() [7/7]

std::ostream & dunedaq::fddetdataformats::operator<< ( std::ostream & o,
WIBHeader const & h )
inline

Definition at line 78 of file WIBFrame.hpp.

80{
81 return o << "SOF:" << unsigned(h.sof) << " version:" << unsigned(h.version) << " fiber:" << unsigned(h.fiber_no)
82 << " slot:" << unsigned(h.slot_no) << " crate:" << unsigned(h.crate_no) << " mm:" << unsigned(h.mm)
83 << " oos:" << unsigned(h.oos) << " wib_errors:" << unsigned(h.wib_errors)
84 << " timestamp: " << h.get_timestamp() << '\n';
85}

Variable Documentation

◆ n_channels_per_amc

int dunedaq::fddetdataformats::n_channels_per_amc = 64
staticconstexpr

Definition at line 27 of file TDE16Frame.hpp.

◆ ticks_between_adc_samples

int dunedaq::fddetdataformats::ticks_between_adc_samples = 32
staticconstexpr

Definition at line 25 of file TDE16Frame.hpp.

◆ tot_adc16_samples

int dunedaq::fddetdataformats::tot_adc16_samples = 4474
staticconstexpr

Definition at line 26 of file TDE16Frame.hpp.