ATLAS Offline Software
Loading...
Searching...
No Matches
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
37StatusCode ActsWriteTrackingGeometry::execute(const EventContext& ctx) const {
38 auto trackingGeometry = m_trackingGeometryTool->trackingGeometry();
39
40 // Use the geometry context
41 const ActsTrk::GeometryContext& gctx = m_trackingGeometryTool->getGeometryContext(ctx);
42
43 m_materialJsonWriterTool->write(gctx, *trackingGeometry);
44 return StatusCode::SUCCESS;
45}
46
48 return StatusCode::SUCCESS;
49}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
ToolHandle< IActsMaterialJsonWriterTool > m_materialJsonWriterTool
ActsWriteTrackingGeometry(const std::string &name, ISvcLocator *pSvcLocator)
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
virtual StatusCode finalize() override
An algorithm that can be simultaneously executed in multiple threads.