The RoutingMasterTest class runs the routing_master test. More...
Public Member Functions | |
RoutingMasterTest (int argc, char *argv[]) | |
RoutingMasterTest Constructor. | |
void | go () |
Start the test, using the role assigned. | |
void | generate_tokens () |
Generate tokens and send them to the Routing Master. | |
void | routing_master () |
Load a RoutingMasterCore instance, receive tokens from the token generators, and send table updates to the table receivers. | |
void | table_receiver () |
Receive Routing Tables from the Routing Master and send acknowledgement packets back. | |
fhicl::ParameterSet | getPset (int argc, char *argv[]) const |
Parse the command line arguments and load a configuration FHiCL file. |
The RoutingMasterTest class runs the routing_master test.
Definition at line 63 of file routing_master.cc.
RoutingMasterTest::RoutingMasterTest | ( | int | argc, | |
char * | argv[] | |||
) |
RoutingMasterTest Constructor.
argc | Number of arguments | |
argv | Array of argument strings |
The configuration file should contains the following Parameters: "daq" (REQUIRED): DAQ configuration "policy" (REQUIRED): The RoutingMasterPolicy configuration "receiver_ranks" (REQUIRED): Ranks of the Table Receivers "token_count" (Default: 1000): Number of tokens to generate "token_interval_us" (Default: 5000): Delay between tokens
The configuration file is also passed to RoutingMasterCore, see that class for required configuration parameters
Definition at line 135 of file routing_master.cc.
fhicl::ParameterSet RoutingMasterTest::getPset | ( | int | argc, | |
char * | argv[] | |||
) | const |
Parse the command line arguments and load a configuration FHiCL file.
argc | Number of arguments | |
argv | Array of argument strings |
Definition at line 166 of file routing_master.cc.