ATLAS Offline Software
Loading...
Searching...
No Matches
LinkColumnExampleTool.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_LINK_COLUMN_EXAMPLE_TOOL_H
9#define COLUMNAR_EXAMPLE_TOOLS_LINK_COLUMN_EXAMPLE_TOOL_H
10
11#include <AsgTools/AsgTool.h>
19
20namespace columnar
21{
27
29 : public asg::AsgTool,
30 public ColumnarTool<>
31 {
32 public:
33
34 // Create a proper constructor for Athena
36
37 LinkColumnExampleTool (const std::string& name);
38
39 virtual StatusCode initialize () override;
40
41 virtual void callEvents (EventContextRange events) const override;
42
43
45 Gaudi::Property<float> m_ptCut {this, "ptCut", 10e3, "pt cut (in MeV)"};
46
47
53 MuonAccessor<ObjectColumn> muonsHandle {*this, "AnalysisMuons"};
54
55
62 TrackAccessor<ObjectColumn> trackHandle {*this, "InDetTrackParticles"};
63
64
70 MuonAccessor<OptTrackId> trackLinkAcc {*this, "inDetTrackParticleLink"};
71
72
73
80
81
90 MuonDecorator<char> selectionDec {*this, "selection"};
91 };
92}
93
94#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
MuonAccessor< OptTrackId > trackLinkAcc
the link accessor for the particles
MuonDecorator< char > selectionDec
the selection decorator for the particles
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
virtual void callEvents(EventContextRange events) const override
TrackAccessor< float > trackQOverPAcc
the q/p accessor for the track container
Gaudi::Property< float > m_ptCut
the pt cut to apply
LinkColumnExampleTool(const std::string &name)
MuonAccessor< ObjectColumn > muonsHandle
the object accessor for the muons
TrackAccessor< ObjectColumn > trackHandle
the object accessor for the linked track container
AccessorTemplate< ContainerId::track, CT, ColumnAccessMode::input, CM > TrackAccessor
Definition TrackDef.h:48
AccessorTemplate< ContainerId::muon, CT, ColumnAccessMode::output, CM > MuonDecorator
Definition MuonDef.h:28
ObjectRange< ContainerId::eventContext > EventContextRange
AccessorTemplate< ContainerId::muon, CT, ColumnAccessMode::input, CM > MuonAccessor
Definition MuonDef.h:27