RoutingMasterTest Class Reference

The RoutingMasterTest class runs the routing_master test. More...

Inheritance diagram for RoutingMasterTest:
MPIProg

List of all members.

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.

Detailed Description

The RoutingMasterTest class runs the routing_master test.

Definition at line 63 of file routing_master.cc.


Constructor & Destructor Documentation

RoutingMasterTest::RoutingMasterTest ( int  argc,
char *  argv[] 
)

RoutingMasterTest Constructor.

Parameters:
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.


Member Function Documentation

fhicl::ParameterSet RoutingMasterTest::getPset ( int  argc,
char *  argv[] 
) const

Parse the command line arguments and load a configuration FHiCL file.

Parameters:
argc Number of arguments
argv Array of argument strings
Returns:
ParameterSet used to configure the test

Definition at line 166 of file routing_master.cc.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator

Generated on 23 May 2017 for artdaq by  doxygen 1.6.1