ATLAS Offline Software
SCT_GeometryManager.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include <memory>
6 
7 
8 
10 
12 #include "InDetIdentifier/SCT_ID.h"
21 
23  : m_athenaComps{rdb->athenaComps()},
24  m_commonItems{nullptr},
25  m_rdb{rdb},
26  // This class uses reference counting. Should not be delete'd in destructor.
27  m_barrelParameters (std::make_unique<SCT_BarrelParameters>(m_rdb)),
28  m_barrelModuleParameters (std::make_unique<SCT_BarrelModuleParameters>(m_rdb)),
29  m_forwardParameters (std::make_unique<SCT_ForwardParameters>(m_rdb)),
30  m_forwardModuleParameters (std::make_unique<SCT_ForwardModuleParameters>(m_rdb)),
31  m_generalParameters (std::make_unique<SCT_GeneralParameters>(m_rdb)),
32  m_distortedMatManager (std::make_unique<InDetDD::DistortedMaterialManager>())
33 {
34 }
35 
37 {
38 }
39 
40 //
41 // Access to run time options.
42 //
43 const SCT_Options &
45 {
46  return m_options;
47 }
48 
49 void
51 {
53 }
54 
57 {
58  return m_athenaComps;
59 }
60 
61 //
62 // SiCommonItems which are passed to SiDetectorElements.
63 //
64 
67 {
68  return m_commonItems;
69 }
70 
71 void
73 {
75 }
76 
77 const SCT_BarrelParameters *
79 {
80  return m_barrelParameters.get();
81 }
82 
85 {
86  return m_barrelModuleParameters.get();
87 }
88 
89 
92 {
93  return m_forwardModuleParameters.get();
94 }
95 
96 
97 const SCT_ForwardParameters *
99 {
100  return m_forwardParameters.get();
101 }
102 
103 
104 const SCT_GeneralParameters *
106 {
107  return m_generalParameters.get();
108 }
109 
112 {
113  return m_distortedMatManager.get();
114 }
115 
118  if (this != &right) {
119  m_options = right.m_options;
122  m_rdb = right.m_rdb;
123  m_barrelParameters = std::make_unique<SCT_BarrelParameters>(m_rdb);
124  m_barrelModuleParameters = std::make_unique<SCT_BarrelModuleParameters>(m_rdb);
125  m_forwardParameters = std::make_unique<SCT_ForwardParameters>(m_rdb);
126  m_forwardModuleParameters = std::make_unique<SCT_ForwardModuleParameters>(m_rdb);
127  m_generalParameters = std::make_unique<SCT_GeneralParameters>(m_rdb);
128  m_distortedMatManager = std::make_unique<InDetDD::DistortedMaterialManager>();
129  }
130  return *this;
131 }
132 
134  : m_options (right.m_options),
135  m_athenaComps (right.m_athenaComps),
136  m_commonItems (right.m_commonItems),
137  m_rdb (right.m_rdb),
138  m_barrelParameters (new SCT_BarrelParameters(m_rdb)),
139  m_barrelModuleParameters (new SCT_BarrelModuleParameters(m_rdb)),
140  m_forwardParameters (new SCT_ForwardParameters(m_rdb)),
141  m_forwardModuleParameters (new SCT_ForwardModuleParameters(m_rdb)),
142  m_generalParameters (new SCT_GeneralParameters(m_rdb)),
143  m_distortedMatManager (new InDetDD::DistortedMaterialManager())
144 {
145 }
SCT_GeometryManager::m_barrelModuleParameters
std::unique_ptr< SCT_BarrelModuleParameters > m_barrelModuleParameters
Definition: SCT_GeometryManager.h:64
SCT_GeometryManager::forwardModuleParameters
const SCT_ForwardModuleParameters * forwardModuleParameters() const
Definition: SCT_GeometryManager.cxx:91
SCT_ID.h
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
SCT_GeometryManager::m_commonItems
const InDetDD::SiCommonItems * m_commonItems
Definition: SCT_GeometryManager.h:60
SCT_GeometryManager::m_forwardModuleParameters
std::unique_ptr< SCT_ForwardModuleParameters > m_forwardModuleParameters
Definition: SCT_GeometryManager.h:66
SCT_GeometryManager::m_generalParameters
std::unique_ptr< SCT_GeneralParameters > m_generalParameters
Definition: SCT_GeometryManager.h:67
SCT_GeoModelAthenaComps.h
SCT_GeometryManager::m_athenaComps
const SCT_GeoModelAthenaComps * m_athenaComps
Definition: SCT_GeometryManager.h:59
SCT_DataBase.h
SCT_GeometryManager::commonItems
const InDetDD::SiCommonItems * commonItems() const
Definition: SCT_GeometryManager.cxx:66
InDetDD::DistortedMaterialManager
Definition: DistortedMaterialManager.h:15
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
SCT_GeometryManager::forwardParameters
const SCT_ForwardParameters * forwardParameters() const
Definition: SCT_GeometryManager.cxx:98
SCT_BarrelModuleParameters.h
SCT_GeometryManager::generalParameters
const SCT_GeneralParameters * generalParameters() const
Definition: SCT_GeometryManager.cxx:105
SCT_Options
Definition: SCT_Options.h:12
SCT_GeometryManager::operator=
SCT_GeometryManager & operator=(const SCT_GeometryManager &right)
Definition: SCT_GeometryManager.cxx:117
SCT_GeneralParameters.h
SCT_GeometryManager::m_distortedMatManager
std::unique_ptr< InDetDD::DistortedMaterialManager > m_distortedMatManager
Definition: SCT_GeometryManager.h:68
SCT_GeometryManager::m_barrelParameters
std::unique_ptr< SCT_BarrelParameters > m_barrelParameters
Definition: SCT_GeometryManager.h:63
SCT_ForwardModuleParameters
Definition: SCT_ForwardModuleParameters.h:12
SCT_GeometryManager::SCT_GeometryManager
SCT_GeometryManager(SCT_DataBase *rdb)
Definition: SCT_GeometryManager.cxx:22
SiCommonItems.h
SCT_DataBase
Definition: SCT_DataBase.h:17
SCT_GeometryManager::options
const SCT_Options & options() const
Definition: SCT_GeometryManager.cxx:44
SCT_ForwardModuleParameters.h
SCT_GeometryManager::barrelParameters
const SCT_BarrelParameters * barrelParameters() const
Definition: SCT_GeometryManager.cxx:78
SCT_GeometryManager::distortedMatManager
InDetDD::DistortedMaterialManager * distortedMatManager() const
Definition: SCT_GeometryManager.cxx:111
python.AtlRunQueryLib.options
options
Definition: AtlRunQueryLib.py:379
SCT_GeneralParameters
Definition: SCT_GeneralParameters.h:16
SCT_GeometryManager::m_options
SCT_Options m_options
Definition: SCT_GeometryManager.h:58
SCT_DataBase::athenaComps
SCT_GeoModelAthenaComps * athenaComps()
Definition: SCT_DataBase.cxx:191
SCT_GeometryManager::m_rdb
SCT_DataBase * m_rdb
Definition: SCT_GeometryManager.h:61
SCT_GeometryManager::barrelModuleParameters
const SCT_BarrelModuleParameters * barrelModuleParameters() const
Definition: SCT_GeometryManager.cxx:84
SCT_GeometryManager::~SCT_GeometryManager
~SCT_GeometryManager()
Definition: SCT_GeometryManager.cxx:36
InDetDD::SiCommonItems
Definition: SiCommonItems.h:45
SCT_BarrelModuleParameters
Definition: SCT_BarrelModuleParameters.h:12
SCT_GeometryManager::setOptions
void setOptions(const SCT_Options &options)
Definition: SCT_GeometryManager.cxx:50
SCT_GeoModelAthenaComps
Class to hold various Athena components.
Definition: SCT_GeoModelAthenaComps.h:14
SCT_BarrelParameters
Definition: SCT_BarrelParameters.h:12
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
SCT_BarrelParameters.h
SCT_ForwardParameters.h
SCT_GeometryManager::setCommonItems
void setCommonItems(const InDetDD::SiCommonItems *commonItems)
Definition: SCT_GeometryManager.cxx:72
SCT_GeometryManager::athenaComps
const SCT_GeoModelAthenaComps * athenaComps() const
Definition: SCT_GeometryManager.cxx:56
SCT_GeometryManager.h
SCT_GeometryManager::m_forwardParameters
std::unique_ptr< SCT_ForwardParameters > m_forwardParameters
Definition: SCT_GeometryManager.h:65
DistortedMaterialManager.h
SCT_GeometryManager
Definition: SCT_GeometryManager.h:25
SCT_ForwardParameters
Definition: SCT_ForwardParameters.h:16