ATLAS Offline Software
Tracking/Acts/ActsDataPreparation/src/CacheCreator.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 "CacheCreator.h"
6 
7 namespace ActsTrk::Cache {
8  CreatorAlg::CreatorAlg(const std::string &name,
9  ISvcLocator *pSvcLocator)
10  : IDCCacheCreatorBase(name,pSvcLocator)
11  {}
12 
14  ATH_MSG_DEBUG("Initializing " << name() << " ...");
15 
18 
22 
25 
29 
30  ATH_CHECK(detStore()->retrieve(m_pix_idHelper, "PixelID"));
32 
33  return StatusCode::SUCCESS;
34  }
35 
36  StatusCode CreatorAlg::execute(const EventContext& ctx) const {
37  ATH_MSG_DEBUG("Executing " << name() << " ...");
38 
39  if (m_do_pixClusters) {
41  ATH_MSG_DEBUG("created pixel cluster container");
42  }
43 
44  if (m_do_stripClusters) {
46  ATH_MSG_DEBUG("created strip cluster container");
47  }
48 
49  if (m_do_pixSpacePoints) {
51  ATH_MSG_DEBUG("created pixel space point container");
52  }
53 
56  ATH_MSG_DEBUG("created strip space point container");
57  }
58 
61  ATH_MSG_DEBUG("created overlap strip space point container");
62  }
63 
64  return StatusCode::SUCCESS;
65  }
66 }
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
ActsTrk::Cache::CreatorAlg::m_stripOSPCacheKey
SG::WriteHandleKey< Handles< xAOD::SpacePoint >::IDCBackend > m_stripOSPCacheKey
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:32
ActsTrk::Cache::CreatorAlg::m_do_stripClusters
bool m_do_stripClusters
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:38
ActsTrk::Cache::CreatorAlg::m_stripSPCacheKey
SG::WriteHandleKey< Handles< xAOD::SpacePoint >::IDCBackend > m_stripSPCacheKey
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:31
IDCCacheCreatorBase::createContainer
StatusCode createContainer(const SG::WriteHandleKey< T > &, long unsigned int, const EventContext &) const
Definition: IDCCacheCreatorBase.h:31
ActsTrk::Cache::CreatorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.cxx:36
ActsTrk::Cache::CreatorAlg::m_strip_idHelper
const SCT_ID * m_strip_idHelper
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:35
CacheCreator.h
ActsTrk::Cache
Definition: Cache.h:25
ActsTrk::Cache::CreatorAlg::m_do_stripOverlapSpacePoints
bool m_do_stripOverlapSpacePoints
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:42
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
ActsTrk::Cache::CreatorAlg::m_pix_idHelper
const PixelID * m_pix_idHelper
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:34
ActsTrk::Cache::CreatorAlg::m_do_pixClusters
bool m_do_pixClusters
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:37
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ActsTrk::Cache::CreatorAlg::m_stripClusterCacheKey
SG::WriteHandleKey< Handles< xAOD::StripCluster >::IDCBackend > m_stripClusterCacheKey
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:28
ActsTrk::Cache::CreatorAlg::m_do_stripSpacePoints
bool m_do_stripSpacePoints
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:41
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SCT_ID::wafer_hash_max
size_type wafer_hash_max(void) const
Definition: SCT_ID.cxx:639
PixelID::wafer_hash_max
size_type wafer_hash_max(void) const
Definition: PixelID.cxx:912
ActsTrk::Cache::CreatorAlg::initialize
virtual StatusCode initialize() override
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.cxx:13
IDCCacheCreatorBase
Definition: IDCCacheCreatorBase.h:13
ActsTrk::Cache::CreatorAlg::CreatorAlg
CreatorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.cxx:8
ActsTrk::Cache::CreatorAlg::m_pixelClusterCacheKey
SG::WriteHandleKey< Handles< xAOD::PixelCluster >::IDCBackend > m_pixelClusterCacheKey
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:27
ActsTrk::Cache::CreatorAlg::m_pixelSPCacheKey
SG::WriteHandleKey< Handles< xAOD::SpacePoint >::IDCBackend > m_pixelSPCacheKey
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:30
ActsTrk::Cache::CreatorAlg::m_do_pixSpacePoints
bool m_do_pixSpacePoints
Definition: Tracking/Acts/ActsDataPreparation/src/CacheCreator.h:40