ATLAS Offline Software
TrigDecisionLooseSelector.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef TRIGDECISIONLOOSESELECTOR_H_
6 #define TRIGDECISIONLOOSESELECTOR_H_
7 
9 #include <memory>
10 
11 
12 namespace top {
13  // Forward declare
14  class Event;
15  class TopConfig;
34  public:
42  TrigDecisionLooseSelector(const std::string& selectorName, std::shared_ptr<top::TopConfig> config);
43 
53  virtual bool apply(const top::Event& event) const override;
54 
56  std::string name() const override;
57  private:
59  std::vector<std::pair<std::string, int> > m_triggers;
60  };
61 }
62 
63 #endif /* TRIGDECISIONLOOSESELECTOR_H_ */
top::TrigDecisionLooseSelector
Sometimes you may want to select events that pass a certain trigger, or triggers.
Definition: TrigDecisionLooseSelector.h:33
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
Event
Definition: trigbs_orderedMerge.cxx:42
top::TrigDecisionLooseSelector::m_triggers
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.
Definition: TrigDecisionLooseSelector.h:59
top::TrigDecisionLooseSelector::apply
virtual bool apply(const top::Event &event) const override
Select events based on the 'OR' of a few user defined triggers.
Definition: TrigDecisionLooseSelector.cxx:19
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
top::EventSelectorBase
This should apply event-level cuts and perform simple plotting on top::Event objects.
Definition: EventSelectorBase.h:20
top::TrigDecisionLooseSelector::name
std::string name() const override
TRIGDEC because we might have a tool for trigger matching too at some point.
Definition: TrigDecisionLooseSelector.cxx:41
EventSelectorBase.h
top::Event
Very simple class to hold event data after reading from a file.
Definition: Event.h:49
top::TrigDecisionLooseSelector::TrigDecisionLooseSelector
TrigDecisionLooseSelector(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).
Definition: TrigDecisionLooseSelector.cxx:14