Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
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< ObjectColumnparticlesHandle {*this, "Particles"}
 
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 77 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 90 of file ModularExampleTool.h.

◆ particlesHandle

ParticleAccessor<ObjectColumn> columnar::ModularExampleTool::SubtoolPt::particlesHandle {*this, "Particles"}

Definition at line 87 of file ModularExampleTool.h.

◆ ptAcc

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

Definition at line 89 of file ModularExampleTool.h.


The documentation for this struct was generated from the following files:
columnar::ModularExampleTool::SubtoolPt::ptAcc
ParticleAccessor< float > ptAcc
Definition: ModularExampleTool.h:89
columnar::ModularExampleTool::SubtoolPt::m_cutValue
float m_cutValue
Definition: ModularExampleTool.h:90