artdaq_demo  v3_06_00
demo::MisbehaviorTest Class Reference

A test RoutingMasterPolicy which does various "bad" things, determined by configuration. More...

Inheritance diagram for demo::MisbehaviorTest:
artdaq::RoutingMasterPolicy

Public Member Functions

 MisbehaviorTest (fhicl::ParameterSet ps)
 MisbehaviorTest Constructor. More...
 
virtual ~MisbehaviorTest ()=default
 MisbehaviorTest default Destructor.
 
artdaq::detail::RoutingPacket GetCurrentTable () override
 Generate and return a Routing Table. More...
 

Detailed Description

A test RoutingMasterPolicy which does various "bad" things, determined by configuration.

Definition at line 12 of file MisbehaviorTest_policy.cc.

Constructor & Destructor Documentation

demo::MisbehaviorTest::MisbehaviorTest ( fhicl::ParameterSet  ps)
explicit

MisbehaviorTest Constructor.

Parameters
psParameterSet used to configure MisbehaviorTest
* Note that only one misbehavior can be configured at a time. MisbehaviorTest will work like NoOp_policy when not misbehaving
* MisbehaviorTest accepts the following Parameters:
* "misbehave_after_n_events" (Default: 1000): The threshold after which it will start misbehaving
* "misbehave_pause_time_ms" (Default: 0): If greater than 0, will pause this long before sending out table updates
* "misbehave_send_confliting_table_data" (Default: false): If true, will send a table that contains the same sequence ID being sent to two different EventBuilders
* "misbehave_send_corrupt_table_data" (Default: false): If true, will send a table that contains an entry created using rand(), rand()
* "misbehave_overload_event_builder" (Default: false): If true, will send a large number of events to one EventBuilder
* 

Definition at line 49 of file MisbehaviorTest_policy.cc.

Member Function Documentation

artdaq::detail::RoutingPacket demo::MisbehaviorTest::GetCurrentTable ( )
overridevirtual

Generate and return a Routing Table.

Returns
An artdaq::detail::RoutingPacket with the Routing Table information

Implements artdaq::RoutingMasterPolicy.

Definition at line 66 of file MisbehaviorTest_policy.cc.


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