17 ps.
getParameter<std::vector<std::string>>(
"trigger_passNames");
22 if (doAND_ ==
doOR_) {
23 EXCEPTION_RAISE(
"InvalidArg",
24 "Either tried to do both or neither of doAND and doOR. "
25 "Exactly one should be true.");
41 bool hasPassed = not(
doOR_) or (doAND_);
51 if (trigResult.passed()) {
63 std::string errorMessage =
64 "Attemping to use non-existing trigger collection " +
66 EXCEPTION_RAISE(
"InvalidArg", errorMessage.data());
73 event.add(
"validation", hasPassed);
#define DECLARE_ANALYZER_NS(NS, 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.
T getParameter(const std::string &name) const
Retrieve the parameter of the given name.
Represents the trigger decision (pass/fail) for reconstruction.
bool doVAL_
enables a output collection with the keep tag for the purposes of validation
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_passNames_
pass name of the triggers
bool doOR_
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.
constexpr StorageControl::Hint hint_shouldKeep
storage control hint alias for backwards compatibility
constexpr StorageControl::Hint hint_shouldDrop
storage control hint alias for backwards compatibility