artdaq_demo  3.12.07
demo::MisbehaviorTest Class Reference

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

Inheritance diagram for demo::MisbehaviorTest:

Public Member Functions

 MisbehaviorTest (const fhicl::ParameterSet &ps)
 MisbehaviorTest Constructor. More...
 
 ~MisbehaviorTest () override=default
 MisbehaviorTest default Destructor.
 
void CreateRoutingTable (artdaq::detail::RoutingPacket &table) override
 Use the current tokens to add entries to the routing table. More...
 
artdaq::detail::RoutingPacketEntry CreateRouteForSequenceID (artdaq::Fragment::sequence_id_t seq, int requesting_rank) override
 Using the existing tokens, determine a route for a given Sequence ID. More...
 

Detailed Description

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

Definition at line 11 of file MisbehaviorTest_policy.cc.

Constructor & Destructor Documentation

demo::MisbehaviorTest::MisbehaviorTest ( const 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 63 of file MisbehaviorTest_policy.cc.

Member Function Documentation

artdaq::detail::RoutingPacketEntry demo::MisbehaviorTest::CreateRouteForSequenceID ( artdaq::Fragment::sequence_id_t  seq,
int  requesting_rank 
)
override

Using the existing tokens, determine a route for a given Sequence ID.

Parameters
seqSequence ID to route
requesting_rankRank requesting the route
Returns
Routing information

Definition at line 130 of file MisbehaviorTest_policy.cc.

void demo::MisbehaviorTest::CreateRoutingTable ( artdaq::detail::RoutingPacket &  table)
override

Use the current tokens to add entries to the routing table.

Parameters
tableRouting Table to append to

Definition at line 81 of file MisbehaviorTest_policy.cc.


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