ATLAS Offline Software
NoBadMuonSelector.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 NOBADMUONSELECTOR_H_
6 #define NOBADMUONSELECTOR_H_
7 
9 
10 #include "AsgTools/ToolHandle.h"
12 
13 namespace top {
14  class TopConfig;
15 
22  public:
29  explicit NoBadMuonSelector(std::shared_ptr<top::TopConfig> m_config);
30 
37  bool apply(const top::Event& event) const override;
38 
44  std::string name() const override;
45  private:
46  ToolHandle<CP::IMuonSelectionTool> m_muonSelectionTool;
47 
48  std::shared_ptr<top::TopConfig> m_config;
49  };
50 }
51 
52 #endif
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
top::NoBadMuonSelector::name
std::string name() const override
The name of the tool.
Definition: NoBadMuonSelector.cxx:30
top::NoBadMuonSelector::apply
bool apply(const top::Event &event) const override
Events with a muon flagged bad are rejected.
Definition: NoBadMuonSelector.cxx:18
IMuonSelectionTool.h
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
top::NoBadMuonSelector::NoBadMuonSelector
NoBadMuonSelector(std::shared_ptr< top::TopConfig > m_config)
Event selection if bad muon detected using the official muon selector tool.
Definition: NoBadMuonSelector.cxx:10
top::NoBadMuonSelector::m_muonSelectionTool
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool
Definition: NoBadMuonSelector.h:46
top::EventSelectorBase
This should apply event-level cuts and perform simple plotting on top::Event objects.
Definition: EventSelectorBase.h:20
top::NoBadMuonSelector::m_config
std::shared_ptr< top::TopConfig > m_config
Definition: NoBadMuonSelector.h:48
EventSelectorBase.h
top::Event
Very simple class to hold event data after reading from a file.
Definition: Event.h:49
ToolHandle.h
top::NoBadMuonSelector
A tool that selects events containing no bad muons https://twiki.cern.ch/twiki/bin/view/Atlas/MuonSel...
Definition: NoBadMuonSelector.h:21