![]() |
ATLAS Offline Software
|
a simple subobject that does a selection on eta More...
#include <ModularExampleTool.h>
Public Member Functions | |
SubtoolEta (ColumnarTool<> *parent, float val_cutValue) | |
bool | select (ParticleId particle) const |
Public Attributes | |
ParticleAccessor< float > | etaAcc {*this, "eta"} |
float | m_cutValue = 0 |
a simple subobject that does a selection on eta
This is a bit of a silly example, but many tools will have some subobjects that need accessors.
This class demonstrates taking the parent tool in the constructor, to avoid having to declare containers the parent tool already declared.
Definition at line 105 of file ModularExampleTool.h.
columnar::ModularExampleTool::SubtoolEta::SubtoolEta | ( | ColumnarTool<> * | parent, |
float | val_cutValue | ||
) |
Definition at line 82 of file ModularExampleTool.cxx.
bool columnar::ModularExampleTool::SubtoolEta::select | ( | ParticleId | particle | ) | const |
Definition at line 89 of file ModularExampleTool.cxx.
ParticleAccessor<float> columnar::ModularExampleTool::SubtoolEta::etaAcc {*this, "eta"} |
Definition at line 110 of file ModularExampleTool.h.
float columnar::ModularExampleTool::SubtoolEta::m_cutValue = 0 |
Definition at line 111 of file ModularExampleTool.h.