artdaq
v2_03_00
|
This template class provides a unified interface for reading data into art. More...
#include <artdaq/ArtModules/ArtdaqInput.hh>
Public Member Functions | |
ArtdaqInput (const ArtdaqInput &)=delete | |
Copy Constructor is deleted. | |
ArtdaqInput & | operator= (const ArtdaqInput &)=delete |
Copy Assignment operator is deleted. More... | |
~ArtdaqInput () | |
ArtdaqInput Destructor. | |
ArtdaqInput (const fhicl::ParameterSet &ps, art::ProductRegistryHelper &helper, const art::SourceHelper &pm) | |
ArtdaqInput Constructor. More... | |
void | closeCurrentFile () |
Called by art to close the input source. No-Op. | |
void | readFile (const std::string &, art::FileBlock *&fb) |
Emulate reading a file. More... | |
bool | hasMoreData () const |
Whether additional events are expected from the source. More... | |
bool | readNext (art::RunPrincipal *const inR, art::SubRunPrincipal *const inSR, art::RunPrincipal *&outR, art::SubRunPrincipal *&outSR, art::EventPrincipal *&outE) |
Read the next event from the communication wrapper. More... | |
This template class provides a unified interface for reading data into art.
U | The class responsible for delivering data |
JCF, May-27-2016 ArtdaqInput is a template class which takes, as a parameter, a class which it uses to receive data; the instance of this class is called "communicationWrapper_". As of this writing, this wrapper class is implemented by NetMonWrapper (for reading data into the aggregator from the eventbuilder) and TransferWrapper (for reading data into an art process). This class presents a unified approach to handling art provenance, regardless of the communication protocol used to read data in.
Definition at line 64 of file ArtdaqInput.hh.
art::ArtdaqInput< U >::ArtdaqInput | ( | const fhicl::ParameterSet & | ps, |
art::ProductRegistryHelper & | helper, | ||
const art::SourceHelper & | pm | ||
) |
ArtdaqInput Constructor.
ps | ParameterSet used to confiugre communication wrapper class |
helper | An art::ProductRegistryHelper for registering products |
pm | An art::SourceHelper for handling provenance |
Definition at line 169 of file ArtdaqInput.hh.
bool art::ArtdaqInput< U >::hasMoreData | ( | ) | const |
Whether additional events are expected from the source.
Definition at line 338 of file ArtdaqInput.hh.
|
delete |
Copy Assignment operator is deleted.
void art::ArtdaqInput< U >::readFile | ( | const std::string & | , |
art::FileBlock *& | fb | ||
) |
Emulate reading a file.
fb | Output art::FileBlock object |
Definition at line 321 of file ArtdaqInput.hh.
bool art::ArtdaqInput< U >::readNext | ( | art::RunPrincipal *const | inR, |
art::SubRunPrincipal *const | inSR, | ||
art::RunPrincipal *& | outR, | ||
art::SubRunPrincipal *& | outSR, | ||
art::EventPrincipal *& | outE | ||
) |
Read the next event from the communication wrapper.
inR | RunPrincipal input pointer |
inSR | SubRunPrincipal input pointer |
outR | RunPrincipal output pointer |
outSR | SubRunPrincipal output pointer |
outE | EventPrincipal output pointer |
Definition at line 678 of file ArtdaqInput.hh.