ATLAS Offline Software
SCT_ConfigurationConditionsTestAlg.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 
12 #ifndef SCT_TestConfigConditions_H
13 #define SCT_TestConfigConditions_H
14 
15 // Athena includes
18 
19 // Gaudi includes
20 #include "GaudiKernel/ToolHandle.h"
21 
22 // C++ includes
23 #include <string>
24 
25 // Forward declarations
26 class SCT_ID;
27 
33  public:
34  // Structors
35  SCT_ConfigurationConditionsTestAlg (const std::string& name, ISvcLocator* pSvcLocator);
37 
38  // Standard Gaudi functions
39  virtual StatusCode initialize() override;
40  virtual StatusCode execute(const EventContext& ctx) const override;
41  virtual StatusCode finalize() override;
43  virtual bool isClonable() const override { return true; };
44 
45  private:
46  ToolHandle<ISCT_ConfigurationConditionsTool> m_configConditions{this, "SCT_ConfigurationConditionsTool", "SCT_ConfigurationConditionsTool", "Tool to retrieve SCT DAQ configuration"};
47  const SCT_ID* m_sctId{nullptr};
48 };
49 
50 #endif // SCT_TestConfigConditions_H
SCT_ConfigurationConditionsTestAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_ConfigurationConditionsTestAlg.h:43
SCT_ConfigurationConditionsTestAlg
This class acts as a test/sample client for the SCT_ConfigurationSConditionsSvc class.
Definition: SCT_ConfigurationConditionsTestAlg.h:32
SCT_ConfigurationConditionsTestAlg::SCT_ConfigurationConditionsTestAlg
SCT_ConfigurationConditionsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_ConfigurationConditionsTestAlg.cxx:16
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_ConfigurationConditionsTestAlg::m_configConditions
ToolHandle< ISCT_ConfigurationConditionsTool > m_configConditions
Definition: SCT_ConfigurationConditionsTestAlg.h:46
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
SCT_ConfigurationConditionsTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCT_ConfigurationConditionsTestAlg.cxx:99
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ISCT_ConfigurationConditionsTool.h
SCT_ConfigurationConditionsTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCT_ConfigurationConditionsTestAlg.cxx:31
SCT_ID
Definition: SCT_ID.h:68
SCT_ConfigurationConditionsTestAlg::m_sctId
const SCT_ID * m_sctId
Definition: SCT_ConfigurationConditionsTestAlg.h:47
SCT_ConfigurationConditionsTestAlg::initialize
virtual StatusCode initialize() override
Definition: SCT_ConfigurationConditionsTestAlg.cxx:21
SCT_ConfigurationConditionsTestAlg::~SCT_ConfigurationConditionsTestAlg
virtual ~SCT_ConfigurationConditionsTestAlg()=default