artdaq  v3_02_01
anonymous_namespace{genToArt.cc} Namespace Reference

Classes

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

Functions

int process_cmd_line (int argc, char **argv, bpo::variables_map &vm)
 Process the command line. More...
 
int process_data (fhicl::ParameterSet const &pset)
 Run the test, instantiating configured generators and an EventStore. More...
 

Function Documentation

int anonymous_namespace{genToArt.cc}::process_cmd_line ( int  argc,
char **  argv,
bpo::variables_map &  vm 
)

Process the command line.

Parameters
argcNumber of arguments
argvArray of arguments as strings
[out]vmOutput boost::program_options::variables_map
Returns
0 if success, -1 if excpetion, 1 if help was requested, and 2 if missing required arguments

Definition at line 48 of file genToArt.cc.

int anonymous_namespace{genToArt.cc}::process_data ( fhicl::ParameterSet const &  pset)

Run the test, instantiating configured generators and an EventStore.

Parameters
psetParameterSet used to configure genToArt
Returns
Art return code, of 15 if EventStore::endOfData fails
* genToArt accepts the following Parameters:
* "reset_sequenceID" (Default: true): Set the sequence IDs on generated Fragment objects to the expected value
* "genToArt" (REQUIRED): FHiCL table containing genToArt parameters
*   "fragment_receivers" (REQUIRED): List of FHiCL tables configuring the Fragment receivers
*     Each table should contain parameter "generator", the FragmentGenerator plugin to load, and any other parameters that generator requires
*   "event_builder" (Default: {}): ParameterSet for EventStore. See documentation for configuration parameters.
*   "run_number" (REQUIRED): Run number to use
*   "events_to_generate" (Default: -1): Number of events to generate
*
* 

Definition at line 224 of file genToArt.cc.