The RawEventQueueReader is a class which implements the methods needed by art::Source. More...
#include <artdaq/ArtModules/detail/RawEventQueueReader.hh>
Public Member Functions | |
RawEventQueueReader (RawEventQueueReader const &) | |
Copy Constructor is deleted. | |
RawEventQueueReader & | operator= (RawEventQueueReader const &) |
Copy Assignment operator is deleted. | |
RawEventQueueReader (fhicl::ParameterSet const &ps, art::ProductRegistryHelper &help, art::SourceHelper const &pm) | |
RawEventQueueReader Constructor. | |
RawEventQueueReader (fhicl::ParameterSet const &ps, art::ProductRegistryHelper &help, art::SourceHelper const &pm, art::MasterProductRegistry &) | |
RawEventQueueReader Constructor. | |
void | closeCurrentFile () |
Emulate closing a file. No-Op. | |
void | readFile (std::string const &, art::FileBlock *&fb) |
Emulate opening a file. | |
bool | hasMoreData () const |
Whether more data is expected from the RawEventQueueReader. | |
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. | |
Public Attributes | |
art::SourceHelper const | pmaker |
An art::SourceHelper instance. | |
RawEventQueue & | incoming_events |
The events from the EventStore. | |
artdaq::detail::seconds | waiting_time |
The amount of time to wait for an event from the queue. | |
bool | resume_after_timeout |
Whether to resume if the dequeue action times out. | |
std::string | pretend_module_name |
The module name to store data under. | |
std::string | unidentified_instance_name |
The name to use for unknown Fragment types. | |
bool | shutdownMsgReceived |
Whether a shutdown message has been received. | |
bool | outputFileCloseNeeded |
If an explicit output file close message is needed. | |
size_t | bytesRead |
running total of number of bytes dequeued | |
std::map< Fragment::type_t, std::string > | fragment_type_map_ |
The Fragment type names that this RawEventQueueReader knows about. | |
unsigned | readNext_calls_ |
The number of times readNext has been called. |
The RawEventQueueReader is a class which implements the methods needed by art::Source.
Definition at line 26 of file RawEventQueueReader.hh.
artdaq::detail::RawEventQueueReader::RawEventQueueReader | ( | fhicl::ParameterSet const & | ps, | |
art::ProductRegistryHelper & | help, | |||
art::SourceHelper const & | pm | |||
) |
RawEventQueueReader Constructor.
ps | ParameterSet used for configuring RawEventQueueReader | |
help | art::ProductRegistryHelper which is used to inform art about different Fragment types | |
pm | art::SourceHelper used to initalize the SourceHelper member |
* RawEventQueueReader 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 *
Definition at line 15 of file RawEventQueueReader.cc.
artdaq::detail::RawEventQueueReader::RawEventQueueReader | ( | fhicl::ParameterSet const & | ps, | |
art::ProductRegistryHelper & | help, | |||
art::SourceHelper const & | pm, | |||
art::MasterProductRegistry & | ||||
) | [inline] |
RawEventQueueReader Constructor.
ps | ParameterSet used for configuring RawEventQueueReader | |
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 74 of file RawEventQueueReader.hh.
bool artdaq::detail::RawEventQueueReader::hasMoreData | ( | ) | const [inline] |
Whether more data is expected from the RawEventQueueReader.
Definition at line 94 of file RawEventQueueReader.hh.
RawEventQueueReader& artdaq::detail::RawEventQueueReader::operator= | ( | RawEventQueueReader const & | ) |
Copy Assignment operator is deleted.
void artdaq::detail::RawEventQueueReader::readFile | ( | std::string const & | , | |
art::FileBlock *& | fb | |||
) |
Emulate opening a file.
[out] | fb | art::FileBlock object |
Definition at line 40 of file RawEventQueueReader.cc.
bool artdaq::detail::RawEventQueueReader::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.
[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 |
Definition at line 46 of file RawEventQueueReader.cc.