artdaq  v3_12_02
artdaqtest::FragmentBufferTestGenerator Class Reference

CommandableFragmentGenerator derived class for testing. More...

Public Member Functions

 FragmentBufferTestGenerator (const fhicl::ParameterSet &ps)
 FragmentBufferTestGenerator Constructor.
 
artdaq::FragmentPtrs Generate (size_t n, std::vector< artdaq::Fragment::fragment_id_t > fragmentIds=std::vector< artdaq::Fragment::fragment_id_t >())
 Generate Fragments. More...
 
void setTimestamp (artdaq::Fragment::timestamp_t ts)
 Set the timestamp to be used for the next Fragment. More...
 
artdaq::Fragment::timestamp_t getTimestamp ()
 Get the timestamp that will be used for the next Fragment. More...
 

Detailed Description

CommandableFragmentGenerator derived class for testing.

Definition at line 38 of file FragmentBuffer_t.cc.

Member Function Documentation

artdaq::FragmentPtrs artdaqtest::FragmentBufferTestGenerator::Generate ( size_t  n,
std::vector< artdaq::Fragment::fragment_id_t >  fragmentIds = std::vector<artdaq::Fragment::fragment_id_t>() 
)

Generate Fragments.

Parameters
nNumber of Fragments to generate
fragmentIdsList of Fragment IDs to generate Fragments for (if different than configured fragment IDs)
Returns
artdaq::FragmentPtrs containing generated Fragments

Definition at line 86 of file FragmentBuffer_t.cc.

artdaq::Fragment::timestamp_t artdaqtest::FragmentBufferTestGenerator::getTimestamp ( )
inline

Get the timestamp that will be used for the next Fragment.

Returns
The timestamp that will be used for the next Fragment

Definition at line 65 of file FragmentBuffer_t.cc.

void artdaqtest::FragmentBufferTestGenerator::setTimestamp ( artdaq::Fragment::timestamp_t  ts)
inline

Set the timestamp to be used for the next Fragment.

Parameters
tsTimestamp to be used for the next Fragment

Definition at line 59 of file FragmentBuffer_t.cc.


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