JANA2
C++ framework for multi-threaded data processing
|
JTrigger determines whether an event contains data worth passing downstream, or whether it should be immediately recycled. More...
#include <JTrigger.h>
Public Member Functions | |
virtual bool | accept (JEvent &) |
JTrigger determines whether an event contains data worth passing downstream, or whether it should be immediately recycled.
The user can call arbitrary JFactories from a Trigger just like they can from an EventProcessor.
This design allows the user to reuse reconstruction code for a software trigger, and to reuse results calculated for the trigger during reconstruction. The accept() function should be thread safe, so that the trigger can be automatically parallelized, which will help bound the system's overall latency.
Users should declare their accept() implementation as final
, so that JANA can devirtualize it.