The HDFFileReader is a class which implements the methods needed by art::Source.
More...
#include <artdaq-demo-hdf5/ArtModules/detail/HDFFileReader.hh>
|
| HDFFileReader (HDFFileReader const &)=delete |
| Copy Constructor is deleted.
|
|
HDFFileReader & | operator= (HDFFileReader const &)=delete |
| Copy Assignment operator is deleted. More...
|
|
| HDFFileReader (HDFFileReader &&)=delete |
| Move Constructor is deleted.
|
|
HDFFileReader & | operator= (HDFFileReader &&)=delete |
| Move Assignment operator is deleted. More...
|
|
| HDFFileReader (fhicl::ParameterSet const &ps, art::ProductRegistryHelper &help, art::SourceHelper const &pm) |
| HDFFileReader Constructor. More...
|
|
virtual | ~HDFFileReader () |
| HDFFileReader destructor.
|
|
void | closeCurrentFile () |
| Emulate closing a file. No-Op.
|
|
void | readFile (std::string const &, art::FileBlock *&fb) |
| Emulate opening a file. More...
|
|
bool | hasMoreData () const |
| Whether more data is expected from the HDFFileReader. More...
|
|
bool | readNext (art::RunPrincipal *const &inR, art::SubRunPrincipal *const &inSR, art::RunPrincipal *&outR, art::SubRunPrincipal *&outSR, art::EventPrincipal *&outE) |
| Dequeue a RawEvent and declare its Fragment contents to art, creating Run, SubRun, and EventPrincipal objects as necessary. More...
|
|
The HDFFileReader is a class which implements the methods needed by art::Source.
Definition at line 35 of file HDFFileReader.hh.
artdaq::detail::HDFFileReader::HDFFileReader |
( |
fhicl::ParameterSet const & |
ps, |
|
|
art::ProductRegistryHelper & |
help, |
|
|
art::SourceHelper const & |
pm |
|
) |
| |
|
inline |
HDFFileReader Constructor.
- Parameters
-
ps | ParameterSet used for configuring HDFFileReader |
help | art::ProductRegistryHelper which is used to inform art about different Fragment types |
pm | art::SourceHelper used to initalize the SourceHelper member |
* HDFFileReader accepts the following Parameters:
* "raw_data_label" (Default: "daq"): The label to use for all raw data
* "shared_memory_key" (Default: 0xBEE7): The key for the shared memory segment
*
Definition at line 78 of file HDFFileReader.hh.
bool artdaq::detail::HDFFileReader::hasMoreData |
( |
| ) |
const |
|
inline |
Whether more data is expected from the HDFFileReader.
- Returns
- True unless a shutdown message has been received in readNext
Definition at line 150 of file HDFFileReader.hh.
void artdaq::detail::HDFFileReader::readFile |
( |
std::string const & |
, |
|
|
art::FileBlock *& |
fb |
|
) |
| |
|
inline |
Emulate opening a file.
- Parameters
-
[out] | fb | art::FileBlock object |
Definition at line 140 of file HDFFileReader.hh.
bool artdaq::detail::HDFFileReader::readNext |
( |
art::RunPrincipal *const & |
inR, |
|
|
art::SubRunPrincipal *const & |
inSR, |
|
|
art::RunPrincipal *& |
outR, |
|
|
art::SubRunPrincipal *& |
outSR, |
|
|
art::EventPrincipal *& |
outE |
|
) |
| |
|
inline |
Dequeue a RawEvent and declare its Fragment contents to art, creating Run, SubRun, and EventPrincipal objects as necessary.
- Parameters
-
[in] | inR | Input art::RunPrincipal |
[in] | inSR | Input art::SubRunPrincipal |
[out] | outR | Output art::RunPrincipal |
[out] | outSR | Output art::SubRunPrincipal |
[out] | outE | Output art::EventPrincipal |
- Returns
- Whether an event was returned
Definition at line 166 of file HDFFileReader.hh.
The documentation for this struct was generated from the following file: