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-2025 CERN for the benefit of the ATLAS collaboration
4//
5#ifndef TRACKINGANALYSISALGORITHMS_TRACKPARTICLEMERGERALG_H
6#define TRACKINGANALYSISALGORITHMS_TRACKPARTICLEMERGERALG_H
7
11
20
21#include <string>
22
23namespace CP {
24
36
37 public:
39 TrackParticleMergerAlg( const std::string& name, ISvcLocator* svcLoc );
40
43
45 virtual StatusCode initialize() override final;
46
48 virtual StatusCode execute(const EventContext& ctx) const override final;
49
51
52 private:
55 // Declare the algorithm's properties:
56
59 this, "InputTrackParticleLocations", {"InDetTrackParticles", "InDetLargeD0TrackParticles"},
60 "Input track collections to be merged"
61 };
62
65 this, "OutputTrackParticleLocationCopy", "InDetWithLRTTrackParticles", "Output collection name"
66 };
68 this, "OutputTrackParticleLocation", "InDetWithLRTTrackParticles", "Output view collection name"
69 };
70
72 Gaudi::Property<bool> m_createViewCollection{this, "CreateViewCollection", true};
73
76 this, "RequiredDecorations", {}, "Decorations that the algorithm needs to wait for"};
77
78
80
81 }; // class TrackParticleMergerAlg
82
83} // namespace CP
84
85#endif // TRACKINGANALYSISALGORITHMS_TRACKPARTICLEMERGERALG_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Handle class for reading from StoreGate.
Property holding a SG store/key/clid from which a WriteHandle is made.
Handle class for recording to StoreGate.
DataVector adapter that acts like it holds const pointers.
virtual StatusCode execute(const EventContext &ctx) const override final
Function executing the algorithm.
TrackParticleMergerAlg(const std::string &name, ISvcLocator *svcLoc)
Algorithm constructor.
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
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