artdaq
v3_05_00
|
The SharedMemoryReader is a class which implements the methods needed by art::Source. More...
#include <artdaq/ArtModules/detail/SharedMemoryReader.hh>
Public Member Functions | |
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... | |
Public Attributes | |
art::SourceHelper const & | pmaker |
An art::SourceHelper instance. | |
std::unique_ptr < SharedMemoryEventReceiver > | incoming_events |
The events from the EventStore. | |
double | 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 received | |
std::chrono::steady_clock::time_point | last_read_time |
Time last read was completed. | |
std::map< Fragment::type_t, std::string > | fragment_type_map_ |
The Fragment type names that this SharedMemoryReader knows about. | |
unsigned | readNext_calls_ |
The number of times readNext has been called. | |
The SharedMemoryReader is a class which implements the methods needed by art::Source.
Definition at line 34 of file SharedMemoryReader.hh.
|
inline |
SharedMemoryReader Constructor.
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 75 of file SharedMemoryReader.hh.
|
inline |
SharedMemoryReader Constructor.
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 153 of file SharedMemoryReader.hh.
|
inline |
Whether more data is expected from the SharedMemoryReader.
Definition at line 182 of file SharedMemoryReader.hh.
|
delete |
Copy Assignment operator is deleted.
|
inline |
Emulate opening a file.
[out] | fb | art::FileBlock object |
Definition at line 172 of file SharedMemoryReader.hh.
|
inline |
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 194 of file SharedMemoryReader.hh.