Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ITkPixelReadoutManager.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 #ifndef ITKPIXELREADOUTMANAGER_H
9 #define ITKPIXELREADOUTMANAGER_H
10 
13 
14 class PixelID;
15 
16 namespace InDetDD
17 {
18 class PixelDetectorManager;
19 
20 namespace ITk
21 {
22 class PixelReadoutManager final : public extends<AthService, IPixelReadoutManager>
23 {
24 public:
25  PixelReadoutManager(const std::string &name,
26  ISvcLocator *svc);
27 
28  virtual StatusCode initialize() override final;
29 
30  virtual PixelModuleType getModuleType(Identifier id) const override final;
31  // Avoid detector element search if already available
33 
34  virtual PixelDiodeType getDiodeType(Identifier id) const override final;
35  // Avoid detector element search if already available
36  virtual PixelDiodeType getDiodeType(Identifier id, const SiDetectorElement* element) const override;
37 
38  virtual Identifier getPixelIdfromHash(IdentifierHash offlineIdHash,
39  uint32_t FE,
40  uint32_t row,
41  uint32_t column) const override final;
42  virtual Identifier getPixelId(Identifier offlineId,
43  uint32_t FE,
44  uint32_t row,
45  uint32_t column) const override final;
46 
47  virtual uint32_t getFE(Identifier diodeId,
48  Identifier offlineId) const override final;
49 
50  virtual uint32_t getFE(Identifier diodeId,
51  Identifier offlineId,
52  const SiDetectorElement* element) const override final;
53 
54  virtual uint32_t getColumn(Identifier diodeId,
55  Identifier offlineId) const override final;
56 
58  Identifier offlineId,
59  const SiDetectorElement* element) const;
60 
61  virtual uint32_t getRow(Identifier diodeId,
62  Identifier offlineId) const override final;
63 
64  uint32_t getRow(Identifier diodeId,
65  Identifier offlineId,
66  const SiDetectorElement* element) const;
67 
68 
69 private:
70  ServiceHandle<StoreGateSvc> m_detStore{this, "DetectorStore", "DetectorStore"};
71 
73  const PixelID *m_idHelper{};
74 
75  Gaudi::Property<std::string> m_detectorName
76  {this, "DetectorName", "ITkPixel", "Pixel detector name"};
77  Gaudi::Property<std::string> m_pixelIDName
78  {this, "PixelIDName", "PixelID", "Pixel ID name"};
79 };
80 
81 } // namespace ITk
82 } // namespace InDetDD
83 
84 #endif
InDetDD::ITk::PixelReadoutManager::getPixelId
virtual Identifier getPixelId(Identifier offlineId, uint32_t FE, uint32_t row, uint32_t column) const override final
Definition: ITkPixelReadoutManager.cxx:117
query_example.row
row
Definition: query_example.py:24
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
InDetDD::ITk::PixelReadoutManager::getPixelIdfromHash
virtual Identifier getPixelIdfromHash(IdentifierHash offlineIdHash, uint32_t FE, uint32_t row, uint32_t column) const override final
Definition: ITkPixelReadoutManager.cxx:110
InDetDD::PixelDiodeType
PixelDiodeType
Definition: PixelReadoutDefinitions.h:28
InDetDD::ITk::PixelReadoutManager::getModuleType
virtual PixelModuleType getModuleType(Identifier id) const override final
Definition: ITkPixelReadoutManager.cxx:29
DeMoUpdate.column
dictionary column
Definition: DeMoUpdate.py:1110
InDetDD::ITk::PixelReadoutManager::m_idHelper
const PixelID * m_idHelper
Definition: ITkPixelReadoutManager.h:73
InDetDD::ITk::PixelReadoutManager::m_detManager
const PixelDetectorManager * m_detManager
Definition: ITkPixelReadoutManager.h:72
InDetDD::ITk::PixelReadoutManager::initialize
virtual StatusCode initialize() override final
Definition: ITkPixelReadoutManager.cxx:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDetDD::ITk::PixelReadoutManager::m_detectorName
Gaudi::Property< std::string > m_detectorName
Definition: ITkPixelReadoutManager.h:76
InDetDD::ITk::PixelReadoutManager::m_detStore
ServiceHandle< StoreGateSvc > m_detStore
Definition: ITkPixelReadoutManager.h:70
InDetDD::PixelModuleType
PixelModuleType
Definition: PixelReadoutDefinitions.h:18
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
IPixelReadoutManager.h
InDetDD::PixelDetectorManager
Definition: PixelDetectorManager.h:47
ITk
Definition: ITkPixelOfflineCalibCondAlg.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
columnar::final
CM final
Definition: ColumnAccessor.h:106
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
InDetDD::ITk::PixelReadoutManager::getColumn
virtual uint32_t getColumn(Identifier diodeId, Identifier offlineId) const override final
Definition: ITkPixelReadoutManager.cxx:210
InDetDD::ITk::PixelReadoutManager::getRow
virtual uint32_t getRow(Identifier diodeId, Identifier offlineId) const override final
Definition: ITkPixelReadoutManager.cxx:252
InDetDD::ITk::PixelReadoutManager::getDiodeType
virtual PixelDiodeType getDiodeType(Identifier id) const override final
Definition: ITkPixelReadoutManager.cxx:56
InDetDD::ITk::PixelReadoutManager::getFE
virtual uint32_t getFE(Identifier diodeId, Identifier offlineId) const override final
Definition: ITkPixelReadoutManager.cxx:165
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
InDetDD::ITk::PixelReadoutManager::m_pixelIDName
Gaudi::Property< std::string > m_pixelIDName
Definition: ITkPixelReadoutManager.h:78
AthService.h
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
PixelID
Definition: PixelID.h:67
InDetDD::ITk::PixelReadoutManager::PixelReadoutManager
PixelReadoutManager(const std::string &name, ISvcLocator *svc)
Definition: ITkPixelReadoutManager.cxx:15
InDetDD::ITk::PixelReadoutManager
Definition: ITkPixelReadoutManager.h:23
ServiceHandle< StoreGateSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14