ATLAS Offline Software
SCT_ModuleVetoTestAlg.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_ModuleVetoTestAlg_H
17 #define SCT_ModuleVetoTestAlg_H
18 
19 //Athena
21 
23 
24 //Gaudi
25 #include "GaudiKernel/ToolHandle.h"
26 
27 //STL
28 #include <string>
29 
32  public:
33  SCT_ModuleVetoTestAlg(const std::string &name,ISvcLocator *pSvcLocator) ;
34  virtual ~SCT_ModuleVetoTestAlg() = default;
35 
36  virtual StatusCode initialize() override;
37  virtual StatusCode execute(const EventContext& ctx) const override;
38  virtual StatusCode finalize() override;
40  virtual bool isClonable() const override { return true; };
41 
42  private:
43  ToolHandle<ISCT_ConditionsTool> m_pModuleVetoTool{this, "ModuleVetoTool", "SCT_ModuleVetoTool", "Tool to retrieve vetoed modules"};
44 }; //end of class
45 
46 #endif // SCT_ModuleVetoTestAlg_H
SCT_ModuleVetoTestAlg::SCT_ModuleVetoTestAlg
SCT_ModuleVetoTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_ModuleVetoTestAlg.cxx:19
ISCT_ConditionsTool.h
SCT_ModuleVetoTestAlg::initialize
virtual StatusCode initialize() override
Definition: SCT_ModuleVetoTestAlg.cxx:27
SCT_ModuleVetoTestAlg::~SCT_ModuleVetoTestAlg
virtual ~SCT_ModuleVetoTestAlg()=default
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_ModuleVetoTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCT_ModuleVetoTestAlg.cxx:35
AthReentrantAlgorithm.h
SCT_ModuleVetoTestAlg
Example algorithm to show calling the SCT_ModuleVetoSvc to exclude bad components.
Definition: SCT_ModuleVetoTestAlg.h:31
SCT_ModuleVetoTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCT_ModuleVetoTestAlg.cxx:70
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
SCT_ModuleVetoTestAlg::m_pModuleVetoTool
ToolHandle< ISCT_ConditionsTool > m_pModuleVetoTool
Definition: SCT_ModuleVetoTestAlg.h:43
SCT_ModuleVetoTestAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_ModuleVetoTestAlg.h:40