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