ATLAS Offline Software
Loading...
Searching...
No Matches
Tracking
Acts
ActsGeometry
src
WriteTrackingGeometry.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ACTSGEOMETRY_WriteTrackingGeometry_H
6
#define ACTSGEOMETRY_WriteTrackingGeometry_H
7
8
// ATHENA
9
#include "
AthenaBaseComps/AthAlgorithm.h
"
10
11
// PACKAGE
12
#include "
ActsGeometryInterfaces/ITrackingGeometrySvc.h
"
13
#include "
ActsEvent/ContextUtility.h
"
14
15
// STL
16
#include <fstream>
17
#include <memory>
18
#include <vector>
19
20
21
namespace
ActsTrk
{
22
23
27
class
WriteTrackingGeometry
:
public
AthAlgorithm
{
28
public
:
29
using
AthAlgorithm::AthAlgorithm
;
30
virtual
StatusCode
initialize
()
override
;
31
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
32
33
virtual
unsigned
int
cardinality
()
const
override final {
return
1; }
34
35
private
:
36
ServiceHandle<ActsTrk::ITrackingGeometrySvc>
m_trackingGeometrySvc
{
this
,
"TrackingGeometrySvc"
,
"ActsTrackingGeometrySvc"
};
37
39
ActsTrk::ContextUtility
m_ctxProvider
{
this
};
40
41
Gaudi::Property<std::string>
m_outFile
{
this
,
"outFile"
,
"ActsTrackingGeometry.json"
};
42
43
bool
m_dumped
{
false
};
44
45
46
};
47
}
48
#endif
ITrackingGeometrySvc.h
AthAlgorithm.h
ContextUtility.h
ActsTrk::ContextUtility
Utility class to handle the three contexts neeeded in an ACTS reconstruction job 1) GeometryContext -...
Definition
ContextUtility.h:27
ActsTrk::WriteTrackingGeometry
Algorithm that uses the Acts JSON plugin to dump the tracking geometry into a JSON format which can b...
Definition
WriteTrackingGeometry.h:27
ActsTrk::WriteTrackingGeometry::m_trackingGeometrySvc
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
Definition
WriteTrackingGeometry.h:36
ActsTrk::WriteTrackingGeometry::m_outFile
Gaudi::Property< std::string > m_outFile
Definition
WriteTrackingGeometry.h:41
ActsTrk::WriteTrackingGeometry::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
WriteTrackingGeometry.cxx:28
ActsTrk::WriteTrackingGeometry::m_ctxProvider
ActsTrk::ContextUtility m_ctxProvider
Context provider for geometry, magnetic field and calibration contexts.
Definition
WriteTrackingGeometry.h:39
ActsTrk::WriteTrackingGeometry::m_dumped
bool m_dumped
Definition
WriteTrackingGeometry.h:43
ActsTrk::WriteTrackingGeometry::initialize
virtual StatusCode initialize() override
Definition
WriteTrackingGeometry.cxx:19
ActsTrk::WriteTrackingGeometry::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
ActsTrk::WriteTrackingGeometry::cardinality
virtual unsigned int cardinality() const override final
Definition
WriteTrackingGeometry.h:33
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
ServiceHandle
Definition
ClusterMakerTool.h:36
const
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
Generated on
for ATLAS Offline Software by
1.16.1