A class to select muons. More...
#include <MuonSelector.h>
Public Member Functions | |
MuonSelector () | |
Default ctor. | |
virtual bool | isBaseline (const Muon *mu) |
dtor (for now we don't have anything to delete) | |
virtual bool | isSignal (const Muon *mu) |
whether mu passes the signal criteria | |
virtual bool | passIpCut (const Muon *mu) |
whether mu is close enough to the primary vertex | |
virtual float | effSF (const Muon &mu) |
nominal efficiency scale factor of mu | |
virtual float | effSF (const Muon *mu) |
wraps effSF() above | |
virtual float | errEffSF (const Muon &mu, const NtSys::SusyNtSys sys) |
systematic error on the efficiency SF of mu | |
virtual float | errEffSF (const Muon *mu, const NtSys::SusyNtSys sys) |
wraps errEffSF() above | |
Isolation | signalIsolation () const |
isolation required for signal muon | |
MuonSelector & | setSignalIsolation (const Isolation &v) |
set signal isolation | |
MuonId | signalId () const |
id of signal muon, used to determine err SF | |
MuonSelector & | setSignalId (const MuonId &v) |
MuonSelector & | setVerbose (const bool &v) |
bool | verbose () const |
Static Public Member Functions | |
static MuonSelector * | build (const AnalysisType &a, bool verbose) |
provide analysis-specific selector (or vanilla one if analysis is unknown) | |
Protected Attributes | |
MuonId | m_signalId |
required quality of the signal muon | |
Isolation | m_signalIsolation |
required to propagate to OverlapTools | |
bool | m_verbose |
A class to select muons.
The generic MuonSelector implements the generic definitions from https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/SusyObjectDefinitionsr2013TeV#Muons
Analysis-dependent criteria should be implemented in your analysis-specific class inheriting from MuonSelector.
The analysis-specific selector should be instantiated with MuonsSelector::build().
For details on the design and implementation of this class, see the documentation for JetSelector.
davide.gerbaudo@gmail.com, Sep 2015
MuonSelector * Susy::MuonSelector::build | ( | const AnalysisType & | a, |
bool | verbose | ||
) | [static] |
provide analysis-specific selector (or vanilla one if analysis is unknown)
The user owns the selector (i.e. should use std::shared_ptr or delete it when done with it).
bool Susy::MuonSelector::isBaseline | ( | const Muon * | mu | ) | [virtual] |
dtor (for now we don't have anything to delete)
whether mu passes the baseline criteria
bool Susy::MuonSelector::isSignal | ( | const Muon * | mu | ) | [virtual] |
whether mu passes the signal criteria
Usually baseline + impact parameter + isolation.
MuonSelector& Susy::MuonSelector::setSignalId | ( | const MuonId & | v | ) | [inline] |
Note: the value you set here should match whatever you have in _your_ (overriding) implementation of isSignal()
MuonSelector& Susy::MuonSelector::setSignalIsolation | ( | const Isolation & | v | ) | [inline] |
set signal isolation
Note: the value you set here should match whatever you have in _your_ (overriding) implementation of isSignal()