artdaq  v3_07_02
anonymous_namespace{genToArt.cc}::ThrottledGenerator Class Reference

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. More...
 
bool getNext (artdaq::FragmentPtrs &newFrags)
 Get the next fragment from the generator. More...
 
size_t numFragIDs () const
 Get the number of Fragment IDs handled by this generator. More...
 
void start (int run, uint64_t timeout, uint64_t timestamp) const
 Send start signal to FragmentGenerator, if it's a CommandableFragmentGenerator. More...
 
void stop (uint64_t timeout, uint64_t timestamp) const
 Send stop signal to FragmentGenerator, if it's a CommandableFragmentGenerator. More...
 

Detailed Description

ThrottledGenerator: ensure that we only get one fragment per type at a time from the generator.

Definition at line 88 of file genToArt.cc.

Constructor & Destructor Documentation

anonymous_namespace{genToArt.cc}::ThrottledGenerator::ThrottledGenerator ( std::string const &  generator,
fhicl::ParameterSet const &  ps 
)

ThrottledGenerator Constructor.

Parameters
generatorName of the generator plugin to load
psParameterSet for configuring the FragmentGenerator

Definition at line 145 of file genToArt.cc.

Member Function Documentation

bool anonymous_namespace{genToArt.cc}::ThrottledGenerator::getNext ( artdaq::FragmentPtrs &  newFrags)

Get the next fragment from the generator.

Parameters
[out]newFragsNew Fragment objects are added to this list
Returns
Whether there is more data forthcoming

Definition at line 155 of file genToArt.cc.

size_t anonymous_namespace{genToArt.cc}::ThrottledGenerator::numFragIDs ( ) const

Get the number of Fragment IDs handled by this generator.

Returns

Definition at line 191 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.

Parameters
runRun number to pass to StartCmd
timeoutTimeout to pass to StartCmd
timestampTimestamp to pass to StartCmd

Definition at line 118 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.

Parameters
timeoutTimeout to pass to StopCmd
timestampTimestamp to pass to StopCmd

Definition at line 128 of file genToArt.cc.


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