ATLAS Offline Software
ITkPixelEncodingAlg.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "ITkPixelEncodingAlg.h"
10 #include "StoreGate/ReadHandle.h"
13 
14 ITkPixelEncodingAlg::ITkPixelEncodingAlg(const std::string& name, ISvcLocator* pSvcLocator) :
15  AthReentrantAlgorithm(name, pSvcLocator),
16  m_hitSortingTool("ITkPixelHitSortingTool", this)
17 {
18 
19 }
20 
21 
23 {
24 
26 
27  ATH_CHECK(m_hitSortingTool.retrieve());
28 
29  return StatusCode::SUCCESS;
30 }
31 
32 
33 StatusCode ITkPixelEncodingAlg::execute(const EventContext& ctx) const
34 {
35 
37 
38  ATH_CHECK(m_hitSortingTool->sortRDOHits(rdoContainer));
39 
40  return StatusCode::SUCCESS;
41 }
PixelID.h
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
ITkPixelEncodingAlg::initialize
virtual StatusCode initialize() override
Definition: ITkPixelEncodingAlg.cxx:22
ITkPixelEncodingAlg::m_hitSortingTool
ToolHandle< ITkPixelHitSortingTool > m_hitSortingTool
Definition: ITkPixelEncodingAlg.h:36
ITkPixelEncodingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: ITkPixelEncodingAlg.cxx:33
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
InDetRawDataContainer.h
ITkPixelEncodingAlg.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
PixelDetectorManager.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
ITkPixelEncodingAlg::ITkPixelEncodingAlg
ITkPixelEncodingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ITkPixelEncodingAlg.cxx:14
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SiDetectorElement.h
ITkPixelEncodingAlg::m_pixelRDOKey
SG::ReadHandleKey< PixelRDO_Container > m_pixelRDOKey
Definition: ITkPixelEncodingAlg.h:32
PixelModuleDesign.h
ReadHandle.h
Handle class for reading from StoreGate.
InDetRawDataCLASS_DEF.h