ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrackingGeometrySvc.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ACTSGEOMETRY_ACTSTRACKINGGEOMETRYSVC_H
6#define ACTSGEOMETRY_ACTSTRACKINGGEOMETRYSVC_H
7
8// ATHENA
10
11// PACKAGE
17
18// ACTS
19#include "Acts/Geometry/CylinderVolumeBuilder.hpp"
20
21// STL
22#include <map>
23
24#include <tbb/concurrent_unordered_map.h>
25
26namespace InDetDD {
30}
31
32class TRT_ID;
33class ActsAlignmentStore;
35class HGTD_ID;
37
39
40namespace Acts {
41
42class TrackingGeometry;
43class CylinderVolumeHelper;
44class ILayerBuilder;
45
46class GeometryIdentifier;
47class BinnedSurfaceMaterial;
48
49namespace Experimental {
50class BlueprintNode;
51}
52
53}
54
55class ActsTrackingGeometrySvc : public extends<AthService, ActsTrk::ITrackingGeometrySvc> {
56public:
57
58 StatusCode initialize() override;
59
60 ActsTrackingGeometrySvc( const std::string& name, ISvcLocator* pSvcLocator );
61
62 std::shared_ptr<const Acts::TrackingGeometry>
63 trackingGeometry() override;
64
65 unsigned int populateAlignmentStore(ActsTrk::DetectorAlignStore& store) const override;
66
67 const ActsTrk::GeometryContext& getNominalContext() const override;
68
69private:
72
73 std::shared_ptr<const Acts::ILayerBuilder>
75
76 std::shared_ptr<const Acts::ILayerBuilder>
78
79 std::shared_ptr<Acts::TrackingVolume>
80 makeSCTTRTAssembly(const Acts::GeometryContext& gctx, const Acts::ILayerBuilder& sct_lb,
81 const Acts::ILayerBuilder& trt_lb, const Acts::CylinderVolumeHelper& cvh,
82 const std::shared_ptr<const Acts::TrackingVolume>& pixel);
83
84 Acts::CylinderVolumeBuilder::Config makeBeamPipeConfig(
85 std::shared_ptr<const Acts::CylinderVolumeHelper> cvh) const;
86
87 bool runConsistencyChecks() const;
88
97
98 std::shared_ptr<ActsElementVector> m_elementStore{nullptr};
99 std::shared_ptr<const Acts::TrackingGeometry> m_trackingGeometry{nullptr};
100
101 const TRT_ID *m_TRT_idHelper{nullptr};
102 const HGTD_ID *m_HGTD_idHelper{nullptr};
103
105
106 Gaudi::Property<bool> m_useMaterialMap{this, "UseMaterialMap", false, ""};
107 Gaudi::Property<bool> m_objDebugOutput{this, "ObjDebugOutput", false, ""};
108 Gaudi::Property<std::string> m_materialMapInputFileBase{this, "MaterialMapInputFile", "", ""};
109 Gaudi::Property<std::string> m_materialMapCalibFolder{this, "MaterialMapCalibFolder", ".", ""};
110 Gaudi::Property<bool> m_buildBeamPipe{this, "BuildBeamPipe", false, ""};
112 Gaudi::Property<bool> m_printGeo{this, "printGeometry", false};
113
114 Gaudi::Property<std::vector<size_t>> m_barrelMaterialBins{this, "BarrelMaterialBins", {10, 10}};
115 Gaudi::Property<std::vector<size_t>> m_endcapMaterialBins{this, "EndcapMaterialBins", {5, 20}};
116 Gaudi::Property<std::vector<std::string>> m_buildSubdetectors{this, "BuildSubDetectors", {"Pixel", "SCT", "TRT", "Calo", "HGTD", "Muon"}};
117
122 Gaudi::Property<std::vector<float>> m_passiveITkInnerPixelBarrelLayerRadii{this, "PassiveITkInnerPixelBarrelLayerRadii", {}};
123 Gaudi::Property<std::vector<float>> m_passiveITkInnerPixelBarrelLayerHalflengthZ{this, "PassiveITkInnerPixelBarrelLayerHalflengthZ", {}};
124 Gaudi::Property<std::vector<float>> m_passiveITkInnerPixelBarrelLayerThickness{this, "PassiveITkInnerPixelBarrelLayerThickness", {}};
125
126 Gaudi::Property<std::vector<float>> m_passiveITkOuterPixelBarrelLayerRadii{this, "PassiveITkOuterPixelBarrelLayerRadii", {}};
127 Gaudi::Property<std::vector<float>> m_passiveITkOuterPixelBarrelLayerHalflengthZ{this, "PassiveITkOuterPixelBarrelLayerHalflengthZ", {}};
128 Gaudi::Property<std::vector<float>> m_passiveITkOuterPixelBarrelLayerThickness{this, "PassiveITkOuterPixelBarrelLayerThickness", {}};
129
130 Gaudi::Property<std::vector<float>> m_passiveITkStripBarrelLayerRadii{this, "PassiveITkStripBarrelLayerRadii", {}};
131 Gaudi::Property<std::vector<float>> m_passiveITkStripBarrelLayerHalflengthZ{this, "PassiveITkStripBarrelLayerHalflengthZ", {}};
132 Gaudi::Property<std::vector<float>> m_passiveITkStripBarrelLayerThickness{this, "PassiveITkStripBarrelLayerThickness", {}};
133
134 BooleanProperty m_runConsistencyChecks{this, "RunConsistencyChecks",
135 false, "Run extra consistency checks w.r.t to Trk::. This is SLOW!"};
136
137 StringProperty m_consistencyCheckOutput{this, "ConsistencyCheckOutput",
138 "", "Output file for geometry debugging, will not write if empty",};
139
140 Gaudi::Property<size_t> m_consistencyCheckPoints{this, "ConsistencyCheckPoints",
141 1000, "number of random points for consistency check"};
142
143 ToolHandle<IActsTrackingVolumeBuilder> m_caloVolumeBuilder{this, "CaloVolumeBuilder", ""};
144
145 ToolHandleArray<ActsTrk::IBlueprintNodeBuilder> m_blueprintNodeBuilders{this, "BlueprintNodeBuilders", {}};
146
147
149 Gaudi::Property<std::vector<unsigned int>> m_subDetNoAlignProp{this, "NotAlignDetectors", {}};
150 std::set<ActsTrk::DetectorType> m_subDetNoAlign{};
151
152 Gaudi::Property<bool> m_useBlueprint{this, "UseBlueprint", false, "Use the new Blueprint API for geometry construction"};
153 Gaudi::Property<std::string> m_blueprintGraphviz{this, "BlueprintGraphviz",
154 "", "Write the blueprint graph to a file. No file will be written if empty"};
155 Gaudi::Property<bool> m_doEndcapLayerMerging{this, "DoEndcapLayerMerging", true, "Merge overlapping endcap layers in z"};
156
160 Gaudi::Property<double> m_numberOfBinsFactor{this, "NumberOfBinsFactor", 5.0};
161
163 Gaudi::Property<double> m_numberOfInnermostLayerBinsFactor{this, "NumberOfInnermostLayerBinsFactor",2.0};
164
165
166};
167
168
169
170#endif
Helper to hold elements for deletion.
ActsTrk::GeometryContext m_nominalContext
ToolHandleArray< ActsTrk::IBlueprintNodeBuilder > m_blueprintNodeBuilders
Acts::CylinderVolumeBuilder::Config makeBeamPipeConfig(std::shared_ptr< const Acts::CylinderVolumeHelper > cvh) const
std::shared_ptr< ActsElementVector > m_elementStore
Gaudi::Property< std::vector< float > > m_passiveITkInnerPixelBarrelLayerHalflengthZ
Gaudi::Property< std::vector< float > > m_passiveITkStripBarrelLayerThickness
unsigned int populateAlignmentStore(ActsTrk::DetectorAlignStore &store) const override
const InDetDD::TRT_DetectorManager * p_TRTManager
ServiceHandle< StoreGateSvc > m_detStore
Gaudi::Property< std::vector< unsigned int > > m_subDetNoAlignProp
Define the subdetectors for which the tracking geometry does not expect a valid alignment store.
Gaudi::Property< std::string > m_blueprintGraphviz
std::shared_ptr< const Acts::ILayerBuilder > makeHGTDLayerBuilder(const HGTD_DetectorManager *manager)
Gaudi::Property< bool > m_useMaterialMap
std::shared_ptr< const Acts::TrackingGeometry > m_trackingGeometry
Gaudi::Property< std::string > m_materialMapCalibFolder
std::shared_ptr< const Acts::TrackingGeometry > trackingGeometry() override
const HGTD_DetectorManager * p_HGTDManager
Gaudi::Property< std::vector< float > > m_passiveITkOuterPixelBarrelLayerThickness
const InDetDD::SiDetectorManager * p_pixelManager
Gaudi::Property< bool > m_objDebugOutput
Gaudi::Property< std::vector< float > > m_passiveITkOuterPixelBarrelLayerRadii
std::shared_ptr< const Acts::ILayerBuilder > makeStrawLayerBuilder(const InDetDD::InDetDetectorManager *manager)
Gaudi::Property< size_t > m_consistencyCheckPoints
const ActsTrk::GeometryContext & getNominalContext() const override
Gaudi::Property< double > m_numberOfBinsFactor
controls how many bins are created for the sensitive surface grid.
Gaudi::Property< std::string > m_materialMapInputFileBase
const InDetDD::SiDetectorManager * p_ITkStripManager
Gaudi::Property< std::vector< size_t > > m_endcapMaterialBins
Gaudi::Property< std::vector< float > > m_passiveITkStripBarrelLayerRadii
Gaudi::Property< double > m_numberOfInnermostLayerBinsFactor
Special treatment for the innermost pixel layer to have more control on bin size to account for shall...
std::set< ActsTrk::DetectorType > m_subDetNoAlign
const BeamPipeDetectorManager * p_beamPipeMgr
Gaudi::Property< bool > m_printGeo
Print the assembled tracking geometry after building.
Gaudi::Property< bool > m_buildBeamPipe
Gaudi::Property< std::vector< std::string > > m_buildSubdetectors
Gaudi::Property< bool > m_doEndcapLayerMerging
ToolHandle< IActsTrackingVolumeBuilder > m_caloVolumeBuilder
ActsTrackingGeometrySvc(const std::string &name, ISvcLocator *pSvcLocator)
std::shared_ptr< Acts::TrackingVolume > makeSCTTRTAssembly(const Acts::GeometryContext &gctx, const Acts::ILayerBuilder &sct_lb, const Acts::ILayerBuilder &trt_lb, const Acts::CylinderVolumeHelper &cvh, const std::shared_ptr< const Acts::TrackingVolume > &pixel)
Gaudi::Property< std::vector< float > > m_passiveITkOuterPixelBarrelLayerHalflengthZ
Gaudi::Property< std::vector< size_t > > m_barrelMaterialBins
Gaudi::Property< std::vector< float > > m_passiveITkInnerPixelBarrelLayerRadii
the specifications for building additional passive cylinders in the barrel region: for each cylinder ...
Gaudi::Property< std::vector< float > > m_passiveITkInnerPixelBarrelLayerThickness
Gaudi::Property< std::vector< float > > m_passiveITkStripBarrelLayerHalflengthZ
const InDetDD::SiDetectorManager * p_SCTManager
const InDetDD::SiDetectorManager * p_ITkPixelManager
ActsLayerBuilder::Config makeLayerBuilderConfig(const InDetDD::InDetDetectorManager *manager)
Gaudi::Property< bool > m_useBlueprint
The Detector manager has methods to retrieve the Identifier helper and methods to retrieve the detect...
This is an Identifier helper class for the HGTD subdetector.
Definition HGTD_ID.h:47
Virtual base class for all ID detector managers.
Base class for Pixel and SCT Detector managers.
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:82
Message Stream Member.
nested configuration struct for steering of the layer builder