ATLAS Offline Software
Loading...
Searching...
No Matches
SCTGeometryManagerTool.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 INDETALIGNGEOMTOOLS_SCTGEOMETRYMANAGERTOOL_H
6#define INDETALIGNGEOMTOOLS_SCTGEOMETRYMANAGERTOOL_H
7
9
11
14
16#include "Gaudi/Property.h"
17
28
29namespace InDetDD
30{
32}
33
34class SCT_ID;
35
36namespace Trk
37{
38 class AlignPar;
39 class AlignModule;
40}
41
42namespace InDet
43{
44 class SCTGeometryManagerTool : public extends<AthAlgTool, Trk::IGeometryManagerTool>
45 {
46 public:
47 using base_class::base_class;
49
50 StatusCode initialize();
51 StatusCode finalize();
52
57 int ReadGeometry(int solveLevel);
58
59 // the following two methods need to be overloaded but we don't need them (for the moment)
61 void StoreModPositions(std::string) {};
62
64 void buildGeometry();
65
69
71 bool checkAlignLevel();
72
75
78
79 void setAlignLevel(int level);
80
81
82 private:
83
85 void buildL0();
86
88 void buildL1Barrel();
89
91 void buildL1Endcaps();
92
94 void buildL2Barrel();
95
97 void buildL27Barrel();
98
100 void buildL2Endcaps();
101
103 void buildL25Endcaps();
104
106 void buildL2Old();
107
109 void buildL3Barrel();
110
112 void buildL3Endcaps();
113
116
119
121 bool moduleSelected(unsigned long long modId);
122
124 void dumpGeometry();
125
127
128 const SCT_ID * m_idHelper{nullptr};
129
130 PublicToolHandle<Trk::IAlignModuleTool> m_alignModuleTool{this, "AlignModuleTool", "Trk::AlignModuleTool/AlignModuleTool"};
131
134
135 std::vector<Trk::AlignModuleList *> m_idHashToAlignModuleMaps{std::vector<Trk::AlignModuleList *>(Trk::AlignModule::NDetectorTypes, nullptr)};
136
139
140 Gaudi::Property<int> m_alignLevelProp{this, "AlignmentLevel", 1};
141 Gaudi::Property<int> m_alignLevelBarrelProp{this, "AlignmentLevelBarrel", -1};
142 Gaudi::Property<int> m_alignLevelEndcapsProp{this, "AlignmentLevelEndcaps", -1};
143 Gaudi::Property<bool> m_doModuleSelection{this, "doModuleSelection", false};
144 Gaudi::Property<std::vector<unsigned long long>> m_moduleSelection{this, "ModuleSelection", {}};
145
146 Gaudi::Property<bool> m_alignBarrel{this, "AlignBarrel", true};
147 Gaudi::Property<bool> m_alignEndcaps{this, "AlignEndcaps", true};
148
149 Gaudi::Property<bool> m_alignBarrelX{this, "AlignBarrelX", true};
150 Gaudi::Property<bool> m_alignBarrelY{this, "AlignBarrelY", true};
151 Gaudi::Property<bool> m_alignBarrelZ{this, "AlignBarrelZ", true};
152 Gaudi::Property<bool> m_alignBarrelRotX{this, "AlignBarrelRotX", true};
153 Gaudi::Property<bool> m_alignBarrelRotY{this, "AlignBarrelRotY", true};
154 Gaudi::Property<bool> m_alignBarrelRotZ{this, "AlignBarrelRotZ", true};
155
156 Gaudi::Property<bool> m_alignEndcapX{this, "AlignEndcapX", true};
157 Gaudi::Property<bool> m_alignEndcapY{this, "AlignEndcapY", true};
158 Gaudi::Property<bool> m_alignEndcapZ{this, "AlignEndcapZ", true};
159 Gaudi::Property<bool> m_alignEndcapRotX{this, "AlignEndcapRotX", true};
160 Gaudi::Property<bool> m_alignEndcapRotY{this, "AlignEndcapRotY", true};
161 Gaudi::Property<bool> m_alignEndcapRotZ{this, "AlignEndcapRotZ", true};
162
163 Gaudi::Property<double> m_sigmaBarrelX{this, "SetSigmaBarrelX", 1.};
164 Gaudi::Property<double> m_sigmaBarrelY{this, "SetSigmaBarrelY", 1.};
165 Gaudi::Property<double> m_sigmaBarrelZ{this, "SetSigmaBarrelZ", 1.};
166 Gaudi::Property<double> m_sigmaBarrelRotX{this, "SetSigmaBarrelRotX", 0.001};
167 Gaudi::Property<double> m_sigmaBarrelRotY{this, "SetSigmaBarrelRotY", 0.001};
168 Gaudi::Property<double> m_sigmaBarrelRotZ{this, "SetSigmaBarrelRotZ", 0.001};
169
170 Gaudi::Property<double> m_sigmaEndcapX{this, "SetSigmaEndcapX", 1.};
171 Gaudi::Property<double> m_sigmaEndcapY{this, "SetSigmaEndcapY", 1.};
172 Gaudi::Property<double> m_sigmaEndcapZ{this, "SetSigmaEndcapZ", 1.};
173 Gaudi::Property<double> m_sigmaEndcapRotX{this, "SetSigmaEndcapRotX", 0.001};
174 Gaudi::Property<double> m_sigmaEndcapRotY{this, "SetSigmaEndcapRotY", 0.001};
175 Gaudi::Property<double> m_sigmaEndcapRotZ{this, "SetSigmaEndcapRotZ", 0.001};
176
177 Gaudi::Property<double> m_softcutBarrelX{this, "SetSoftCutBarrelX", 1.};
178 Gaudi::Property<double> m_softcutBarrelY{this, "SetSoftCutBarrelY", 1.};
179 Gaudi::Property<double> m_softcutBarrelZ{this, "SetSoftCutBarrelZ", 1.};
180 Gaudi::Property<double> m_softcutBarrelRotX{this, "SetSoftCutBarrelRotX", 1.};
181 Gaudi::Property<double> m_softcutBarrelRotY{this, "SetSoftCutBarrelRotY", 1.};
182 Gaudi::Property<double> m_softcutBarrelRotZ{this, "SetSoftCutBarrelRotZ", 1.};
183
184 Gaudi::Property<double> m_softcutEndcapX{this, "SetSoftCutEndcapX", 1.};
185 Gaudi::Property<double> m_softcutEndcapY{this, "SetSoftCutEndcapY", 1.};
186 Gaudi::Property<double> m_softcutEndcapZ{this, "SetSoftCutEndcapZ", 1.};
187 Gaudi::Property<double> m_softcutEndcapRotX{this, "SetSoftCutEndcapRotX", 1.};
188 Gaudi::Property<double> m_softcutEndcapRotY{this, "SetSoftCutEndcapRotY", 1.};
189 Gaudi::Property<double> m_softcutEndcapRotZ{this, "SetSoftCutEndcapRotZ", 1.};
190
191 Gaudi::Property<bool> m_useOldL2{this, "UseOldL2", false};
192 Gaudi::Property<bool> m_dumpGeometry{this, "DumpGeometry", true};
193
194 Gaudi::Property<std::string> m_stripDetManagerName{this,"StripDetectorManager","SCT","Name of the Strip Detector Manager to attempt to retrieve"};
195
196
197 }; // end class
198
199} // end namespace
200
201#endif // INDETALIGNGEOMTOOLS_SCTGEOMETRYMANAGERTOOL_H
An STL vector of pointers that by default owns its pointed-to elements.
AlignModule is a grouping of TrkDetElementBase objects, grouped according to the type of alignment,...
AlignPar contains all the information related to an alignment parameter of a particular align module ...
Derived DataVector<T>.
Definition DataVector.h:818
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated SCT in...
Gaudi::Property< bool > m_alignEndcapRotX
PublicToolHandle< Trk::IAlignModuleTool > m_alignModuleTool
pointer to AlignModuleTool
std::vector< Trk::AlignModuleList * > m_idHashToAlignModuleMaps
int ReadGeometry(int solveLevel)
read the geometry Method is called from the main AlignAlg to build the geometry based on the requeste...
void buildL2Endcaps()
creates L2 AlignModules for SCT endcaps
void setSigmas(Trk::AlignModule *mod, DataVector< Trk::AlignPar > *modPars)
sets sigmas for modules
void buildL3Barrel()
creates L3 AlignModules for SCT barrel
Gaudi::Property< bool > m_alignBarrel
Trk::AlignModuleList m_idHashToAlignModuleMap
Gaudi::Property< bool > m_alignBarrelY
Gaudi::Property< double > m_softcutEndcapRotY
Gaudi::Property< bool > m_doModuleSelection
void buildL3Endcaps()
creates L3 AlignModules for SCT endcaps
Gaudi::Property< bool > m_alignEndcapRotZ
Gaudi::Property< double > m_sigmaBarrelRotX
bool checkAlignLevelEndcaps()
check whether the Endcap alignment level is correct
Gaudi::Property< double > m_softcutBarrelX
void buildL1Barrel()
creates L1 AlignModules for SCT barrel
Gaudi::Property< double > m_sigmaEndcapZ
Gaudi::Property< bool > m_alignEndcaps
const InDetDD::SCT_DetectorManager * m_detManager
pointer to SCT detector manager
Gaudi::Property< std::vector< unsigned long long > > m_moduleSelection
Gaudi::Property< int > m_alignLevelProp
property, copied to m_alignLevel in initialize()
Gaudi::Property< double > m_softcutEndcapZ
Gaudi::Property< double > m_softcutEndcapX
void buildL25Endcaps()
creates L25 AlignModules for SCT endcaps
Gaudi::Property< double > m_sigmaEndcapRotX
Gaudi::Property< bool > m_alignBarrelRotY
DataVector< DataVector< Trk::AlignPar > > * m_fullAlignParList
Gaudi::Property< bool > m_alignBarrelX
Gaudi::Property< double > m_softcutEndcapRotX
bool checkAlignLevelBarrel()
check whether the Barrel alignment level is correct
void buildL2Old()
creates L2 AlignModules for the full Pixel in the ordering equal to the old code
Gaudi::Property< double > m_softcutBarrelRotY
Gaudi::Property< bool > m_alignEndcapY
Gaudi::Property< bool > m_alignEndcapZ
Gaudi::Property< double > m_sigmaEndcapRotZ
Gaudi::Property< bool > m_dumpGeometry
void buildL27Barrel()
creates L27 AlignModules for SCT barrel
const SCT_ID * m_idHelper
pointer to SCT detector manager
void buildL0()
creates L0 AlignModules for SCT
void addModuleParameters(Trk::AlignModule *module, DataVector< DataVector< Trk::AlignPar > > *allFullModPars, DataVector< DataVector< Trk::AlignPar > > *allActiveModPars)
adds alignment parameters for the module checks for active parameters and calls setSigmas()
Gaudi::Property< double > m_sigmaBarrelRotY
Gaudi::Property< bool > m_alignBarrelRotZ
Gaudi::Property< double > m_sigmaBarrelY
Gaudi::Property< double > m_softcutBarrelRotX
Gaudi::Property< double > m_sigmaBarrelRotZ
Gaudi::Property< double > m_softcutEndcapY
Gaudi::Property< bool > m_alignEndcapRotY
Gaudi::Property< bool > m_alignBarrelZ
Gaudi::Property< double > m_sigmaEndcapRotY
void buildL2Barrel()
creates L2 AlignModules for SCT barrel
Gaudi::Property< double > m_sigmaBarrelZ
Gaudi::Property< bool > m_alignEndcapX
DataVector< DataVector< Trk::AlignPar > > * m_alignParList
Gaudi::Property< double > m_softcutBarrelZ
Gaudi::Property< double > m_softcutBarrelY
Gaudi::Property< double > m_softcutBarrelRotZ
bool moduleSelected(Trk::AlignModule *mod)
check wheather module is selected for module pointer
Gaudi::Property< int > m_alignLevelBarrelProp
property, copied to m_alignLevelBarrel in initialize()
Gaudi::Property< bool > m_alignBarrelRotX
Gaudi::Property< double > m_sigmaEndcapX
Gaudi::Property< double > m_sigmaBarrelX
void buildGeometry()
builds geometry for SCT alignment
bool checkAlignLevel()
check whether the alignment level is correct
Gaudi::Property< std::string > m_stripDetManagerName
Gaudi::Property< int > m_alignLevelEndcapsProp
property, copied to m_alignLevelEndcaps in initialize()
Gaudi::Property< double > m_sigmaEndcapY
void dumpGeometry()
print basic geometry info to screen
Gaudi::Property< double > m_softcutEndcapRotZ
void buildL1Endcaps()
creates L1 AlignModules for SCT endcaps
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated SCT in...
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
Message Stream Member.
Primary Vertex Finder.
Ensure that the ATLAS eigen extensions are properly loaded.
std::vector< AlignModule * > AlignModuleList