CEventTrigger

Name

CEventTrigger -- Abstract base class for triggers.

Synopsis


#include <CEventTrigger>
         

            class CEventTrigger {
            
  virtual void setup();
              virtual void teardown();
              virtual = 0 bool operator()();
        };
        

Description

Event triggers are responsible for kicking off event and scaler readouts. CEventTrigger is an abstract base class on which event triggers must be built.

Public member functions

virtual void setup();

Inititialize the trigger hardware. By default this is a no-op.

virtual void teardown();

Disable the trigger hardware. By default this is a no-op.

virtual = 0 bool operator()();

Check for a trigger. Return true if there is a trigger false otherwise. This must be implemented by concrete classes as it is pure virtual in this class.