ATLAS Offline Software
Loading...
Searching...
No Matches
AddTrackSummaryAlg.h
Go to the documentation of this file.
1// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3#ifndef ADDTRACKSUMMARYALG_H
4#define ADDTRACKSUMMARYALG_H
5
12#include "GaudiKernel/ToolHandle.h"
13
14namespace Trk {
15
25public:
26 AddTrackSummaryAlg(const std::string& name, ISvcLocator* pSvcLocator);
27 virtual ~AddTrackSummaryAlg() = default;
28
29 virtual StatusCode initialize() override;
30 virtual StatusCode execute(const EventContext& ctx) const override;
31
32private:
35 this, "InputTrackCollection", "", "Input track collection to add summaries to"};
36
39 this, "OutputTrackCollection", "", "Output track collection with summaries added"};
40
42 ToolHandle<Trk::ITrackSummaryTool> m_trackSummaryTool{
43 this, "TrackSummaryTool", "", "Track summary tool"};
44
45 //Make AddTrackSummaryAlg only run for pileup tracks that could possibly pass the extension/scoring preselection
46 Gaudi::Property<float> m_minPt{this, "MinPt", 0.0, "Only add summary if pT > MinPt [MeV]"};
47 Gaudi::Property<float> m_maxAbsEta{this, "MaxAbsEta", 99.0, "Only add summary if |eta| < MaxAbsEta"};
48};
49
50} // namespace Trk
51
52#endif // ADDTRACKSUMMARYALG_H
53
DataVector adapter that acts like it holds const pointers.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
AddTrackSummaryAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
SG::WriteHandleKey< ConstDataVector< TrackCollection > > m_outputTrackCollection
Output track collection with summaries added.
virtual ~AddTrackSummaryAlg()=default
Gaudi::Property< float > m_minPt
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< TrackCollection > m_inputTrackCollection
Input track collection (read-only)
Gaudi::Property< float > m_maxAbsEta
ToolHandle< Trk::ITrackSummaryTool > m_trackSummaryTool
Track summary tool.
Ensure that the ATLAS eigen extensions are properly loaded.