ATLAS Offline Software
SCT_TdaqEnabledTestAlg.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 
15 #ifndef SCT_TdaqEnabledTestAlg_H
16 #define SCT_TdaqEnabledTestAlg_H
17 
18 //Athena
21 
22 //Gaudi
23 #include "GaudiKernel/ToolHandle.h"
24 
25 //STL
26 #include <string>
27 
30  public:
31  SCT_TdaqEnabledTestAlg(const std::string& name, ISvcLocator *pSvcLocator);
32  virtual ~SCT_TdaqEnabledTestAlg() = default;
33 
34  virtual StatusCode initialize() override;
35  virtual StatusCode execute(const EventContext& ctx) const override;
36  virtual StatusCode finalize() override;
38  virtual bool isClonable() const override { return true; };
39 
40  private:
41  ToolHandle<ISCT_ConditionsTool> m_pTdaqEnabledTool{this, "SCT_TdaqEnabledTool", "SCT_TdaqEnabledTool", "Tool to retrieve active/inactive SCT ROD information"};
42 }; //end of class
43 
44 #endif // SCT_TdaqEnabledTestAlg_H
SCT_TdaqEnabledTestAlg
Example algorithm to show calling the SCT_ModuleVeto to exclude bad components.
Definition: SCT_TdaqEnabledTestAlg.h:29
ISCT_ConditionsTool.h
SCT_TdaqEnabledTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCT_TdaqEnabledTestAlg.cxx:72
SCT_TdaqEnabledTestAlg::initialize
virtual StatusCode initialize() override
Definition: SCT_TdaqEnabledTestAlg.cxx:30
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_TdaqEnabledTestAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_TdaqEnabledTestAlg.h:38
AthReentrantAlgorithm.h
SCT_TdaqEnabledTestAlg::~SCT_TdaqEnabledTestAlg
virtual ~SCT_TdaqEnabledTestAlg()=default
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCT_TdaqEnabledTestAlg::SCT_TdaqEnabledTestAlg
SCT_TdaqEnabledTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_TdaqEnabledTestAlg.cxx:22
SCT_TdaqEnabledTestAlg::m_pTdaqEnabledTool
ToolHandle< ISCT_ConditionsTool > m_pTdaqEnabledTool
Definition: SCT_TdaqEnabledTestAlg.h:41
SCT_TdaqEnabledTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCT_TdaqEnabledTestAlg.cxx:38