ATLAS Offline Software
InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.cxx
Go to the documentation of this file.
1 /*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #include "CacheCreator.h"
7 
10 #include "InDetIdentifier/SCT_ID.h"
11 
13 #include "AthViews/View.h"
14 namespace InDet{
15 
16  CacheCreator::CacheCreator(const std::string &name, ISvcLocator *pSvcLocator) :
17  IDCCacheCreatorBase(name,pSvcLocator),
18  m_pTRTHelper(nullptr),
19  m_pix_idHelper(nullptr),
20  m_sct_idHelper(nullptr)
21  {
22  }
23 
24 
37  if (!m_disableTRT.value()) ATH_CHECK(detStore()->retrieve(m_pTRTHelper , "TRT_ID"));
39  ATH_CHECK(detStore()->retrieve(m_pix_idHelper, "PixelID"));
40  if(m_disableWarning) m_disableWarningCheck.test_and_set(std::memory_order_relaxed);
41  return StatusCode::SUCCESS;
42  }
43 
44  CacheCreator::~CacheCreator() = default;
45 
46 
47 
48  StatusCode CacheCreator::execute (const EventContext& ctx) const
49  {
50 
52 
53  if (!m_disableTRT.value()) {
56  }
57 
59 
61 
63 
65 
67 
69 
71 
73 
74  //=========================================================
75  // Size of Pixel BS Error container
76  //
77  // The error would be stored not only for module but also each FE (x16) per module.
78  // In addition, IBL FEI4 provides error counter between trigger, this also extends
79  // the size beyond nominal module + FE ID. These numbers come from the hardware
80  // specification so that there is no easy way to document in the header file.
81  // Rather, put the hardcoded number here since m_pix_idHelper does not have it.
82  //
83  // Total number of pixel modules: 2048
84  // Number of FE chips per module: 16
85  // -------------------------------------
86  // 2048 x 17 (module + FE) = 34816
87  //
88  // IBL extra error information :
89  // 280(module) x 2(FE) x 32(error counter) = 35840
90  // -------------------------------------
91  // Total : 70656
92  //=========================================================
94 
95  return StatusCode::SUCCESS;
96  }
97 }
98 
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
PixelID.h
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
SCT_ID.h
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
InDet::CacheCreator::m_disableTRT
BooleanProperty m_disableTRT
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:67
IDCCacheCreatorBase::createContainer
StatusCode createContainer(const SG::WriteHandleKey< T > &, long unsigned int, const EventContext &) const
Definition: IDCCacheCreatorBase.h:31
InDet::CacheCreator::m_SCTBSErrCacheKey
SG::WriteHandleKey< IDCInDetBSErrContainer_Cache > m_SCTBSErrCacheKey
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:56
InDet::CacheCreator::m_SCTclusterContainerCacheKey
SG::WriteHandleKey< SCT_ClusterContainerCache > m_SCTclusterContainerCacheKey
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:46
InDet::CacheCreator::m_SCTSpacePointCacheKey
SG::WriteHandleKey< SpacePointCache > m_SCTSpacePointCacheKey
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:52
InDet::CacheCreator::m_PIXclusterContainerCacheKey
SG::WriteHandleKey< InDet::PixelClusterContainerCache > m_PIXclusterContainerCacheKey
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:48
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
TRT_ID::straw_layer_hash_max
size_type straw_layer_hash_max(void) const
Definition: TRT_ID.h:920
TRT_ID.h
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
CacheCreator.h
IDCCacheCreatorBase::checkInsideViewOnce
StatusCode checkInsideViewOnce(const EventContext &) const
Definition: IDCCacheCreatorBase.cxx:21
InDet::CacheCreator::m_PIXSpacePointCacheKey
SG::WriteHandleKey< SpacePointCache > m_PIXSpacePointCacheKey
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:50
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
IDCCacheCreatorBase::createValueContainer
StatusCode createValueContainer(const SG::WriteHandleKey< T > &, long unsigned int, const EventContext &, const X &defaultValue) const
Definition: IDCCacheCreatorBase.h:46
InDet::CacheCreator::initialize
virtual StatusCode initialize() override
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.cxx:25
InDet::CacheCreator::~CacheCreator
virtual ~CacheCreator()
InDet::CacheCreator::m_SCTFlaggedCondCacheKey
SG::WriteHandleKey< IDCInDetBSErrContainer_Cache > m_SCTFlaggedCondCacheKey
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:58
InDet::CacheCreator::CacheCreator
CacheCreator(const std::string &name, ISvcLocator *pSvcLocator)
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.cxx:16
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDet::CacheCreator::m_sct_idHelper
const SCT_ID * m_sct_idHelper
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:42
InDet::CacheCreator::m_pTRTHelper
const TRT_ID * m_pTRTHelper
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:40
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
min
#define min(a, b)
Definition: cfImp.cxx:40
InDet::CacheCreator::m_pix_idHelper
const PixelID * m_pix_idHelper
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:41
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
IdentifierHash.h
InDet::CacheCreator::m_TRTRDOCacheKey
SG::WriteHandleKey< TRT_RDO_Cache > m_TRTRDOCacheKey
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:65
PixelID::wafer_hash_max
size_type wafer_hash_max(void) const
Definition: PixelID.cxx:912
InDet::CacheCreator::m_rioContainerCacheKey
SG::WriteHandleKey< InDet::TRT_DriftCircleContainerCache > m_rioContainerCacheKey
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:44
IDCCacheCreatorBase
Definition: IDCCacheCreatorBase.h:13
InDet::CacheCreator::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.cxx:48
InDet::CacheCreator::m_PixBSErrCacheKey
SG::WriteHandleKey< IDCInDetBSErrContainer_Cache > m_PixBSErrCacheKey
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:62
InDet::CacheCreator::m_disableWarning
BooleanProperty m_disableWarning
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:68
InDet::CacheCreator::m_SCTRDOCacheKey
SG::WriteHandleKey< SCT_RDO_Cache > m_SCTRDOCacheKey
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:54
InDet::CacheCreator::m_PixRDOCacheKey
SG::WriteHandleKey< PixelRDO_Cache > m_PixRDOCacheKey
Definition: InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/CacheCreator.h:60
View.h
SG::AllowEmpty
@ AllowEmpty
Definition: StoreGate/StoreGate/VarHandleKey.h:30