ATLAS Offline Software
ITkPixelCablingAlg.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 ITkPixelCablingAlg_H
6 #define ITkPixelCablingAlg_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 PixelID;
29 
37  public:
38  ITkPixelCablingAlg(const std::string& name, ISvcLocator* svc);
39  virtual ~ITkPixelCablingAlg() = 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", "ITkPixelCabling.dat", "a plain text file for the ITkPixel cabling"};
47  SG::WriteCondHandleKey<ITkPixelCablingData> m_writeKey{this, "WriteKey", "ITkPixelCablingData", "Key of output (derived) conditions data"};
48  const PixelID* m_idHelper{nullptr};
49 };
50 
51 #endif
ITkPixelCablingData.h
WriteCondHandleKey.h
ITkPixelCablingAlg::initialize
virtual StatusCode initialize() override
Definition: ITkPixelCablingAlg.cxx:42
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
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
AthReentrantAlgorithm.h
ITkPixelCablingAlg::m_idHelper
const PixelID * m_idHelper
Definition: ITkPixelCablingAlg.h:48
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ITkPixelCablingAlg::m_source
StringProperty m_source
Definition: ITkPixelCablingAlg.h:46
ITkPixelCablingAlg::ITkPixelCablingAlg
ITkPixelCablingAlg(const std::string &name, ISvcLocator *svc)
Definition: ITkPixelCablingAlg.cxx:35
ITkPixelCablingAlg::m_writeKey
SG::WriteCondHandleKey< ITkPixelCablingData > m_writeKey
Definition: ITkPixelCablingAlg.h:47
SG::WriteCondHandleKey< ITkPixelCablingData >
ITkPixelCablingAlg::isClonable
virtual bool isClonable() const override
Make this algorithm clonable.
Definition: ITkPixelCablingAlg.h:43
ITkPixelCablingAlg::~ITkPixelCablingAlg
virtual ~ITkPixelCablingAlg()=default
ITkPixelCablingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: ITkPixelCablingAlg.cxx:60
ITkPixelCablingAlg
Conditions algorithm which fills the ITkPixelCablingData from plain text (a file).
Definition: ITkPixelCablingAlg.h:36
PixelID
Definition: PixelID.h:67