demo::ToySimulator Class Reference

ToySimulator 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, obtaining data from the ToyHardwareInterface class. More...

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

List of all members.

Public Member Functions

 ToySimulator (fhicl::ParameterSet const &ps)
 ToySimulator Constructor.
virtual ~ToySimulator ()
 Shutdown the ToySimulator.

Detailed Description

ToySimulator 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, obtaining data from the ToyHardwareInterface class.

ToySimulator is designed to simulate values coming in from one of two types of digitizer boards, one called "TOY1" and the other called "TOY2"; the only difference between the two boards is the # of bits in the ADC values they send. These values are declared as FragmentType enum's in artdaq-demo's artdaq-core-demo/Overlays/FragmentType.hh header.

Definition at line 37 of file ToySimulator.hh.


Constructor & Destructor Documentation

demo::ToySimulator::ToySimulator ( fhicl::ParameterSet const &  ps  )  [explicit]

ToySimulator Constructor.

Parameters:
ps ParameterSet used to configure ToySimulator

The ToySimulator FragmentGenerator accepts the following configuration paramters: "timestamp_scale_factor" (Default: 1): How much to increment the timestamp Fragment Header field for each event "distribution_type" (REQUIRED): Which type of distribution to use when generating data. See ToyHardwareInterface for more information

Definition at line 27 of file ToySimulator_generator.cc.


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

Generated on 27 Jan 2018 for artdaq_demo by  doxygen 1.6.1