ATLAS Offline Software
Loading...
Searching...
No Matches
SpacePointCopier.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef HIGLOBAL_SPACEPOINTCOPIER_H
5#define HIGLOBAL_SPACEPOINTCOPIER_H
6
12
13#include <string>
14
20public:
21 SpacePointCopier(const std::string& name, ISvcLocator* pSvcLocator);
22 virtual ~SpacePointCopier() override;
23
24 virtual StatusCode initialize() override;
25 virtual StatusCode execute(const EventContext& context) const override;
26 virtual StatusCode finalize() override;
27
28private:
29 SG::ReadHandleKey<SpacePointContainer> m_pixelSPKey{this, "PixelsSPKey", "PixelSpacePoints", "Pixel SP collection name"};
30 SG::ReadHandleKey<SpacePointContainer> m_SCTSPKey{this, "SCTSPKey", "SCT_SpacePoints", "SCT SP collection name"};
31 SG::ReadHandleKey<xAOD::TrackParticleContainer> m_tracksKey{this, "TracksKey", "InDetTrackParticles", "Tracks collection name"};
32 SG::WriteHandleKey<xAOD::BaseContainer> m_outputKey{this, "OutputCollectionKey", "SpacePoints", "name of output container"};
33
34 Gaudi::Property<size_t> m_maxPixSP{this, "maxPixelSP", std::numeric_limits<size_t>::max(), "Skip conversion in events that have more than this pixel SP"};
35 Gaudi::Property<size_t> m_maxSCTSP{this, "maxSCTSP", std::numeric_limits<size_t>::max(), "Skip conversion in events that have more than this SCT SP"};
36 Gaudi::Property<size_t> m_maxTotalSP{this, "maxTotalSP", std::numeric_limits<size_t>::max(), "Skip conversion in events that have more than this total SP"};
37 Gaudi::Property<size_t> m_maxTracks{this, "maxTracks", std::numeric_limits<size_t>::max(), "Skip conversion in events has more tracks"};
38
39};
40
41#endif // HIGLOBAL_SPACEPOINTCOPIER_H
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.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksKey
virtual StatusCode execute(const EventContext &context) const override
SpacePointCopier(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< size_t > m_maxTracks
SG::WriteHandleKey< xAOD::BaseContainer > m_outputKey
Gaudi::Property< size_t > m_maxPixSP
Gaudi::Property< size_t > m_maxTotalSP
virtual ~SpacePointCopier() override
virtual StatusCode finalize() override
SG::ReadHandleKey< SpacePointContainer > m_pixelSPKey
Gaudi::Property< size_t > m_maxSCTSP
SG::ReadHandleKey< SpacePointContainer > m_SCTSPKey
virtual StatusCode initialize() override