|
ATLAS Offline Software
|
Go to the documentation of this file.
15 std::shared_ptr<top::TopConfig>
config) {
21 bool loose =
event.m_isLoose;
23 if (loose)
return true;
25 bool orOfAllTriggers(
false);
27 bool passThisTrigger(
false);
29 if (
event.m_info->isAvailable<
char>(
"TRIGDEC_" + trigger_name)) {
30 if (
event.m_info->auxdataConst<
char>(
"TRIGDEC_" + trigger_name) == 1) {
31 passThisTrigger =
true;
35 orOfAllTriggers |= passThisTrigger;
38 return orOfAllTriggers;
42 std::string
name =
"TRIGDEC_TIGHT ";
std::string name() const override
TRIGDEC because we might have a tool for trigger matching too at some point.
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.
POOL::TEvent event(POOL::TEvent::kClassAccess)
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...
TrigDecisionTightSelector(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).
Very simple class to hold event data after reading from a file.
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.