ATLAS Offline Software
EventSelectorBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef EVENTSELECTORBASE_H_
6 #define EVENTSELECTORBASE_H_
7 
8 #include "TopEvent/Event.h"
9 
11 
12 namespace top {
21  public:
26 
30  virtual ~EventSelectorBase() {}
31 
36 
41 
46 
57  virtual bool apply(const top::Event&) const = 0;
58 
73  virtual bool applyParticleLevel(const top::ParticleLevelEvent&) const {return true;}
74 
81  virtual std::string name() const = 0;
82  };
83 } //namespace top
84 
85 #endif
top::EventSelectorBase::name
virtual std::string name() const =0
A human readable name.
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
top::EventSelectorBase::applyParticleLevel
virtual bool applyParticleLevel(const top::ParticleLevelEvent &) const
This does stuff based on the information in a particle level event.
Definition: EventSelectorBase.h:73
top::EventSelectorBase::EventSelectorBase
EventSelectorBase()
Default constructor, doesn't do anything.
Definition: EventSelectorBase.h:25
top::EventSelectorBase::~EventSelectorBase
virtual ~EventSelectorBase()
Default destructor, doesn't do anything.
Definition: EventSelectorBase.h:30
top::EventSelectorBase::operator=
EventSelectorBase & operator=(const EventSelectorBase &)=delete
Assignment is not allowed.
top::ParticleLevelEvent
Definition: ParticleLevelEvent.h:24
Event.h
top::EventSelectorBase
This should apply event-level cuts and perform simple plotting on top::Event objects.
Definition: EventSelectorBase.h:20
top::EventSelectorBase::apply
virtual bool apply(const top::Event &) const =0
This does stuff based on the information in an event.
top::EventSelectorBase::EventSelectorBase
EventSelectorBase(const EventSelectorBase &&)=delete
Move is not allowed.
top::Event
Very simple class to hold event data after reading from a file.
Definition: Event.h:49
ParticleLevelEvent.h
top::EventSelectorBase::EventSelectorBase
EventSelectorBase(const EventSelectorBase &)=delete
Copy is not allowed.