A class to select electrons. More...
#include <ElectronSelector.h>
Public Member Functions | |
ElectronSelector () | |
Default ctor. | |
ElectronSelector & | setAnalysis (const AnalysisType &analysis) |
dtor (for now we don't have anything to delete) | |
virtual bool | isBaseline (const Electron *el) |
whether el passes the baseline criteria | |
virtual bool | isSignal (const Electron *el) |
whether el passes the signal criteria | |
virtual bool | passIpCut (const Electron &el) |
virtual bool | outsideCrackRegion (const Electron &el) |
ElectronId | signalId () const |
id of signal electron, used to determine err SF | |
ElectronSelector & | setSignalId (const ElectronId &v) |
set signal isolation | |
Isolation | signalIsolation () const |
Retrieve the isolation requirement for signal electrons. | |
ElectronSelector & | setSignalIsolation (const Isolation &v) |
set signal isolation | |
float | effSF (const Electron &ele) |
float | effSF (const Electron *ele) |
wraps above | |
float | errEffSF (const Electron &ele, const NtSys::SusyNtSys sys) |
Error on the efficiency for the requested systematic. | |
float | errEffSF (const Electron *ele, const NtSys::SusyNtSys sys) |
wraps above | |
Static Public Member Functions | |
static ElectronSelector * | build (const AnalysisType &a, bool verbose) |
Protected Attributes | |
ElectronId | m_signalId |
electron quality requirement (selected from eleID enum) | |
Isolation | m_signalIsolation |
electron isolation qualiy for signal electrons (c.f. SusyNtuple/Isolation.h) | |
bool | m_verbose |
A class to select electrons.
The generic ElectronSelector implements the generic definitions from https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/SusyObjectDefinitionsr2013TeV#Electrons
Analysis-dependent criteria should be implemented in your analysis-specific class inheriting from ElectronSelector.
The analysis-specific selector should be instantiated with ElectronsSelector::build().
For details on the design and implementation of this class, see the documentation for JetSelector.
davide.gerbaudo@gmail.com, Sep 2015
float Susy::ElectronSelector::effSF | ( | const Electron & | ele | ) |
Get the input electron "ele"'s nominal efficicncy SF
bool Susy::ElectronSelector::isBaseline | ( | const Electron * | el | ) | [virtual] |
whether el passes the baseline criteria
Usually ID + pt + eta + d0sig
bool Susy::ElectronSelector::isSignal | ( | const Electron * | el | ) | [virtual] |
whether el passes the signal criteria
Usually baseline + impact parameter + isolation.
ElectronSelector& Susy::ElectronSelector::setSignalId | ( | const ElectronId & | v | ) | [inline] |
set signal isolation
Note: the value you set here should match whatever you have in _your_ (overriding) implementation of isSignalElectron()
ElectronSelector& Susy::ElectronSelector::setSignalIsolation | ( | const Isolation & | v | ) | [inline] |
set signal isolation
Note: the value you set here should match whatever you have in _your_ (overriding) implementation of isSignalElectron()
Isolation Susy::ElectronSelector::signalIsolation | ( | ) | const [inline] |
Retrieve the isolation requirement for signal electrons.
This is helpful for other tools that need to know how the electrons are defined.