ATLAS Offline Software
PixelDCSCondStateAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
11 #ifndef PIXELDCSCONDSTATEALG
12 #define PIXELDCSCONDSTATEALG
13 
15 
18 
21 
23 
24 #include "Gaudi/Property.h"
25 
27  public:
28  PixelDCSCondStateAlg(const std::string& name, ISvcLocator* pSvcLocator);
29  virtual ~PixelDCSCondStateAlg() = default;
30 
31  virtual StatusCode initialize() override final;
32  virtual StatusCode execute(const EventContext& ctx) const override final;
33  virtual bool isReEntrant() const override final { return false; }
34 
35  private:
36  const PixelID* m_pixelID{nullptr};
37 
39  {this, "ReadKeyState", "", "Key of input DCS state conditions folder"};
40 
42  {this, "WriteKeyState", "PixelDCSStateCondData", "Key of output DCS state data"};
43 
44  std::unordered_map<std::string, PixelDCSStateData::DCSModuleState> m_stateMap;
45 
46 };
47 
48 #endif
PixelID.h
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
PixelDCSCondStateAlg::m_writeKeyState
SG::WriteCondHandleKey< PixelDCSStateData > m_writeKeyState
Definition: PixelDCSCondStateAlg.h:42
PixelDCSCondStateAlg::~PixelDCSCondStateAlg
virtual ~PixelDCSCondStateAlg()=default
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
WriteCondHandleKey.h
PixelDCSStateData.h
Store pixel DCS module state in PixelDCSStateData.
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
PixelDCSCondStateAlg::initialize
virtual StatusCode initialize() override final
Definition: PixelDCSCondStateAlg.cxx:16
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
PixelDCSCondStateAlg::m_stateMap
std::unordered_map< std::string, PixelDCSStateData::DCSModuleState > m_stateMap
Definition: PixelDCSCondStateAlg.h:44
PixelDCSCondStateAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: PixelDCSCondStateAlg.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadCondHandleKey.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SG::ReadCondHandleKey< CondAttrListCollection >
PixelDCSCondStateAlg::m_pixelID
const PixelID * m_pixelID
Definition: PixelDCSCondStateAlg.h:36
PixelDCSCondStateAlg
Definition: PixelDCSCondStateAlg.h:26
SG::WriteCondHandleKey< PixelDCSStateData >
PixelDCSCondStateAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: PixelDCSCondStateAlg.cxx:36
PixelID
Definition: PixelID.h:67
PixelDCSCondStateAlg::PixelDCSCondStateAlg
PixelDCSCondStateAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PixelDCSCondStateAlg.cxx:11
PixelDCSCondStateAlg::m_readKeyState
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyState
Definition: PixelDCSCondStateAlg.h:39