17 do_and_ = ps.
get<
bool>(
"doAND");
22 EXCEPTION_RAISE(
"InvalidArg",
23 "Either tried to do both or neither of doAND and doOR. "
24 "Exactly one should be true.");
40 bool has_passed = not(
do_or_) or (do_and_);
50 if (trig_result.passed()) {
62 std::string error_message =
63 "Attemping to use non-existing trigger collection " +
66 EXCEPTION_RAISE(
"InvalidArg", error_message.data());
73 event.add(
"validation", has_passed);
#define DECLARE_ANALYZER(CLASS)
Macro which allows the framework to construct an analyzer given its name during configuration.
Class that provides a trigger skimming decision from multiple Triggers based on either AND or OR.
Class that represents the trigger decision (pass/fail) for reconstruction.
void setStorageHint(framework::StorageControl::Hint hint)
Mark the current event as having the given storage control hint from this module_.
Implements an event buffer system for storing event data.
Class encapsulating parameters for configuring a processor.
const T & get(const std::string &name) const
Retrieve the parameter of the given name.
Represents the trigger decision (pass/fail) for reconstruction.
Class that provides a trigger skimming decision from multiple Triggers based on either AND or OR.
void configure(framework::config::Parameters ¶meters) override
Configure the processor using the given user specified parameters.
std::vector< std::string > trigger_list_
The name of the input collection of triggers.
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
constexpr StorageControl::Hint HINT_SHOULD_DROP
storage control hint alias for backwards compatibility
constexpr StorageControl::Hint HINT_SHOULD_KEEP
storage control hint alias for backwards compatibility