artdaq_mpich_plugin  v1_00_08
RoutingMasterTest Class Reference

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

Inheritance diagram for RoutingMasterTest:
MPIProg

Public Member Functions

 RoutingMasterTest (int argc, char *argv[])
 RoutingMasterTest Constructor. More...
 
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. More...
 
- Public Member Functions inherited from MPIProg
 MPIProg (int argc, char **argv)
 MPIProg Constructor. More...
 
 ~MPIProg ()
 MPIProg destructor.
 

Additional Inherited Members

- Public Attributes inherited from MPIProg
int procs_
 Number of processes in MPI cluster.
 

Detailed Description

The RoutingMasterTest class runs the routing_master test.

Definition at line 42 of file routing_master_t.cc.

Constructor & Destructor Documentation

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

RoutingMasterTest Constructor.

Parameters
argcNumber of arguments
argvArray 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 114 of file routing_master_t.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
argcNumber of arguments
argvArray of argument strings
Returns
ParameterSet used to configure the test

Definition at line 144 of file routing_master_t.cc.


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