artdaq_demo  v3_00_01
demo::AsciiSimulator Class Reference

Generates ASCIIFragments filled with user-specified ASCII strings. More...

#include <artdaq-demo/Generators/AsciiSimulator.hh>

Inheritance diagram for demo::AsciiSimulator:

Public Member Functions

 AsciiSimulator (fhicl::ParameterSet const &ps)
 AsciiSimulator Constructor. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

demo::AsciiSimulator::AsciiSimulator ( fhicl::ParameterSet const &  ps)
explicit

AsciiSimulator Constructor.

Parameters
psfhicl::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.


The documentation for this class was generated from the following files: