LDMX Software
SequentialTrigger.h
Go to the documentation of this file.
1
10#ifndef RECON_TRIGGER_SEQUENTIALTRIGGER_H_
11#define RECON_TRIGGER_SEQUENTIALTRIGGER_H_
12
13// LDMX
14#include "Framework/Configure/Parameters.h"
16
17namespace recon {
18
34 public:
38 SequentialTrigger(const std::string& name, framework::Process& process)
39 : framework::Producer(name, process) {}
40
44 virtual ~SequentialTrigger() = default;
45
51 void configure(framework::config::Parameters& parameters) override;
52
59 void produce(framework::Event& event) override;
60
61 private:
63 std::vector<std::string> trigger_list_;
64
66 std::vector<std::string> trigger_pass_names_;
67
69 bool do_or_;
70 bool do_and_;
71
76 bool do_val_;
77};
78
79} // namespace recon
80
81#endif
Base classes for all user event processing components to extend.
Implements an event buffer system for storing event data.
Definition Event.h:40
Class which represents the process under execution.
Definition Process.h:34
Base class for a module which produces a data product.
Producer(const std::string &name, Process &process)
Class constructor.
virtual void process(Event &event) final
Processing an event for a Producer is calling produce.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:26
Class that provides a trigger skimming decision from multiple Triggers based on either AND or OR.
void configure(framework::config::Parameters &parameters) override
Configure the processor using the given user specified parameters.
virtual ~SequentialTrigger()=default
Class destructor.
std::vector< std::string > trigger_list_
The name of the input collection of triggers.
SequentialTrigger(const std::string &name, framework::Process &process)
Class constructor.
std::vector< std::string > trigger_pass_names_
pass name of the triggers
bool do_or_
options to enable OR or AND skimming
void produce(framework::Event &event) override
Run the doOR or doAND check and create a SequentialTrigger object to contain the pass boolean value.
bool do_val_
enables a output collection with the keep tag for the purposes of validation
All classes in the ldmx-sw project use this namespace.