artdaq_demo
v3_04_00
|
Generates ASCIIFragments filled with user-specified ASCII strings. More...
#include <artdaq-demo/Generators/AsciiSimulator.hh>
Additional Inherited Members | |
Protected Member Functions inherited from artdaq::CommandableFragmentGenerator | |
int | run_number () const |
int | subrun_number () const |
uint64_t | timeout () const |
uint64_t | timestamp () const |
bool | should_stop () const |
bool | check_stop () |
int | board_id () const |
int | fragment_id () const |
size_t | ev_counter_inc (size_t step=1, bool force=false) |
void | set_exception (bool exception) |
void | metricsReportingInstanceName (std::string const &name) |
std::string | printMode_ () |
virtual bool | checkHWStatus_ () |
virtual void | pauseNoMutex () |
virtual void | pause () |
virtual void | resume () |
virtual std::string | report () |
virtual std::string | reportSpecific (std::string const &what) |
Protected Attributes inherited from artdaq::CommandableFragmentGenerator | |
std::mutex | mutex_ |
Generates ASCIIFragments filled with user-specified ASCII strings.
AsciiSimulator is a simple type of fragment generator intended to be studied by new users of artdaq as an example of how to create such a generator in the "best practices" manner. Derived from artdaq's CommandableFragmentGenerator class, it can be used in a full DAQ simulation, generating ASCII strings used for data validataion.
Definition at line 25 of file AsciiSimulator.hh.
|
explicit |
AsciiSimulator Constructor.
ps | fhicl::ParameterSet to configure AsciiSimulator. AsciiSimulator accepts the following configuration parameters: "throttle_usecs", how long to pause at the beginning of each call to getNext_, "string1" and "string2", strings to alternately put into the AsciiFragment |
Definition at line 54 of file AsciiSimulator_generator.cc.