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

a simple subobject that does a selection on the pt More...

#include <ModularExampleTool.h>

Inheritance diagram for columnar::ModularExampleTool::SubtoolPt:
Collaboration diagram for columnar::ModularExampleTool::SubtoolPt:

Public Member Functions

 SubtoolPt (float val_cutValue)
bool select (ParticleId particle) const

Public Attributes

ParticleAccessor< float > ptAcc {*this, "pt"}
float m_cutValue = 0

Detailed Description

a simple subobject that does a selection on the pt

This is a bit of a silly example, but many tools will have some subobjects that need accessors.

Definition at line 80 of file ModularExampleTool.h.

Constructor & Destructor Documentation

◆ SubtoolPt()

columnar::ModularExampleTool::SubtoolPt::SubtoolPt ( float val_cutValue)

Definition at line 67 of file ModularExampleTool.cxx.

69 : m_cutValue (val_cutValue)
70 {}

Member Function Documentation

◆ select()

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

Definition at line 74 of file ModularExampleTool.cxx.

76 {
77 return ptAcc(particle) > m_cutValue;
78 }

Member Data Documentation

◆ m_cutValue

float columnar::ModularExampleTool::SubtoolPt::m_cutValue = 0

Definition at line 86 of file ModularExampleTool.h.

◆ ptAcc

ParticleAccessor<float> columnar::ModularExampleTool::SubtoolPt::ptAcc {*this, "pt"}

Definition at line 85 of file ModularExampleTool.h.

85{*this, "pt"};

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