ATLAS Offline Software
PixelDCSCondTempAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
11 #ifndef PIXELDCSCONDTEMPALG
12 #define PIXELDCSCONDTEMPALG
13 
14 #include "AthenaBaseComps/AthReentrantAlgorithm.h" //base class
15 
16 #include "StoreGate/ReadCondHandleKey.h" //templated member
17 #include "AthenaPoolUtilities/CondAttrListCollection.h" //template argument
18 
19 #include "StoreGate/WriteCondHandleKey.h" //templated member
20 #include "PixelConditionsData/PixelDCSTempData.h" //template argument
21 
22 
23 class PixelID;
24 
26  public:
27  PixelDCSCondTempAlg(const std::string& name, ISvcLocator* pSvcLocator);
28  virtual ~PixelDCSCondTempAlg() = default;
29 
30  virtual StatusCode initialize() override final;
31  virtual StatusCode execute(const EventContext& ctx) const override final;
32  virtual bool isReEntrant() const override final { return false; }
33 
34  private:
35  const PixelID* m_pixelID{nullptr};
36 
37  Gaudi::Property<float> m_defaultTemperature
38  {this, "DefaultTemperature", -7.0, "Default module temperature when no measured value is available"};
39 
41  {this, "ReadKey", "/PIXEL/DCS/TEMPERATURE", "Key of input (raw) temperature conditions folder"};
42 
44  {this, "WriteKey", "PixelDCSTempCondData", "Key of output (derived) temperature conditions folder"};
45 
46 };
47 
48 #endif
PixelDCSCondTempAlg::m_defaultTemperature
Gaudi::Property< float > m_defaultTemperature
Definition: PixelDCSCondTempAlg.h:38
PixelDCSCondTempAlg::~PixelDCSCondTempAlg
virtual ~PixelDCSCondTempAlg()=default
PixelDCSCondTempAlg
Definition: PixelDCSCondTempAlg.h:25
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
WriteCondHandleKey.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
PixelDCSCondTempAlg::PixelDCSCondTempAlg
PixelDCSCondTempAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PixelDCSCondTempAlg.cxx:16
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
PixelDCSCondTempAlg::m_pixelID
const PixelID * m_pixelID
Definition: PixelDCSCondTempAlg.h:35
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PixelDCSTempData.h
Store pixel temperature data in PixelDCSTempData.
PixelDCSCondTempAlg::initialize
virtual StatusCode initialize() override final
Definition: PixelDCSCondTempAlg.cxx:21
ReadCondHandleKey.h
PixelDCSCondTempAlg::m_writeKey
SG::WriteCondHandleKey< PixelDCSTempData > m_writeKey
Definition: PixelDCSCondTempAlg.h:44
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::ReadCondHandleKey< CondAttrListCollection >
PixelDCSCondTempAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: PixelDCSCondTempAlg.h:32
PixelDCSCondTempAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: PixelDCSCondTempAlg.cxx:32
SG::WriteCondHandleKey< PixelDCSTempData >
PixelID
Definition: PixelID.h:67
PixelDCSCondTempAlg::m_readKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Definition: PixelDCSCondTempAlg.h:41