ATLAS Offline Software
SCT_MajorityConditionsTestAlg.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 
16 #ifndef SCT_MajorityConditionsTestAlg_H
17 #define SCT_MajorityConditionsTestAlg_H
18 
19 //Athena
22 
23 //Gaudi
24 #include "GaudiKernel/ToolHandle.h"
25 
26 //STL
27 #include <string>
28 
31  public:
32  SCT_MajorityConditionsTestAlg(const std::string& name,ISvcLocator* pSvcLocator);
33  virtual ~SCT_MajorityConditionsTestAlg() = default;
34 
35  virtual StatusCode initialize() override;
36  virtual StatusCode execute(const EventContext& ctx) const override;
37  virtual StatusCode finalize() override;
39  virtual bool isClonable() const override { return true; };
40 
41  private:
42  ToolHandle<ISCT_DetectorLevelConditionsTool> m_majorityTool{this, "MajorityTool", "InDetSCT_MajorityConditionsTool", "Tool to retrieve the majority detector status"};
43 };
44 
45 #endif // SCT_MajorityConditionsTestAlg_H
ISCT_DetectorLevelConditionsTool.h
SCT_MajorityConditionsTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCT_MajorityConditionsTestAlg.cxx:35
SCT_MajorityConditionsTestAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_MajorityConditionsTestAlg.h:39
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_MajorityConditionsTestAlg::m_majorityTool
ToolHandle< ISCT_DetectorLevelConditionsTool > m_majorityTool
Definition: SCT_MajorityConditionsTestAlg.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_MajorityConditionsTestAlg::SCT_MajorityConditionsTestAlg
SCT_MajorityConditionsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_MajorityConditionsTestAlg.cxx:19
AthReentrantAlgorithm.h
SCT_MajorityConditionsTestAlg
Example class to show calling the SCT_MajorityConditionsSvc.
Definition: SCT_MajorityConditionsTestAlg.h:30
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCT_MajorityConditionsTestAlg::initialize
virtual StatusCode initialize() override
Definition: SCT_MajorityConditionsTestAlg.cxx:25
SCT_MajorityConditionsTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCT_MajorityConditionsTestAlg.cxx:48
SCT_MajorityConditionsTestAlg::~SCT_MajorityConditionsTestAlg
virtual ~SCT_MajorityConditionsTestAlg()=default