ATLAS Offline Software
Loading...
Searching...
No Matches
SimpleSelectorExampleTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8#ifndef COLUMNAR_EXAMPLE_TOOLS_SIMPLE_SELECTOR_EXAMPLE_TOOL_H
9#define COLUMNAR_EXAMPLE_TOOLS_SIMPLE_SELECTOR_EXAMPLE_TOOL_H
10
11#include <AsgTools/AsgTool.h>
17
18namespace ADD_CMODE(columnar)
19{
41
42 class SimpleSelectorExampleTool final
43 : public asg::AsgTool,
45 {
46 public:
47
48 // Create a proper constructor for Athena
49 ASG_TOOL_CLASS( SimpleSelectorExampleTool, asg::IAsgTool )
50
51 SimpleSelectorExampleTool (const std::string& name);
52
53 virtual StatusCode initialize () override;
54
55 void callSingleEvent (columnar::ParticleRange particles) const;
56
57 virtual void callEvents (columnar::EventContextRange events) const override;
58
59
61 Gaudi::Property<float> m_ptCut {this, "ptCut", 10e3, "pt cut (in MeV)"};
62
63
69 columnar::ParticleAccessor<columnar::ObjectColumn> particlesHandle {*this, "Particles"};
70
71
78 columnar::ParticleAccessor<float> ptAcc {*this, "pt"};
79
80
89 columnar::ParticleDecorator<char> selectionDec {*this, "selection"};
90 };
91}
92
93#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Base class for the dual-use tool interface classes.
Definition IAsgTool.h:41
the base class for all columnar components
ObjectRange< EventContextDef > EventContextRange
AccessorTemplate< ParticleDef, CT, ColumnAccessMode::input, CM > ParticleAccessor
Definition ParticleDef.h:35
AccessorTemplate< ParticleDef, CT, ColumnAccessMode::output, CM > ParticleDecorator
Definition ParticleDef.h:36
ObjectRange< ParticleDef > ParticleRange
Definition ParticleDef.h:32
void initialize()