artdaq  v3_08_00
artdaq::FragmentSniffer Class Reference

This art::EDAnalyzer plugin tries to get Fragments from each event, asserting that the correct number of Fragments were present. More...

Inheritance diagram for artdaq::FragmentSniffer:

Public Member Functions

 FragmentSniffer (fhicl::ParameterSet const &p)
 FragmentSniffer Constructor. More...
 
virtual ~FragmentSniffer ()=default
 Default destructor.
 
void analyze (art::Event const &e) override
 Called for each event. Asserts that Fragment objects are present in the event and that the correct number of Fragments were found. More...
 
void endJob () override
 Called at the end of the job. Asserts that the number of events processed was equal to the expected number.
 

Detailed Description

This art::EDAnalyzer plugin tries to get Fragments from each event, asserting that the correct number of Fragments were present.

Definition at line 22 of file FragmentSniffer_module.cc.

Constructor & Destructor Documentation

artdaq::FragmentSniffer::FragmentSniffer ( fhicl::ParameterSet const &  p)
explicit

FragmentSniffer Constructor.

Parameters
pParameterSet used to configure FragmentSniffer
* FragmentSniffer accepts the following Parameters:
* "raw_label" (Default: "daq"): Label under which Fragments are stored
* "product_instance_name" (REQUIRED): Instance name under which Fragments are stored (Should be Fragment type name)
* "num_frags_per_event" (REQUIRED): Expected number of Fragments in each event
* "num_events_expected" (Default: 0): Expected number of events in the job. If 0, will not perform end-of-job test
* 

Definition at line 63 of file FragmentSniffer_module.cc.

Member Function Documentation

void artdaq::FragmentSniffer::analyze ( art::Event const &  e)
override

Called for each event. Asserts that Fragment objects are present in the event and that the correct number of Fragments were found.

Parameters
eEvent to analyze

Definition at line 71 of file FragmentSniffer_module.cc.


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