ATLAS Offline Software
SCT_SensorsTool.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
13 #ifndef SCT_SensorsTool_h
14 #define SCT_SensorsTool_h
15 
18 
21 
22 //STL includes
23 #include <vector>
24 
29 class SCT_SensorsTool: public extends<AthAlgTool, ISCT_SensorsTool> {
30  public:
31 
32  SCT_SensorsTool(const std::string& type, const std::string& name, const IInterface* parent);
33  virtual ~SCT_SensorsTool() = default;
34  virtual StatusCode initialize() override;
35  virtual StatusCode finalize() override;
36 
38  virtual void getSensorsData(std::vector<std::string>& userVector, const EventContext& ctx) const override;
39  virtual void getSensorsData(std::vector<std::string>& userVector) const override;
40  virtual const SCT_SensorCondData* getSensorsData(const unsigned int truncatedSerialNumber, const EventContext& ctx) const override;
41  virtual const SCT_SensorCondData* getSensorsData(const unsigned int truncatedSerialNumber) const override;
42  virtual std::string getManufacturer(unsigned int truncatedSerialNumber, const EventContext& ctx) const override;
43  virtual std::string getManufacturer(unsigned int truncatedSerialNumber) const override;
44  virtual void printManufacturers(const EventContext& ctx) const override;
45  virtual void printManufacturers() const override;
46 
48 
49  private:
50  // ReadCondHandleKey
51  SG::ReadCondHandleKey<SCT_SensorsCondData> m_condKey{this, "CondKey", "SCT_SensorsCondData", "SCT sensor conditions"};
52  // Provides SCT_SensorsCondData pointer
53  const SCT_SensorsCondData* getCondData(const EventContext& ctx) const;
54 };
55 
56 #endif // SCT_SensorsTool_h
SCT_SensorsTool::getManufacturer
virtual std::string getManufacturer(unsigned int truncatedSerialNumber, const EventContext &ctx) const override
Definition: SCT_SensorsTool.cxx:53
SCT_SensorsTool::initialize
virtual StatusCode initialize() override
Definition: SCT_SensorsTool.cxx:17
SCT_SensorsTool::finalize
virtual StatusCode finalize() override
Definition: SCT_SensorsTool.cxx:24
SCT_SensorsTool
Definition: SCT_SensorsTool.h:29
SCT_SensorsTool::SCT_SensorsTool
SCT_SensorsTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: SCT_SensorsTool.cxx:13
SCT_SensorsTool::getSensorsData
virtual void getSensorsData(std::vector< std::string > &userVector, const EventContext &ctx) const override
Definition: SCT_SensorsTool.cxx:44
SCT_SensorsTool::m_condKey
SG::ReadCondHandleKey< SCT_SensorsCondData > m_condKey
Definition: SCT_SensorsTool.h:51
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
SCT_SensorsTool::printManufacturers
virtual void printManufacturers() const override
Definition: SCT_SensorsTool.cxx:80
test_pyathena.parent
parent
Definition: test_pyathena.py:15
SCT_SensorsCondData.h
header file for data object for SCT_SensorsCondAlg and SCT_SensorsTool.
ISCT_SensorsTool.h
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::ReadCondHandleKey< SCT_SensorsCondData >
SCT_SensorsTool::~SCT_SensorsTool
virtual ~SCT_SensorsTool()=default
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SCT_SensorsTool::getCondData
const SCT_SensorsCondData * getCondData(const EventContext &ctx) const
Definition: SCT_SensorsTool.cxx:86
SCT_SensorCondData
Class for data object used in SCT_SensorsCondAlg and SCT_SensorsTool.
Definition: SCT_SensorCondData.h:25
SCT_SensorsCondData
std::map< CondAttrListCollection::ChanNum, SCT_SensorCondData > SCT_SensorsCondData
Class for data object for SCT_SensorsCondAlg and SCT_SensorsTool.
Definition: SCT_SensorsCondData.h:28