MilliSliceFragment.hh
Go to the documentation of this file.
1 #ifndef dune_artdaq_Overlays_MilliSliceFragment_hh
2 #define dune_artdaq_Overlays_MilliSliceFragment_hh
3 
6 #include "artdaq-core/Data/Fragment.hh"
7 
8 namespace dune {
9  class MilliSliceFragment;
10 }
11 
13 
14 public:
15 
16  // This constructor accepts an artdaq::Fragment that contains an existing
17  // MilliSlice and allows the the data inside the MilliSlice to be accessed
18  MilliSliceFragment(artdaq::Fragment const& frag);
19 
20 protected:
21 
22  // returns a pointer to the header
23  Header const* header_() const;
24 
25  // returns a pointer to the requested MicroSlice
26  uint8_t* data_(int index) const;
27 
28 private:
29 
30  artdaq::Fragment const& artdaq_fragment_;
31 };
32 
33 #endif /* dune_artdaq_Overlays_MilliSliceFragment_hh */
artdaq::Fragment const & artdaq_fragment_
Header const * header_() const
MilliSliceFragment(artdaq::Fragment const &frag)
uint8_t * data_(int index) const