ATLAS Offline Software
SCT_TdaqEnabledCondAlg.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef SCT_TDAQENABLEDCONDALG
8 #define SCT_TDAQENABLEDCONDALG
9 
11 
18 
20 {
21  public:
22  SCT_TdaqEnabledCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
23  virtual ~SCT_TdaqEnabledCondAlg() = default;
24  virtual StatusCode initialize() override final;
25  virtual StatusCode execute(const EventContext& ctx) const override final;
26  virtual StatusCode finalize() override final;
27  virtual bool isReEntrant() const override final { return false; }
28 
29  private:
30  bool unfilledRun(const EventContext& ctx) const;
31 
32  static unsigned int parseChannelName(const std::string &chanNameString) ;
33  static std::string inWords(const unsigned int aNumber) ;
34 
35  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey{this, "ReadKey", "/TDAQ/Resources/ATLAS/SCT/Robins", "Key of input (raw) conditions folder"};
36  SG::WriteCondHandleKey<SCT_TdaqEnabledCondData> m_writeKey{this, "WriteKey", "SCT_TdaqEnabledCondData", "Key of output (derived) conditions data"};
37  ToolHandle<ISCT_CablingTool> m_cablingTool{this, "SCT_CablingTool", "SCT_CablingTool", "Tool to retrieve SCT Cabling"};
38 
40 
41  static const unsigned int s_NRODS;
42  static const unsigned int s_modulesPerRod;
43  static const unsigned int s_earliestRunForFolder;
44  static const unsigned int s_earliestTimeStampForFolder;
45 };
46 
47 #endif // SCT_TDAQENABLEDCONDALG
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
SCT_TdaqEnabledCondData.h
header file for data object for SCT_TdaqEnabledCondAlg and SCT_TdaqEnabledTool.
SCT_TdaqEnabledCondAlg::s_earliestRunForFolder
static const unsigned int s_earliestRunForFolder
Definition: SCT_TdaqEnabledCondAlg.h:43
SCT_TdaqEnabledCondAlg::m_onlineId
SCT_OnlineId m_onlineId
Definition: SCT_TdaqEnabledCondAlg.h:39
SCT_OnlineId
Definition: SCT_OnlineId.h:22
WriteCondHandleKey.h
SCT_TdaqEnabledCondAlg::s_earliestTimeStampForFolder
static const unsigned int s_earliestTimeStampForFolder
Definition: SCT_TdaqEnabledCondAlg.h:44
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SCT_TdaqEnabledCondAlg::s_NRODS
static const unsigned int s_NRODS
Definition: SCT_TdaqEnabledCondAlg.h:41
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_TdaqEnabledCondAlg::finalize
virtual StatusCode finalize() override final
Definition: SCT_TdaqEnabledCondAlg.cxx:139
SCT_TdaqEnabledCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: SCT_TdaqEnabledCondAlg.cxx:32
SCT_TdaqEnabledCondAlg::m_writeKey
SG::WriteCondHandleKey< SCT_TdaqEnabledCondData > m_writeKey
Definition: SCT_TdaqEnabledCondAlg.h:36
SCT_TdaqEnabledCondAlg::initialize
virtual StatusCode initialize() override final
Definition: SCT_TdaqEnabledCondAlg.cxx:16
SCT_TdaqEnabledCondAlg::SCT_TdaqEnabledCondAlg
SCT_TdaqEnabledCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_TdaqEnabledCondAlg.cxx:11
SCT_TdaqEnabledCondAlg::m_readKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Definition: SCT_TdaqEnabledCondAlg.h:35
SCT_TdaqEnabledCondAlg::~SCT_TdaqEnabledCondAlg
virtual ~SCT_TdaqEnabledCondAlg()=default
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_TdaqEnabledCondAlg::s_modulesPerRod
static const unsigned int s_modulesPerRod
Definition: SCT_TdaqEnabledCondAlg.h:42
ReadCondHandleKey.h
AthReentrantAlgorithm.h
SCT_TdaqEnabledCondAlg::inWords
static std::string inWords(const unsigned int aNumber)
Definition: SCT_TdaqEnabledCondAlg.cxx:170
SCT_TdaqEnabledCondAlg::unfilledRun
bool unfilledRun(const EventContext &ctx) const
Definition: SCT_TdaqEnabledCondAlg.cxx:145
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SG::ReadCondHandleKey< CondAttrListCollection >
SCT_TdaqEnabledCondAlg::parseChannelName
static unsigned int parseChannelName(const std::string &chanNameString)
Definition: SCT_TdaqEnabledCondAlg.cxx:154
SCT_TdaqEnabledCondAlg::m_cablingTool
ToolHandle< ISCT_CablingTool > m_cablingTool
Definition: SCT_TdaqEnabledCondAlg.h:37
SCT_TdaqEnabledCondAlg
Definition: SCT_TdaqEnabledCondAlg.h:20
ISCT_CablingTool.h
SCT_OnlineId.h
SG::WriteCondHandleKey< SCT_TdaqEnabledCondData >
SCT_TdaqEnabledCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: SCT_TdaqEnabledCondAlg.h:27