ATLAS Offline Software
|
Sometimes you may want to select events that pass a certain trigger, or triggers. More...
#include <TrigDecisionLooseSelector.h>
Public Member Functions | |
TrigDecisionLooseSelector (const std::string &selectorName, std::shared_ptr< top::TopConfig > config) | |
A tool to select events that pass a certain trigger (or any trigger in a list). More... | |
virtual bool | apply (const top::Event &event) const override |
Select events based on the 'OR' of a few user defined triggers. More... | |
std::string | name () const override |
TRIGDEC because we might have a tool for trigger matching too at some point. More... | |
virtual bool | applyParticleLevel (const top::ParticleLevelEvent &) const |
This does stuff based on the information in a particle level event. More... | |
Private Attributes | |
std::vector< std::pair< std::string, int > > | m_triggers |
List of triggers to 'or' together for each event. If any one passes, the event passes. More... | |
Sometimes you may want to select events that pass a certain trigger, or triggers.
This code only accepts the event if it passes at least one of the triggers that it was configured with. It does an 'OR' of all the trigger decisions.
This will only be applied on the loose trees (i.e. those with "_Loose" in their names)
For example:
Would select the event if either of those passes.
Definition at line 33 of file TrigDecisionLooseSelector.h.
top::TrigDecisionLooseSelector::TrigDecisionLooseSelector | ( | const std::string & | selectorName, |
std::shared_ptr< top::TopConfig > | config | ||
) |
A tool to select events that pass a certain trigger (or any trigger in a list).
name | The name of the current event selection - e.g. ee |
config | - this will give use a std::vector<std::string> of triggers to check |
Definition at line 14 of file TrigDecisionLooseSelector.cxx.
|
overridevirtual |
Select events based on the 'OR' of a few user defined triggers.
The thinking is you might want to pass e25i or e30 so "TRIGDEC e25i e30".
event | The event in question. Not used by the trigger decision tool. I guess it finds out the information some other, internal, way. |
Implements top::EventSelectorBase.
Definition at line 19 of file TrigDecisionLooseSelector.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 |
TRIGDEC because we might have a tool for trigger matching too at some point.
Implements top::EventSelectorBase.
Definition at line 41 of file TrigDecisionLooseSelector.cxx.
|
private |
List of triggers to 'or' together for each event. If any one passes, the event passes.
Definition at line 59 of file TrigDecisionLooseSelector.h.