ATLAS Offline Software
Loading...
Searching...
No Matches
columnar::ModularExampleTool::SubtoolEta Struct Reference

a simple subobject that does a selection on eta More...

#include <ModularExampleTool.h>

Inheritance diagram for columnar::ModularExampleTool::SubtoolEta:
Collaboration diagram for columnar::ModularExampleTool::SubtoolEta:

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

Detailed Description

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 101 of file ModularExampleTool.h.

Constructor & Destructor Documentation

◆ SubtoolEta()

columnar::ModularExampleTool::SubtoolEta::SubtoolEta ( ColumnarTool<> * parent,
float val_cutValue )

Definition at line 82 of file ModularExampleTool.cxx.

84 : ColumnarTool<> (val_parent), m_cutValue (val_cutValue)
85 {}

Member Function Documentation

◆ select()

bool columnar::ModularExampleTool::SubtoolEta::select ( ParticleId particle) const

Definition at line 89 of file ModularExampleTool.cxx.

91 {
92 return std::abs(etaAcc(particle)) < m_cutValue;
93 }

Member Data Documentation

◆ etaAcc

ParticleAccessor<float> columnar::ModularExampleTool::SubtoolEta::etaAcc {*this, "eta"}

Definition at line 106 of file ModularExampleTool.h.

106{*this, "eta"};

◆ m_cutValue

float columnar::ModularExampleTool::SubtoolEta::m_cutValue = 0

Definition at line 107 of file ModularExampleTool.h.


The documentation for this struct was generated from the following files: