ATLAS Offline Software
ITkPixelReadoutManager.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 #ifndef ITKPIXELREADOUTMANAGER_H
9 #define ITKPIXELREADOUTMANAGER_H
10 
13 
14 
15 class PixelID;
16 
17 namespace InDetDD
18 {
19 class PixelDetectorManager;
20 
21 namespace ITk
22 {
23 class PixelReadoutManager final : public extends<AthService, IPixelReadoutManager>
24 {
25 public:
26  PixelReadoutManager(const std::string &name,
27  ISvcLocator *svc);
28 
29  virtual StatusCode initialize() override final;
30 
31  virtual PixelModuleType getModuleType(Identifier id) const override final;
32  virtual PixelDiodeType getDiodeType(Identifier id) const override final;
33 
34  virtual Identifier getPixelIdfromHash(IdentifierHash offlineIdHash,
35  uint32_t FE,
36  uint32_t row,
37  uint32_t column) const override final;
38  virtual Identifier getPixelId(Identifier offlineId,
39  uint32_t FE,
40  uint32_t row,
41  uint32_t column) const override final;
42 
43  virtual uint32_t getFE(Identifier diodeId,
44  Identifier offlineId) const override final;
45  virtual uint32_t getColumn(Identifier diodeId,
46  Identifier offlineId) const override final;
47  virtual uint32_t getRow(Identifier diodeId,
48  Identifier offlineId) const override final;
49 
50 private:
51  ServiceHandle<StoreGateSvc> m_detStore{this, "DetectorStore", "DetectorStore"};
52 
54  const PixelID *m_idHelper{};
55 
56  Gaudi::Property<std::string> m_detectorName
57  {this, "DetectorName", "ITkPixel", "Pixel detector name"};
58  Gaudi::Property<std::string> m_pixelIDName
59  {this, "PixelIDName", "PixelID", "Pixel ID name"};
60 };
61 
62 } // namespace ITk
63 } // namespace InDetDD
64 
65 #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:104
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:97
InDetDD::PixelDiodeType
PixelDiodeType
Definition: PixelReadoutDefinitions.h:25
InDetDD::ITk::PixelReadoutManager::getModuleType
virtual PixelModuleType getModuleType(Identifier id) const override final
Definition: ITkPixelReadoutManager.cxx:31
DeMoUpdate.column
dictionary column
Definition: DeMoUpdate.py:1110
InDetDD::ITk::PixelReadoutManager::m_idHelper
const PixelID * m_idHelper
Definition: ITkPixelReadoutManager.h:54
InDetDD::ITk::PixelReadoutManager::m_detManager
const PixelDetectorManager * m_detManager
Definition: ITkPixelReadoutManager.h:53
InDetDD::ITk::PixelReadoutManager::initialize
virtual StatusCode initialize() override final
Definition: ITkPixelReadoutManager.cxx:22
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:57
InDetDD::ITk::PixelReadoutManager::m_detStore
ServiceHandle< StoreGateSvc > m_detStore
Definition: ITkPixelReadoutManager.h:51
InDetDD::PixelModuleType
PixelModuleType
Definition: PixelReadoutDefinitions.h:15
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
IPixelReadoutManager.h
InDetDD::PixelDetectorManager
Definition: PixelDetectorManager.h:47
ITk
Definition: ITkPixelOfflineCalibCondAlg.cxx:14
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
InDetDD::ITk::PixelReadoutManager::getColumn
virtual uint32_t getColumn(Identifier diodeId, Identifier offlineId) const override final
Definition: ITkPixelReadoutManager.cxx:191
InDetDD::ITk::PixelReadoutManager::getRow
virtual uint32_t getRow(Identifier diodeId, Identifier offlineId) const override final
Definition: ITkPixelReadoutManager.cxx:224
InDetDD::ITk::PixelReadoutManager::getDiodeType
virtual PixelDiodeType getDiodeType(Identifier id) const override final
Definition: ITkPixelReadoutManager.cxx:53
InDetDD::ITk::PixelReadoutManager::getFE
virtual uint32_t getFE(Identifier diodeId, Identifier offlineId) const override final
Definition: ITkPixelReadoutManager.cxx:153
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
InDetDD::ITk::PixelReadoutManager::m_pixelIDName
Gaudi::Property< std::string > m_pixelIDName
Definition: ITkPixelReadoutManager.h:59
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:16
InDetDD::ITk::PixelReadoutManager
Definition: ITkPixelReadoutManager.h:24
ServiceHandle< StoreGateSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14