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