ATLAS Offline Software
ActsWriteTrackingGeometry.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
5 
6 // ATHENA
8 #include "Acts/Utilities/Logger.hpp"
10 #include "GaudiKernel/ISvcLocator.h"
11 #include "ActsInterop/Logger.h"
12 
13 // PACKAGE
17 
18 // STL
19 #include <string>
20 
22  ISvcLocator* pSvcLocator)
23  : AthReentrantAlgorithm(name, pSvcLocator)
24 {
25 }
26 
28  ATH_MSG_INFO("initializing");
29 
32 
33 
34  return StatusCode::SUCCESS;
35 }
36 
37 StatusCode ActsWriteTrackingGeometry::execute(const EventContext& ctx) const {
38  auto trackingGeometry = m_trackingGeometryTool->trackingGeometry();
39 
40  // Use the geometry context
41  const ActsGeometryContext& gctx = m_trackingGeometryTool->getGeometryContext(ctx);
42 
43  m_materialJsonWriterTool->write(gctx, *trackingGeometry);
44  return StatusCode::SUCCESS;
45 }
46 
48  return StatusCode::SUCCESS;
49 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ActsWriteTrackingGeometry::m_trackingGeometryTool
ToolHandle< ActsTrackingGeometryTool > m_trackingGeometryTool
Definition: ActsWriteTrackingGeometry.h:39
ActsGeometryContext.h
ActsWriteTrackingGeometry::m_materialJsonWriterTool
ToolHandle< IActsMaterialJsonWriterTool > m_materialJsonWriterTool
Definition: ActsWriteTrackingGeometry.h:41
ActsWriteTrackingGeometry::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: ActsWriteTrackingGeometry.cxx:37
ActsWriteTrackingGeometry::finalize
virtual StatusCode finalize() override
Definition: ActsWriteTrackingGeometry.cxx:47
ActsWriteTrackingGeometry.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IActsTrackingGeometrySvc.h
ActsWriteTrackingGeometry::initialize
virtual StatusCode initialize() override
Definition: ActsWriteTrackingGeometry.cxx:27
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
RNGWrapper.h
IActsMaterialJsonWriterTool.h
Logger.h
ActsWriteTrackingGeometry::ActsWriteTrackingGeometry
ActsWriteTrackingGeometry(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ActsWriteTrackingGeometry.cxx:21