Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dune-raw-data
dune-raw-data
Overlays
MilliSliceFragment.cc
Go to the documentation of this file.
1
#include "
dune-raw-data/Overlays/MilliSliceFragment.hh
"
2
3
dune::MilliSliceFragment::
4
MilliSliceFragment
(artdaq::Fragment
const
& frag) :
5
MilliSlice
(reinterpret_cast<uint8_t*>(const_cast<
artdaq
::
Fragment
::byte_t*>(frag.dataBeginBytes()))),
6
artdaq_fragment_(frag)
7
{
8
}
9
10
dune::MilliSliceFragment::Header
const
*
dune::MilliSliceFragment::header_
()
const
11
{
12
return
reinterpret_cast<
Header
const
*
>
(
artdaq_fragment_
.dataBeginBytes());
13
}
14
15
uint8_t*
dune::MilliSliceFragment::data_
(
int
index
)
const
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
MicroSlice
tmp_ms(ms_ptr);
21
ms_ptr += tmp_ms.
size
();
22
}
23
return
ms_ptr;
24
}
freeze_graph.const
const
Definition:
freeze_graph.py:179
Fragment
Definition:
doxysearch.cpp:158
artdaq
Definition:
PdspHDFFileInput_source.cc:20
dune::MilliSliceFragment::artdaq_fragment_
artdaq::Fragment const & artdaq_fragment_
Definition:
MilliSliceFragment.hh:30
dune::MicroSlice::size
Header::microslice_size_t size() const
Definition:
MicroSlice.cc:7
dune::MilliSlice::Header
Definition:
MilliSlice.hh:15
dune::MilliSlice
Definition:
MilliSlice.hh:11
dune::MilliSliceFragment::header_
Header const * header_() const
Definition:
MilliSliceFragment.cc:10
MilliSliceFragment.hh
dune::MilliSliceFragment::MilliSliceFragment
MilliSliceFragment(artdaq::Fragment const &frag)
Definition:
MilliSliceFragment.cc:4
ValidateOpDetReco.index
index
Definition:
ValidateOpDetReco.py:379
dune::MilliSliceFragment::data_
uint8_t * data_(int index) const
Definition:
MilliSliceFragment.cc:15
dune::MicroSlice
Definition:
MicroSlice.hh:11
Generated by
1.8.11