$treeview $search $mathjax $extrastylesheet
artdaq
v3_04_01
$projectbrief
|
$projectbrief
|
$searchbox |
ThrottledGenerator: ensure that we only get one fragment per type at a time from the generator. More...
Public Member Functions | |
ThrottledGenerator (std::string const &generator, fhicl::ParameterSet const &ps) | |
ThrottledGenerator Constructor. | |
bool | getNext (artdaq::FragmentPtrs &newFrags) |
Get the next fragment from the generator. | |
size_t | numFragIDs () const |
Get the number of Fragment IDs handled by this generator. | |
void | start (int run, uint64_t timeout, uint64_t timestamp) const |
Send start signal to FragmentGenerator, if it's a CommandableFragmentGenerator. | |
void | stop (uint64_t timeout, uint64_t timestamp) const |
Send stop signal to FragmentGenerator, if it's a CommandableFragmentGenerator. |
ThrottledGenerator: ensure that we only get one fragment per type at a time from the generator.
Definition at line 90 of file genToArt.cc.
anonymous_namespace{genToArt.cc}::ThrottledGenerator::ThrottledGenerator | ( | std::string const & | generator, | |
fhicl::ParameterSet const & | ps | |||
) |
ThrottledGenerator Constructor.
generator | Name of the generator plugin to load | |
ps | ParameterSet for configuring the FragmentGenerator |
Definition at line 146 of file genToArt.cc.
bool anonymous_namespace{genToArt.cc}::ThrottledGenerator::getNext | ( | artdaq::FragmentPtrs & | newFrags | ) |
Get the next fragment from the generator.
[out] | newFrags | New Fragment objects are added to this list |
Definition at line 158 of file genToArt.cc.
size_t anonymous_namespace{genToArt.cc}::ThrottledGenerator::numFragIDs | ( | ) | const |
Get the number of Fragment IDs handled by this generator.
Definition at line 195 of file genToArt.cc.
void anonymous_namespace{genToArt.cc}::ThrottledGenerator::start | ( | int | run, | |
uint64_t | timeout, | |||
uint64_t | timestamp | |||
) | const [inline] |
Send start signal to FragmentGenerator, if it's a CommandableFragmentGenerator.
run | Run number to pass to StartCmd | |
timeout | Timeout to pass to StartCmd | |
timestamp | Timestamp to pass to StartCmd |
Definition at line 120 of file genToArt.cc.
void anonymous_namespace{genToArt.cc}::ThrottledGenerator::stop | ( | uint64_t | timeout, | |
uint64_t | timestamp | |||
) | const [inline] |
Send stop signal to FragmentGenerator, if it's a CommandableFragmentGenerator.
timeout | Timeout to pass to StopCmd | |
timestamp | Timestamp to pass to StopCmd |
Definition at line 130 of file genToArt.cc.