![]() |
ATLAS Offline Software
|
Keep only events that have at least one opposite sign lepton pair. More...
#include <OSLeptonSelector.h>
Public Member Functions | |
bool | apply (const top::Event &event) const override |
This does stuff based on the information in an event. More... | |
bool | applyParticleLevel (const top::ParticleLevelEvent &event) const override |
This does stuff based on the information in a particle level event. More... | |
std::string | name () const override |
A human readable name. More... | |
Keep only events that have at least one opposite sign lepton pair.
Try to find at least one lepton (el, mu) with positive charge, and at least one with negative charge.
Definition at line 17 of file OSLeptonSelector.h.
|
overridevirtual |
This does stuff based on the information in an event.
The idea is that you implement this to return either true or false based on the information held within top::Event. If this returns true then the event is kept. If it returns false then the event is removed.
top::Event | The current event. |
Implements top::EventSelectorBase.
Definition at line 9 of file OSLeptonSelector.cxx.
|
overridevirtual |
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 from top::EventSelectorBase.
Definition at line 24 of file OSLeptonSelector.cxx.
|
overridevirtual |
A human readable name.
Mostly used for printing the cut and value to the screen. Must be implemented for each tool.
Implements top::EventSelectorBase.
Definition at line 46 of file OSLeptonSelector.cxx.