ATLAS Offline Software
Private Member Functions | List of all members
top::PrintEventSelector Class Reference

Print some information about the event to the screen. More...

#include <PrintEventSelector.h>

Inheritance diagram for top::PrintEventSelector:
Collaboration diagram for top::PrintEventSelector:

Private Member Functions

bool apply (const top::Event &event) const override
 For each event print some information about it to the terminal. More...
 
bool applyParticleLevel (const top::ParticleLevelEvent &plEvent) const override
 This does stuff based on the information in a particle level event. More...
 
std::string name () const override
 The word PRINT. More...
 

Detailed Description

Print some information about the event to the screen.

Prints the run number, event number, mu, and lists of 4-vectors for good electrons, muons and jets and the event missing ET.

Definition at line 17 of file PrintEventSelector.h.

Member Function Documentation

◆ apply()

bool top::PrintEventSelector::apply ( const top::Event event) const
overrideprivatevirtual

For each event print some information about it to the terminal.

Returns
Also marks the event as passed.

Implements top::EventSelectorBase.

Definition at line 15 of file PrintEventSelector.cxx.

15  {
16  //print some stuff about the event
18  return true;
19  }

◆ applyParticleLevel()

bool top::PrintEventSelector::applyParticleLevel ( const top::ParticleLevelEvent ) const
overrideprivatevirtual

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 from top::EventSelectorBase.

Definition at line 21 of file PrintEventSelector.cxx.

21  {
22  //print some stuff about the event
23  ATH_MSG_INFO("Particle Level\n" << plEvent);
24  return true;
25  }

◆ name()

std::string top::PrintEventSelector::name ( ) const
overrideprivatevirtual

The word PRINT.

Implements top::EventSelectorBase.

Definition at line 27 of file PrintEventSelector.cxx.

27  {
28  return "PRINT";
29  }

The documentation for this class was generated from the following files:
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
event
POOL::TEvent event(POOL::TEvent::kClassAccess)