ATLAS Offline Software
ITkStripCablingAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ITkStripCablingAlg_H
6 #define ITkStripCablingAlg_H
7 
16 //Athena includes
20 
21 //Gaudi includes
22 #include "GaudiKernel/ServiceHandle.h"
23 
24 //STL includes
25 #include <string>
26 
27 //Forward declarations
28 class SCT_ID;
29 
37  public:
38  ITkStripCablingAlg(const std::string& name, ISvcLocator* svc);
39  virtual ~ITkStripCablingAlg() = default;
40  virtual StatusCode initialize() override;
41  virtual StatusCode execute(const EventContext& ctx) const override;
43  virtual bool isClonable() const override { return true; };
44 
45 private:
46  StringProperty m_source{this, "DataSource", "ITkStripCabling.dat", "a plain text file for the ITkStrip cabling"};
47  SG::WriteCondHandleKey<ITkStripCablingData> m_writeKey{this, "WriteKey", "ITkStripCablingData", "Key of output (derived) conditions data"};
48  const SCT_ID* m_idHelper{nullptr};
49 };
50 
51 #endif
ITkStripCablingAlg::m_source
StringProperty m_source
Definition: ITkStripCablingAlg.h:46
ITkStripCablingAlg::ITkStripCablingAlg
ITkStripCablingAlg(const std::string &name, ISvcLocator *svc)
Definition: ITkStripCablingAlg.cxx:35
WriteCondHandleKey.h
ITkStripCablingAlg::initialize
virtual StatusCode initialize() override
Definition: ITkStripCablingAlg.cxx:42
ITkStripCablingData.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
ITkStripCablingAlg
Conditions algorithm which fills the ITkStripCablingData from plain text (a file).
Definition: ITkStripCablingAlg.h:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ITkStripCablingAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: ITkStripCablingAlg.h:43
ITkStripCablingAlg::m_writeKey
SG::WriteCondHandleKey< ITkStripCablingData > m_writeKey
Definition: ITkStripCablingAlg.h:47
ITkStripCablingAlg::m_idHelper
const SCT_ID * m_idHelper
Definition: ITkStripCablingAlg.h:48
ITkStripCablingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: ITkStripCablingAlg.cxx:60
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SCT_ID
Definition: SCT_ID.h:68
SG::WriteCondHandleKey< ITkStripCablingData >
ITkStripCablingAlg::~ITkStripCablingAlg
virtual ~ITkStripCablingAlg()=default