Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dune::PennMilliSliceFragment Class Reference

#include <PennMilliSliceFragment.hh>

Inheritance diagram for dune::PennMilliSliceFragment:
dune::PennMilliSlice

Public Member Functions

 PennMilliSliceFragment (artdaq::Fragment const &frag)
 
- Public Member Functions inherited from dune::PennMilliSlice
 PennMilliSlice (uint8_t *address)
 
Header::millislice_size_t size () const
 
Header::sequence_id_t sequenceID () const
 
Header::version_t version () const
 
Header::timestamp_t endTimestamp () const
 
Header::ticks_t widthTicks () const
 
Header::ticks_t overlapTicks () const
 
Header::payload_count_t payloadCount () const
 
Header::payload_count_t payloadCount (Header::payload_count_t &counter, Header::payload_count_t &trigger, Header::payload_count_t &timestamp ) const
 
uint8_t * payload (uint32_t index, dune::PennMicroSlice::Payload_Header::data_packet_type_t &data_packet_type, dune::PennMicroSlice::Payload_Header::short_nova_timestamp_t &short_nova_timestamp, size_t &payload_size) const
 
uint8_t * payload (uint32_t index, dune::PennMicroSlice::Payload_Header *&data_header) const
 
uint8_t * get_next_payload (uint32_t &index, dune::PennMicroSlice::Payload_Header::data_packet_type_t &data_packet_type, dune::PennMicroSlice::Payload_Header::short_nova_timestamp_t &short_nova_timestamp, size_t &payload_size)
 
uint8_t * get_next_payload (uint32_t &index, dune::PennMicroSlice::Payload_Header *&data_header)
 
uint8_t * get_next_timestamp (dune::PennMicroSlice::Payload_Header *&data_header)
 

Protected Member Functions

Header const * header_ () const
 
uint8_t * data_ (int index) const
 
- Protected Member Functions inherited from dune::PennMilliSlice
Header const * header_ () const
 
uint8_t * data_ (int index) const
 

Private Attributes

artdaq::Fragment const & artdaq_fragment_
 

Additional Inherited Members

- Protected Attributes inherited from dune::PennMilliSlice
uint8_t * buffer_
 
uint8_t * current_payload_
 
uint32_t current_word_id_
 

Detailed Description

Definition at line 12 of file PennMilliSliceFragment.hh.

Constructor & Destructor Documentation

dune::PennMilliSliceFragment::PennMilliSliceFragment ( artdaq::Fragment const &  frag)

Definition at line 4 of file PennMilliSliceFragment.cc.

4  :
5  PennMilliSlice(reinterpret_cast<uint8_t*>(const_cast<artdaq::Fragment::byte_t*>(frag.dataBeginBytes()))),
6  artdaq_fragment_(frag)
7 {
8 }
artdaq::Fragment const & artdaq_fragment_
PennMilliSlice(uint8_t *address)

Member Function Documentation

uint8_t * dune::PennMilliSliceFragment::data_ ( int  index) const
protected

Definition at line 15 of file PennMilliSliceFragment.cc.

16 {
17  uint8_t* ms_ptr = reinterpret_cast<uint8_t*>(const_cast<artdaq::Fragment::byte_t*>(artdaq_fragment_.dataBeginBytes()))
18  + sizeof(Header);
19  for (int idx = 0; idx < index; ++idx) {
20  PennMicroSlice tmp_ms(ms_ptr);
21  ms_ptr += tmp_ms.size();
22  }
23  return ms_ptr;
24 }
artdaq::Fragment const & artdaq_fragment_
dune::PennMilliSliceFragment::Header const * dune::PennMilliSliceFragment::header_ ( ) const
protected

Definition at line 10 of file PennMilliSliceFragment.cc.

11 {
12  return reinterpret_cast<Header const*>(artdaq_fragment_.dataBeginBytes());
13 }
artdaq::Fragment const & artdaq_fragment_

Member Data Documentation

artdaq::Fragment const& dune::PennMilliSliceFragment::artdaq_fragment_
private

Definition at line 30 of file PennMilliSliceFragment.hh.


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