ATLAS Offline Software
AntiMuon.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 ANTIMUON_H_
6 #define ANTIMUON_H_
7 
10 
11 #include "AsgTools/ToolHandle.h"
13 
14 namespace top {
18  class AntiMuon: public MuonSelectionBase {
19  public:
27  AntiMuon(const double ptcut, AntiMuonIsolation* isolation);
28 
30  virtual ~AntiMuon() {}
31 
38  virtual bool passSelection(const xAOD::Muon& mu) const override;
39 
46  virtual bool passSelectionLoose(const xAOD::Muon& mu) const override;
47 
49  virtual void print(std::ostream& os) const override;
50  protected:
52  double m_ptcut;
53 
55  ToolHandle<CP::IMuonSelectionTool> m_muonSelectionTool;
56 
58  std::unique_ptr<top::AntiMuonIsolation> m_isolation;
59  };
60 }
61 
62 #endif
top::AntiMuon::m_ptcut
double m_ptcut
Lower pT threshold to apply to object selection.
Definition: AntiMuon.h:52
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
top::AntiMuon::passSelection
virtual bool passSelection(const xAOD::Muon &mu) const override
Implements the logic to select good muons.
Definition: AntiMuon.cxx:17
top::AntiMuon::m_muonSelectionTool
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool
Proper tool to select muons.
Definition: AntiMuon.h:55
top::AntiMuon::~AntiMuon
virtual ~AntiMuon()
Does nothing.
Definition: AntiMuon.h:30
top::AntiMuon::AntiMuon
AntiMuon(const double ptcut, AntiMuonIsolation *isolation)
Construct the tool to select good muons.
Definition: AntiMuon.cxx:10
Pythia8_A14_NNPDF23LO_forMGHT_EvtGen.ptcut
float ptcut
Definition: Pythia8_A14_NNPDF23LO_forMGHT_EvtGen.py:9
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
top::AntiMuon::passSelectionLoose
virtual bool passSelectionLoose(const xAOD::Muon &mu) const override
The loose selection needed by some background estimates.
Definition: AntiMuon.cxx:25
IMuonSelectionTool.h
top::AntiMuonIsolation
Apply the cuts relevant for Anti-muon model.
Definition: IsolationTools.h:197
IsolationTools.h
top::MuonSelectionBase
Definition: MuonSelectionBase.h:11
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
MuonSelectionBase.h
top::AntiMuon
Select muons based on some early suggestions.
Definition: AntiMuon.h:18
top::AntiMuon::print
virtual void print(std::ostream &os) const override
Print the cuts to the ostream.
Definition: AntiMuon.cxx:31
ToolHandle.h
top::AntiMuon::m_isolation
std::unique_ptr< top::AntiMuonIsolation > m_isolation
Isolation tool, can be nullptr meaning "no isolation requirement".
Definition: AntiMuon.h:58
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53