PennMilliSliceFragment.hh
Go to the documentation of this file.
1 #ifndef dune_artdaq_Overlays_PennMilliSliceFragment_hh
2 #define dune_artdaq_Overlays_PennMilliSliceFragment_hh
3 
6 #include "artdaq-core/Data/Fragment.hh"
7 
8 namespace dune {
9  class PennMilliSliceFragment;
10 }
11 
13 
14 public:
15 
16  // This constructor accepts an artdaq::Fragment that contains an existing
17  // PennMilliSlice and allows the the data inside the PennMilliSlice to be accessed
18  PennMilliSliceFragment(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_PennMilliSliceFragment_hh */
PennMilliSliceFragment(artdaq::Fragment const &frag)
artdaq::Fragment const & artdaq_fragment_
uint8_t * data_(int index) const