ATLAS Offline Software
|
A tool that selects events containing no bad muons https://twiki.cern.ch/twiki/bin/view/Atlas/MuonSelectionTool#is_BadMuon_Flag_Event_Veto. More...
#include <NoBadMuonSelector.h>
Public Member Functions | |
NoBadMuonSelector (std::shared_ptr< top::TopConfig > m_config) | |
Event selection if bad muon detected using the official muon selector tool. More... | |
bool | apply (const top::Event &event) const override |
Events with a muon flagged bad are rejected. More... | |
std::string | name () const override |
The name of the tool. More... | |
virtual bool | applyParticleLevel (const top::ParticleLevelEvent &) const |
This does stuff based on the information in a particle level event. More... | |
Private Attributes | |
ToolHandle< CP::IMuonSelectionTool > | m_muonSelectionTool |
std::shared_ptr< top::TopConfig > | m_config |
A tool that selects events containing no bad muons https://twiki.cern.ch/twiki/bin/view/Atlas/MuonSelectionTool#is_BadMuon_Flag_Event_Veto.
Definition at line 21 of file NoBadMuonSelector.h.
|
explicit |
Event selection if bad muon detected using the official muon selector tool.
Call the muon selector tool and reject the event if any of the muons that passed the event selection are marked as bad.
Definition at line 10 of file NoBadMuonSelector.cxx.
|
overridevirtual |
Events with a muon flagged bad are rejected.
event | The event in question |
Implements top::EventSelectorBase.
Definition at line 18 of file NoBadMuonSelector.cxx.
|
inlinevirtualinherited |
This does stuff based on the information in a particle level event.
The idea is that you implement this to return either true or false, based on the information held within the top::ParticleLevelEvent. If this function returns true, then the event is kept, otherwise it is removed. The function has a default implementation (which returns true) because it is expected that many EventSelector objects do not operate on ParticleLevelEvent objects.
top::ParticleLevelEvent | the current particle level event. |
true | if the event should be kept (i.e. it passed the selector criteria), false otherwise. |
Reimplemented in top::JetNGhostSelector, top::PrintEventSelector, top::PseudoTopRecoRun, top::NElectronNMuonTightSelector, top::NElectronNMuonSelector, top::NFwdElectronSelector, top::HTSelector, top::OSLeptonTightSelector, top::MLLSelector, top::MWTSelector, top::NElectronTightSelector, top::NFwdElectronTightSelector, top::NMuonTightSelector, top::OSLeptonSelector, top::METMWTSelector, top::METSelector, top::MLLWindow, top::NElectronSelector, top::NJetSelector, top::NMuonSelector, top::NPhotonSelector, top::NSoftMuonSelector, top::NTauSelector, top::SSLeptonTightSelector, top::SSLeptonSelector, top::ParticleLevelSelector, top::RecoLevelSelector, top::NVarRCJetSelector, top::NLargeJetSelector, and top::NRCJetSelector.
Definition at line 73 of file EventSelectorBase.h.
|
overridevirtual |
The name of the tool.
Implements top::EventSelectorBase.
Definition at line 30 of file NoBadMuonSelector.cxx.
|
private |
Definition at line 48 of file NoBadMuonSelector.h.
|
private |
Definition at line 46 of file NoBadMuonSelector.h.