ATLAS Offline Software
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 
20 public:
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 
28 private:
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
SpacePointCopier::m_tracksKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksKey
Definition: SpacePointCopier.h:31
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
AuxContainerBase.h
SpacePointCopier::SpacePointCopier
SpacePointCopier(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SpacePointCopier.cxx:12
SG::ReadHandleKey< SpacePointContainer >
SpacePointCopier::m_maxTotalSP
Gaudi::Property< size_t > m_maxTotalSP
Definition: SpacePointCopier.h:36
SpacePointContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SpacePointCopier::initialize
virtual StatusCode initialize() override
Definition: SpacePointCopier.cxx:21
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
SpacePointCopier::m_maxSCTSP
Gaudi::Property< size_t > m_maxSCTSP
Definition: SpacePointCopier.h:35
SpacePointCopier::m_maxPixSP
Gaudi::Property< size_t > m_maxPixSP
Definition: SpacePointCopier.h:34
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SpacePointCopier::m_pixelSPKey
SG::ReadHandleKey< SpacePointContainer > m_pixelSPKey
Definition: SpacePointCopier.h:29
AthReentrantAlgorithm.h
SpacePointCopier::m_maxTracks
Gaudi::Property< size_t > m_maxTracks
Definition: SpacePointCopier.h:37
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SpacePointCopier
Definition: SpacePointCopier.h:19
SpacePointCopier::m_outputKey
SG::WriteHandleKey< xAOD::BaseContainer > m_outputKey
Definition: SpacePointCopier.h:32
SpacePointCopier::finalize
virtual StatusCode finalize() override
Definition: SpacePointCopier.cxx:30
BaseContainer.h
SpacePointCopier::~SpacePointCopier
virtual ~SpacePointCopier() override
Definition: SpacePointCopier.cxx:17
SpacePointCopier::m_SCTSPKey
SG::ReadHandleKey< SpacePointContainer > m_SCTSPKey
Definition: SpacePointCopier.h:30
TrackParticleContainer.h
SpacePointCopier::execute
virtual StatusCode execute(const EventContext &context) const override
Definition: SpacePointCopier.cxx:35