1 #ifndef artdaq_demo_Generators_ToySimulator_hh
2 #define artdaq_demo_Generators_ToySimulator_hh
9 #include "fhiclcpp/fwd.h"
10 #include "artdaq-core/Data/Fragment.hh"
11 #include "artdaq/Application/CommandableFragmentGenerator.hh"
12 #include "artdaq-core-demo/Overlays/ToyFragment.hh"
13 #include "artdaq-core-demo/Overlays/FragmentType.hh"
15 #include "ToyHardwareInterface/ToyHardwareInterface.hh"
64 bool getNext_(artdaq::FragmentPtrs& output)
override;
75 void start()
override;
88 void stopNoMutex()
override {}
90 std::unique_ptr<ToyHardwareInterface> hardware_interface_;
91 artdaq::Fragment::timestamp_t timestamp_;
94 ToyFragment::Metadata metadata_;
101 char* readout_buffer_;
103 FragmentType fragment_type_;
DistributionType
Allow for the selection of output distribution.
ToySimulator(fhicl::ParameterSet const &ps)
ToySimulator Constructor.
virtual ~ToySimulator()
Shutdown the ToySimulator.
ToySimulator is a simple type of fragment generator intended to be studied by new users of artdaq as ...