ATLAS Offline Software
Public Member Functions | List of all members
top::PrimaryVertexSelector Class Reference

Select data events with good Primary vertices following: https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/InDetTrackingPerformanceGuidelines#Vertexing. More...

#include <PrimaryVertexSelector.h>

Inheritance diagram for top::PrimaryVertexSelector:
Collaboration diagram for top::PrimaryVertexSelector:

Public Member Functions

 PrimaryVertexSelector ()
 
virtual ~PrimaryVertexSelector ()
 
virtual bool apply (const top::Event &event) const override
 MC simulation passes, data is checked against the GRL. More...
 
std::string name () const override
 The name of the tool. More...
 
virtual bool applyParticleLevel (const top::ParticleLevelEvent &) const
 This does stuff based on the information in a particle level event. More...
 

Detailed Description

Select data events with good Primary vertices following: https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/InDetTrackingPerformanceGuidelines#Vertexing.

Definition at line 17 of file PhysicsAnalysis/TopPhys/xAOD/TopEventSelectionTools/TopEventSelectionTools/PrimaryVertexSelector.h.

Constructor & Destructor Documentation

◆ PrimaryVertexSelector()

top::PrimaryVertexSelector::PrimaryVertexSelector ( )

Definition at line 9 of file PrimaryVertexSelector.cxx.

9  {
10  }

◆ ~PrimaryVertexSelector()

virtual top::PrimaryVertexSelector::~PrimaryVertexSelector ( )
inlinevirtual

Member Function Documentation

◆ apply()

bool top::PrimaryVertexSelector::apply ( const top::Event event) const
overridevirtual

MC simulation passes, data is checked against the GRL.

Parameters
eventThe event in question
Returns
True for MC simulation, or if the data event is on the GRL.

Implements top::EventSelectorBase.

Definition at line 12 of file PrimaryVertexSelector.cxx.

12  {
13  if (event.m_info->isAvailable<char>("AnalysisTop_PRIVTX")) {
14  if (event.m_info->auxdataConst<char>("AnalysisTop_PRIVTX") == 1) {
15  return true;
16  }
17  }
18  return false;
19  }

◆ applyParticleLevel()

virtual bool top::EventSelectorBase::applyParticleLevel ( const top::ParticleLevelEvent ) const
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.

Parameters
top::ParticleLevelEventthe current particle level event.
trueif 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.

73 {return true;}

◆ name()

std::string top::PrimaryVertexSelector::name ( ) const
overridevirtual

The name of the tool.

Returns
The name of the tool for humans to see.

Implements top::EventSelectorBase.

Definition at line 21 of file PrimaryVertexSelector.cxx.

21  {
22  return "PRIVTX";
23  }

The documentation for this class was generated from the following files:
event
POOL::TEvent event(POOL::TEvent::kClassAccess)