ATLAS Offline Software
SCT_ReadoutTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #ifndef SCT_ConditionTools_SCT_ReadoutTool_h
12 #define SCT_ConditionTools_SCT_ReadoutTool_h
13 
14 // Athena
17 
20 
21 // Gaudi
22 #include "GaudiKernel/ToolHandle.h"
23 
24 // Forward declarations
25 class SCT_ID;
26 
32 class SCT_ReadoutTool : public extends<AthAlgTool, ISCT_ReadoutTool> {
33 
34  public:
35 
37  SCT_ReadoutTool(const std::string& type, const std::string& name, const IInterface* parent);
38  virtual ~SCT_ReadoutTool() = default;
39  StatusCode initialize() override;
40  StatusCode finalize() override;
41 
43  virtual StatusCode determineReadout(const Identifier& moduleId, std::vector<SCT_Chip>& chips, bool link0ok, bool link1ok) const override;
45  virtual StatusCode determineReadout(const int truncatedSerialNumber, std::vector<SCT_Chip>& chips, bool link0ok, bool link1ok) const override;
46 
47  private:
48 
50  const SCT_ID* m_sctId;
51  ToolHandle<ISCT_CablingTool> m_cablingTool{this, "SCT_CablingTool", "SCT_CablingTool", "Tool to retrieve SCT Cabling"};
52 
53 };
54 
55 #endif // SCT_ConditionTools_SCT_ReadoutTool_h
SCT_ReadoutTool::finalize
StatusCode finalize() override
Definition: SCT_ReadoutTool.cxx:33
SCT_ReadoutTool::initialize
StatusCode initialize() override
Definition: SCT_ReadoutTool.cxx:20
SCT_ReadoutTool::m_sctId
const SCT_ID * m_sctId
Private data.
Definition: SCT_ReadoutTool.h:50
SCT_ReadoutTool
Definition: SCT_ReadoutTool.h:32
SCT_Chip.h
ISCT_ReadoutTool.h
SCT_ReadoutTool::~SCT_ReadoutTool
virtual ~SCT_ReadoutTool()=default
SCT_ReadoutTool::SCT_ReadoutTool
SCT_ReadoutTool(const std::string &type, const std::string &name, const IInterface *parent)
Usual framework methods for an AlgTool.
Definition: SCT_ReadoutTool.cxx:13
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SCT_ReadoutTool::m_cablingTool
ToolHandle< ISCT_CablingTool > m_cablingTool
Definition: SCT_ReadoutTool.h:51
SCT_ID
Definition: SCT_ID.h:68
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ISCT_CablingTool.h
SCT_ReadoutTool::determineReadout
virtual StatusCode determineReadout(const Identifier &moduleId, std::vector< SCT_Chip > &chips, bool link0ok, bool link1ok) const override
Determine which chips are in the readout for a module of a particular type by Identifier.
Definition: SCT_ReadoutTool.cxx:50
Identifier
Definition: IdentifierFieldParser.cxx:14