ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticleMergerAlg.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2//
3// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4//
5#ifndef TRACKINGANALYSISALGORITHMS_TRACKPARTICLEMERGERALG_H
6#define TRACKINGANALYSISALGORITHMS_TRACKPARTICLEMERGERALG_H
7
11
17
18namespace CP {
19
31
32 public:
35
38
40 virtual StatusCode initialize() override final;
41
43 virtual StatusCode execute(const EventContext& ctx) const override final;
44
46
47 private:
50 // Declare the algorithm's properties:
51
54 this, "InputTrackParticleLocations", {"InDetTrackParticles", "InDetLargeD0TrackParticles"},
55 "Input track collections to be merged"
56 };
57
60 this, "OutputTrackParticleLocationCopy", "InDetWithLRTTrackParticles", "Output collection name"
61 };
63 this, "OutputTrackParticleLocation", "InDetWithLRTTrackParticles", "Output view collection name"
64 };
65
67 Gaudi::Property<bool> m_createViewCollection{this, "CreateViewCollection", true};
68
71 this, "RequiredDecorations", {}, "Decorations that the algorithm needs to wait for"};
72
73
75
76 }; // class TrackParticleMergerAlg
77
78} // namespace CP
79
80#endif // TRACKINGANALYSISALGORITHMS_TRACKPARTICLEMERGERALG_H
Property holding a SG store/key/clid from which a WriteHandle is made.
DataVector adapter that acts like it holds const pointers.
Algorithm to merge multiple track collections into one.
virtual StatusCode execute(const EventContext &ctx) const override final
Function executing the algorithm.
SG::ReadDecorHandleKeyArray< xAOD::TrackParticleContainer > m_requiredDecorations
Extra guard for deep-copy mode.
SG::WriteHandleKey< ConstDataVector< xAOD::TrackParticleContainer > > m_outputTrackParticleLocationView
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_outputTrackParticleLocationCopy
Output collection name.
virtual StatusCode initialize() override final
Function initialising the algorithm.
SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > m_inputTrackParticleLocations
Input track collections to be merged.
Gaudi::Property< bool > m_createViewCollection
Option to create a view collection and not deep-copy tracks.
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Property holding a SG store/key/clid from which a WriteHandle is made.
Select isolated Photons, Electrons and Muons.
DecorHandleKeyArray< ReadDecorHandle< T, S >, ReadDecorHandleKey< T >, Gaudi::DataHandle::Reader > ReadDecorHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray