ATLAS Offline Software
PixelDetectorElementStatusToolBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PIXELCONDITIONSSERVICES_PIXELDETECTORELEMENTSTATUSTOOLBASE_H
6 #define PIXELCONDITIONSSERVICES_PIXELDETECTORELEMENTSTATUSTOOLBASE_H
7 
8 #include <string>
9 
11 #include "GaudiKernel/ServiceHandle.h"
12 #include "Gaudi/Property.h"
14 
15 #include "Identifier/Identifier.h"
18 
23 
24 class PixelDetectorElementStatusToolBase: public extends<AthAlgTool, IDetectorElementStatusTool> {
25  public:
26 
27  PixelDetectorElementStatusToolBase(const std::string& type, const std::string& name, const IInterface* parent);
29  virtual StatusCode initialize() override;
30 
31  protected:
35  std::unique_ptr<InDet::SiDetectorElementStatus>
36  createDetectorElementStatus(const EventContext& ctx,
38 
39  const PixelID* m_pixelID {};
40 
41  private:
43  {this, "PixelReadoutManager", "PixelReadoutManager", "Pixel readout manager" };
44 
46  {this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
47 
49  {this, "PixelDetElStatusCondDataBaseKey", "" , "Optional conditions data key of an input SiDetectorElementStatus on which the newly created object will be based."};
50 
51 };
52 
53 
54 #endif
PixelID.h
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
SiDetectorElementStatus.h
PixelDetectorElementStatusToolBase::m_pixelReadout
ServiceHandle< InDetDD::IPixelReadoutManager > m_pixelReadout
Definition: PixelDetectorElementStatusToolBase.h:43
PixelDetectorElementStatusToolBase::m_pixelID
const PixelID * m_pixelID
Definition: PixelDetectorElementStatusToolBase.h:39
PixelDetectorElementStatusToolBase::PixelDetectorElementStatusToolBase
PixelDetectorElementStatusToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition: PixelDetectorElementStatusToolBase.cxx:8
PixelDetectorElementStatusToolBase
Definition: PixelDetectorElementStatusToolBase.h:24
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
PixelDetectorElementStatusToolBase::createDetectorElementStatus
std::unique_ptr< InDet::SiDetectorElementStatus > createDetectorElementStatus(const EventContext &ctx, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const
Create a new detector element status element container.
Definition: PixelDetectorElementStatusToolBase.cxx:34
PixelDetectorElementStatusToolBase::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Definition: PixelDetectorElementStatusToolBase.h:46
test_pyathena.parent
parent
Definition: test_pyathena.py:15
IPixelReadoutManager.h
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IdentifierHash.h
IDetectorElementStatusTool.h
SiDetectorElementCollection.h
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
PixelDetectorElementStatusToolBase::m_pixelDetElStatusCondKey
SG::ReadCondHandleKey< InDet::SiDetectorElementStatus > m_pixelDetElStatusCondKey
Definition: PixelDetectorElementStatusToolBase.h:49
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
PixelDetectorElementStatusToolBase::~PixelDetectorElementStatusToolBase
virtual ~PixelDetectorElementStatusToolBase()
PixelID
Definition: PixelID.h:67
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
PixelDetectorElementStatusToolBase::initialize
virtual StatusCode initialize() override
Definition: PixelDetectorElementStatusToolBase.cxx:15
ServiceHandle< InDetDD::IPixelReadoutManager >