Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
dune::TimingFragment Class Reference

#include <TimingFragment.hh>

Classes

struct  Body
 
struct  Metadata
 

Public Member Functions

 TimingFragment (artdaq::Fragment const &f)
 
uint32_t get_cookie () const
 
uint32_t get_scmd () const
 
uint32_t get_tcmd () const
 
uint32_t get_tstampl () const
 
uint32_t get_tstamph () const
 
uint32_t get_evtctr () const
 
uint32_t get_cksum () const
 
uint64_t get_tstamp () const
 
uint64_t get_last_runstart_timestamp () const
 
uint64_t get_last_spillstart_timestamp () const
 
uint64_t get_last_spillend_timestamp () const
 

Static Public Member Functions

static size_t size ()
 

Static Public Attributes

static constexpr uint32_t VERSION = 3
 

Protected Member Functions

Body const * body_ () const
 
uint64_t make_tstamp64 (uint32_t tstampl, uint32_t tstamph) const
 

Private Attributes

artdaq::Fragment const & artdaq_Fragment_
 

Detailed Description

Definition at line 53 of file TimingFragment.hh.

Constructor & Destructor Documentation

dune::TimingFragment::TimingFragment ( artdaq::Fragment const &  f)
inline

Definition at line 72 of file TimingFragment.hh.

73  {}
artdaq::Fragment const & artdaq_Fragment_

Member Function Documentation

Body const* dune::TimingFragment::body_ ( ) const
inlineprotected

Definition at line 137 of file TimingFragment.hh.

137  {
138  return reinterpret_cast<TimingFragment::Body const *>( artdaq_Fragment_.dataBeginBytes());
139  }
#define Body
Definition: code.cpp:12357
artdaq::Fragment const & artdaq_Fragment_
uint32_t dune::TimingFragment::get_cksum ( ) const
inline

Definition at line 111 of file TimingFragment.hh.

111 { return body_()->cksum; }
Body const * body_() const
uint32_t dune::TimingFragment::get_cookie ( ) const
inline

Definition at line 105 of file TimingFragment.hh.

105 { return body_()->cookie; }
Body const * body_() const
uint32_t dune::TimingFragment::get_evtctr ( ) const
inline

Definition at line 110 of file TimingFragment.hh.

110 { return body_()->evtctr; }
Body const * body_() const
uint64_t dune::TimingFragment::get_last_runstart_timestamp ( ) const
inline

Definition at line 117 of file TimingFragment.hh.

117  {
118  return make_tstamp64(body_()->last_runstart_tstampl,
119  body_()->last_runstart_tstamph);
120  }
uint64_t make_tstamp64(uint32_t tstampl, uint32_t tstamph) const
Body const * body_() const
uint64_t dune::TimingFragment::get_last_spillend_timestamp ( ) const
inline

Definition at line 125 of file TimingFragment.hh.

125  {
126  return make_tstamp64(body_()->last_spillend_tstampl,
127  body_()->last_spillend_tstamph);
128  }
uint64_t make_tstamp64(uint32_t tstampl, uint32_t tstamph) const
Body const * body_() const
uint64_t dune::TimingFragment::get_last_spillstart_timestamp ( ) const
inline

Definition at line 121 of file TimingFragment.hh.

121  {
122  return make_tstamp64(body_()->last_spillstart_tstampl,
123  body_()->last_spillstart_tstamph);
124  }
uint64_t make_tstamp64(uint32_t tstampl, uint32_t tstamph) const
Body const * body_() const
uint32_t dune::TimingFragment::get_scmd ( ) const
inline

Definition at line 106 of file TimingFragment.hh.

106 { return body_()->scmd; }
Body const * body_() const
uint32_t dune::TimingFragment::get_tcmd ( ) const
inline

Definition at line 107 of file TimingFragment.hh.

107 { return body_()->tcmd; }
Body const * body_() const
uint64_t dune::TimingFragment::get_tstamp ( ) const
inline

Definition at line 113 of file TimingFragment.hh.

113  {
114  return make_tstamp64(body_()->tstampl, body_()->tstamph);
115  }
uint64_t make_tstamp64(uint32_t tstampl, uint32_t tstamph) const
Body const * body_() const
uint32_t dune::TimingFragment::get_tstamph ( ) const
inline

Definition at line 109 of file TimingFragment.hh.

109 { return body_()->tstamph; }
Body const * body_() const
uint32_t dune::TimingFragment::get_tstampl ( ) const
inline

Definition at line 108 of file TimingFragment.hh.

108 { return body_()->tstampl; }
Body const * body_() const
uint64_t dune::TimingFragment::make_tstamp64 ( uint32_t  tstampl,
uint32_t  tstamph 
) const
inlineprotected

Definition at line 141 of file TimingFragment.hh.

141  {
142  uint64_t l = tstampl;
143  uint64_t h = tstamph;
144  return (l | (h<<32));
145  }
static QStrList * l
Definition: config.cpp:1044
static size_t dune::TimingFragment::size ( )
inlinestatic

Definition at line 130 of file TimingFragment.hh.

130 { return Body::size; /* body_()->size; */}
static size_t const size

Member Data Documentation

artdaq::Fragment const& dune::TimingFragment::artdaq_Fragment_
private

Definition at line 148 of file TimingFragment.hh.

constexpr uint32_t dune::TimingFragment::VERSION = 3
static

Definition at line 102 of file TimingFragment.hh.


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