ATLAS Offline Software
|
Event selection using the official jet cleaning tool. More...
#include <JetCleaningSelector.h>
Public Member Functions | |
JetCleaningSelector (const std::string &level, std::shared_ptr< top::TopConfig > config) | |
Setup the jet group's cleaning tool. More... | |
bool | apply (const top::Event &event) const override |
Only accept the event if the tool says all the jets are okay. More... | |
std::string | name () const override |
Print the name of the tool and level. More... | |
virtual bool | applyParticleLevel (const top::ParticleLevelEvent &) const |
This does stuff based on the information in a particle level event. More... | |
Private Member Functions | |
bool | checkBadBatman (const top::Event &event) const |
A helper function to check if the event passes BadBatman cleaning in a specified range (from config) of RunNUmbers. More... | |
Private Attributes | |
ToolHandle< IJetSelector > | m_jetCleaningToolLooseBad |
The jet cleaning tools. More... | |
ToolHandle< IJetSelector > | m_jetCleaningToolTightBad |
ToolHandle< ECUtils::IEventCleaningTool > | m_jetEventCleaningToolLooseBad |
The jet event cleaning tools. More... | |
ToolHandle< ECUtils::IEventCleaningTool > | m_jetEventCleaningToolTightBad |
std::string | m_level |
The level to configure to, so we can print it in the name. More... | |
bool | m_useLooseBad |
bool | m_useEventLevelJetCleaningTool |
std::shared_ptr< top::TopConfig > | m_config |
Event selection using the official jet cleaning tool.
Hurray! The jet cleaning tool is one one of the few that exists in xAOD format already)
Call the jet cleaning tool and reject the event if any of the jets that passed the event selection are marked as bad. Probably should check that this is okay after overlap removal.
Definition at line 28 of file JetCleaningSelector.h.
|
explicit |
Setup the jet group's cleaning tool.
The cutlevel is specified in the constructor as a little bit of text.
level | How harsh you want the cleaning to be. For example MediumBad. |
Definition at line 13 of file JetCleaningSelector.cxx.
|
overridevirtual |
Only accept the event if the tool says all the jets are okay.
Implements top::EventSelectorBase.
Definition at line 57 of file JetCleaningSelector.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.
|
private |
A helper function to check if the event passes BadBatman cleaning in a specified range (from config) of RunNUmbers.
Definition at line 110 of file JetCleaningSelector.cxx.
|
overridevirtual |
Print the name of the tool and level.
Implements top::EventSelectorBase.
Definition at line 106 of file JetCleaningSelector.cxx.
|
private |
Definition at line 76 of file JetCleaningSelector.h.
|
private |
The jet cleaning tools.
Definition at line 64 of file JetCleaningSelector.h.
|
private |
Definition at line 65 of file JetCleaningSelector.h.
|
private |
The jet event cleaning tools.
Definition at line 68 of file JetCleaningSelector.h.
|
private |
Definition at line 69 of file JetCleaningSelector.h.
|
private |
The level to configure to, so we can print it in the name.
Definition at line 72 of file JetCleaningSelector.h.
|
private |
Definition at line 74 of file JetCleaningSelector.h.
|
private |
Definition at line 73 of file JetCleaningSelector.h.