The SharedMemoryReader is a class which implements the methods needed by art::Source.
More...
#include <artdaq/ArtModules/detail/SharedMemoryReader.hh>
|
| SharedMemoryReader (SharedMemoryReader const &)=delete |
| Copy Constructor is deleted.
|
|
SharedMemoryReader & | operator= (SharedMemoryReader const &)=delete |
| Copy Assignment operator is deleted. More...
|
|
| SharedMemoryReader (fhicl::ParameterSet const &ps, art::ProductRegistryHelper &help, art::SourceHelper const &pm) |
| SharedMemoryReader Constructor. More...
|
|
| SharedMemoryReader (fhicl::ParameterSet const &ps, art::ProductRegistryHelper &help, art::SourceHelper const &pm, art::MasterProductRegistry &) |
| SharedMemoryReader Constructor. More...
|
|
virtual | ~SharedMemoryReader () |
| SharedMemoryReader 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 SharedMemoryReader. 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...
|
|
template<std::map< artdaq::Fragment::type_t, std::string > getDefaultTypes = artdaq::Fragment::MakeSystemTypeMap, class FTT = artdaq::detail::DefaultFragmentTypeTranslator>
struct artdaq::detail::SharedMemoryReader< getDefaultTypes, FTT >
The SharedMemoryReader is a class which implements the methods needed by art::Source.
Definition at line 145 of file SharedMemoryReader.hh.
template<std::map< artdaq::Fragment::type_t, std::string > getDefaultTypes = artdaq::Fragment::MakeSystemTypeMap, class FTT = artdaq::detail::DefaultFragmentTypeTranslator>
SharedMemoryReader Constructor.
- Parameters
-
ps | ParameterSet used for configuring SharedMemoryReader |
help | art::ProductRegistryHelper which is used to inform art about different Fragment types |
pm | art::SourceHelper used to initalize the SourceHelper member |
* SharedMemoryReader accepts the following Parameters:
* "waiting_time" (Default: 86400.0): The maximum amount of time to wait for an event from the queue
* "resume_after_timeout" (Default: true): Whether to continue receiving data after a timeout
* "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 186 of file SharedMemoryReader.hh.
template<std::map< artdaq::Fragment::type_t, std::string > getDefaultTypes = artdaq::Fragment::MakeSystemTypeMap, class FTT = artdaq::detail::DefaultFragmentTypeTranslator>
SharedMemoryReader Constructor.
- Parameters
-
ps | ParameterSet used for configuring SharedMemoryReader |
help | art::ProductRegistryHelper which is used to inform art about different Fragment types |
pm | art::SourceHelper used to initalize the SourceHelper member |
This constructor calls the three-parameter constructor, the art::MasterProductRegistry parameter is discarded.
Definition at line 271 of file SharedMemoryReader.hh.
template<std::map< artdaq::Fragment::type_t, std::string > getDefaultTypes = artdaq::Fragment::MakeSystemTypeMap, class FTT = artdaq::detail::DefaultFragmentTypeTranslator>
template<std::map< artdaq::Fragment::type_t, std::string > getDefaultTypes = artdaq::Fragment::MakeSystemTypeMap, class FTT = artdaq::detail::DefaultFragmentTypeTranslator>
template<std::map< artdaq::Fragment::type_t, std::string > getDefaultTypes = artdaq::Fragment::MakeSystemTypeMap, class FTT = artdaq::detail::DefaultFragmentTypeTranslator>
template<std::map< artdaq::Fragment::type_t, std::string > getDefaultTypes = artdaq::Fragment::MakeSystemTypeMap, class FTT = artdaq::detail::DefaultFragmentTypeTranslator>
bool artdaq::detail::SharedMemoryReader< getDefaultTypes, FTT >::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 312 of file SharedMemoryReader.hh.
The documentation for this struct was generated from the following file: