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.
int process_data (int argc, char **argv, fhicl::ParameterSet const &pset)
 Run the test, instantiating configured generators and an EventStore.

Function Documentation

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

Process the command line.

Parameters:
argc Number of arguments
argv Array of arguments as strings
[out] vm Output 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 ( int  argc,
char **  argv,
fhicl::ParameterSet const &  pset 
)

Run the test, instantiating configured generators and an EventStore.

Parameters:
argc Argument count, passed to EventStore for art initialization
argv Arguments, passed to EventStore for art initialization
pset ParameterSet 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 202 of file genToArt.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator

Generated on 16 Aug 2017 for artdaq by  doxygen 1.6.1