ATLAS Offline Software
SCT_TestCablingAlg.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef SCT_TestCablingAlg_h
8 #define SCT_TestCablingAlg_h
9 
17 
18 //package includes
20 
21 //Gaudi
22 #include "GaudiKernel/ToolHandle.h"
23 
24 //STL
25 #include <string>
26 
27 class ISvcLocator;
28 class StatusCode;
29 class SCT_ID;
30 
36  public:
37  SCT_TestCablingAlg(const std::string& name, ISvcLocator* pSvcLocator);
38  ~SCT_TestCablingAlg() = default;
39  // Standard Gaudi functions
40  virtual StatusCode initialize() override;
41  virtual StatusCode execute(const EventContext& ctx) const override;
42  virtual StatusCode finalize() override;
43 
44  virtual bool isClonable() const override { return true; };
45 
46  private:
47  ToolHandle<ISCT_CablingTool> m_cablingTool{this, "SCT_CablingTool", "SCT_CablingTool", "Tool to retrieve SCT Cabling"};
48  const SCT_ID* m_idHelper{nullptr};
49  std::string coordString(const Identifier& offlineId) const;
50  UnsignedIntegerProperty m_POSIXtime{this, "POSIXtime", 0, "POSIX time for database"};
51 
52 };
53 #endif // SCT_TestCablingAlg_h
SCT_TestCablingAlg::finalize
virtual StatusCode finalize() override
Gaudi finaliser.
Definition: SCT_TestCablingAlg.cxx:145
SCT_TestCablingAlg
Definition: SCT_TestCablingAlg.h:35
SCT_TestCablingAlg::SCT_TestCablingAlg
SCT_TestCablingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_TestCablingAlg.cxx:38
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SCT_TestCablingAlg::coordString
std::string coordString(const Identifier &offlineId) const
Definition: SCT_TestCablingAlg.cxx:52
SCT_TestCablingAlg::~SCT_TestCablingAlg
~SCT_TestCablingAlg()=default
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_TestCablingAlg::m_POSIXtime
UnsignedIntegerProperty m_POSIXtime
Definition: SCT_TestCablingAlg.h:50
SCT_TestCablingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi executer.
Definition: SCT_TestCablingAlg.cxx:64
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SCT_ID
Definition: SCT_ID.h:68
SCT_TestCablingAlg::m_cablingTool
ToolHandle< ISCT_CablingTool > m_cablingTool
Definition: SCT_TestCablingAlg.h:47
ISCT_CablingTool.h
SCT_TestCablingAlg::initialize
virtual StatusCode initialize() override
Gaudi initialiser.
Definition: SCT_TestCablingAlg.cxx:44
SCT_TestCablingAlg::m_idHelper
const SCT_ID * m_idHelper
helper for offlineId/hash conversions
Definition: SCT_TestCablingAlg.h:48
SCT_TestCablingAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: SCT_TestCablingAlg.h:44
Identifier
Definition: IdentifierFieldParser.cxx:14