ATLAS Offline Software
Loading...
Searching...
No Matches
ExtendTrackToLayerTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGEFMISSINGET_EXTENDTRACKTOLAYERTOOL_H
6#define TRIGEFMISSINGET_EXTENDTRACKTOLAYERTOOL_H
7
9#include "AsgTools/AsgTool.h"
10#include "AsgTools/ToolHandle.h"
12#include "CaloGeoHelpers/CaloSampling.h"
13
21{
22public:
24
25 ExtendTrackToLayerTool(const std::string &name);
26
27 virtual StatusCode initialize() override;
28
30 const EventContext& ctx,
31 const xAOD::TrackParticle &track) const override;
32private:
33 ToolHandle<Trk::IParticleCaloExtensionTool> m_extensionTool{
34 this, "ExtensionTool", "", "The track extension tool"};
35 Gaudi::Property<std::vector<std::string>> m_caloLayerNames{
36 this, "CaloLayerNames", {"EMB2", "EME2"}, "The (ordered) names of layers to which to extend."};
37
38 // Internals
40 std::vector<CaloSampling::CaloSample> m_caloLayers;
41}; //> end class ExtendTrackToLayerTool
42
43#endif //> !TRIGEFMISSINGET_EXTENDTRACKTOLAYERTOOL_H
ASG_TOOL_CLASS(ExtendTrackToLayerTool, IExtendTrackToLayerTool)
ToolHandle< Trk::IParticleCaloExtensionTool > m_extensionTool
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
std::vector< CaloSampling::CaloSample > m_caloLayers
The calo layer enums.
Gaudi::Property< std::vector< std::string > > m_caloLayerNames
ExtendTrackToLayerTool(const std::string &name)
virtual TrackExtension extendTrack(const EventContext &ctx, const xAOD::TrackParticle &track) const override
Extend the track to a given layer.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Helper struct to hold track extrapolation information.