![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
16 for (
auto s:
config->allTriggers_Loose(selectorName))
21 bool orOfAllTriggers(
false);
24 bool passThisTrigger(
false);
26 if (
event.m_info->isAvailable<
char>(
"TRIGDEC_" + trigger_name)) {
27 if (
event.m_info->auxdataConst<
char>(
"TRIGDEC_" + trigger_name) == 1) {
28 passThisTrigger =
true;
32 orOfAllTriggers |= passThisTrigger;
35 return orOfAllTriggers;
39 std::string
name =
"TRIGDEC ";
TopConfig A simple configuration that is NOT a singleton.
virtual bool apply(const top::Event &event) const override
Select events based on the 'OR' of a few user defined triggers.
std::string find(const std::string &s)
return a remapped string
std::vector< std::pair< std::string, int > > m_triggers
List of triggers to 'or' together for each event. If any one passes, the event passes.
POOL::TEvent event(POOL::TEvent::kClassAccess)
TrigDecisionSelector(const std::string &selectorName, std::shared_ptr< top::TopConfig > config)
A tool to select events that pass a certain trigger (or any trigger in a list).
std::string substitute(const std::string &str, const std::string &pattern, const std::string &with)
effects: substitute all occurences of "pattern" with "with" in the string "str" returns: the substitu...
std::string name() const override
TRIGDEC because we might have a tool for trigger matching too at some point.
Very simple class to hold event data after reading from a file.