artdaq_core
v3_06_01
|
Base class for all FragmentGenerators. More...
#include <artdaq-core/Generators/FragmentGenerator.hh>
Public Member Functions | |
FragmentGenerator ()=default | |
Default Constructor. | |
virtual | ~FragmentGenerator ()=default |
Default Destructor. | |
virtual bool | getNext (FragmentPtrs &output)=0 |
Obtain the next collection of Fragments. More... | |
virtual std::vector < Fragment::fragment_id_t > | fragmentIDs ()=0 |
Which fragment IDs does this FragmentGenerator generate? More... | |
Base class for all FragmentGenerators.
FragmentGenerator is an abstract class that defines the interface for obtaining events in artdaq. Subclasses are to override the (private) virtual functions; users of FragmentGenerator are to invoke the public (non-virtual) functions.
Definition at line 24 of file FragmentGenerator.hh.
|
pure virtual |
Which fragment IDs does this FragmentGenerator generate?
Each FragmentGenerator is responsible for one or more Fragment IDs. Fragment IDs should be unique in an event, and consistent for a given piece of hardware.
Implemented in artdaqtest::FragmentGeneratorTest.
|
pure virtual |
Obtain the next collection of Fragments.
output | New FragmentPtr objects will be added to this FragmentPtrs object. |
Obtain the next collection of Fragments. Return false to indicate end-of-data. Fragments may or may not be in the same event; Fragments may or may not have the same FragmentID. Fragments will all be part of the same Run and SubRun.
Implemented in artdaqtest::FragmentGeneratorTest.