ATLAS Offline Software
Loading...
Searching...
No Matches
SiGeometryManagerTool.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_SIGEOMETRYMANAGERTOOL_H
6#define INDETALIGNGEOMTOOLS_SIGEOMETRYMANAGERTOOL_H
7
9
11
14
16
17#include <TGeoManager.h>
18#include "Gaudi/Property.h"
19
20
31
32namespace InDetDD
33{
36}
37
38class SCT_ID;
39class PixelID;
40class SiliconID;
41
42namespace Trk
43{
44 class AlignPar;
45 class AlignModule;
46}
47
48namespace InDet
49{
50 class SiGeometryManagerTool : public extends<AthAlgTool, Trk::IGeometryManagerTool>
51 {
52 public:
53 using base_class::base_class;
54 virtual ~SiGeometryManagerTool();
55
56 StatusCode initialize();
57 StatusCode finalize();
58
63 int ReadGeometry(int solveLevel);
64
65 // the following two methods need to be overloaded but we don't need them (for the moment)
67 void StoreModPositions(std::string) {};
68
70 void buildGeometry();
71
75
77 bool checkAlignLevel();
78
80 void setLogStream(std::ostream * os);
81
82 private:
83
85 void buildL0();
86
89
92
94 bool moduleSelected(unsigned long long modId);
95
97 void dumpGeometry();
98
100 bool isOneDetOnly(const Trk::AlignModule * mod, Trk::AlignModule::DetectorType dettype) const;
101
104
105 const PixelID * m_pixHelper{nullptr};
106 const SCT_ID * m_sctHelper{nullptr};
107 const SiliconID * m_idHelper{nullptr};
108
109 PublicToolHandle<Trk::IGeometryManagerTool> m_pixelGeoManager{this, "PixelGeometryManager", ""};
110 PublicToolHandle<Trk::IGeometryManagerTool> m_sctGeoManager{this, "SCTGeometryManager", ""};
111
112 PublicToolHandle<Trk::IAlignModuleTool> m_alignModuleTool{this, "AlignModuleTool", "Trk::AlignModuleTool/AlignModuleTool"};
113
116
117 std::vector<Trk::AlignModuleList *> m_idHashToAlignModuleMaps{std::vector<Trk::AlignModuleList *>(Trk::AlignModule::NDetectorTypes, nullptr)};
118
121
122 // alignment transforms
123 Gaudi::Property<bool> m_alignX{this, "AlignX", true};
124 Gaudi::Property<bool> m_alignY{this, "AlignY", true};
125 Gaudi::Property<bool> m_alignZ{this, "AlignZ", true};
126 Gaudi::Property<bool> m_alignRotX{this, "AlignRotX", true};
127 Gaudi::Property<bool> m_alignRotY{this, "AlignRotY", true};
128 Gaudi::Property<bool> m_alignRotZ{this, "AlignRotZ", true};
129
130 Gaudi::Property<double> m_sigmaX{this, "SetSigmaX", 1.};
131 Gaudi::Property<double> m_sigmaY{this, "SetSigmaY", 1.};
132 Gaudi::Property<double> m_sigmaZ{this, "SetSigmaZ", 1.};
133 Gaudi::Property<double> m_sigmaRotX{this, "SetSigmaRotX", 0.001};
134 Gaudi::Property<double> m_sigmaRotY{this, "SetSigmaRotY", 0.001};
135 Gaudi::Property<double> m_sigmaRotZ{this, "SetSigmaRotZ", 0.001};
136
137 // Silicon joboptions
138 Gaudi::Property<bool> m_alignPixel{this, "AlignPixel", true};
139 Gaudi::Property<bool> m_alignSCT{this, "AlignSCT", true};
140
141 Gaudi::Property<int> m_alignLevelProp{this, "AlignmentLevel", -1};
142 Gaudi::Property<bool> m_doModuleSelection{this, "doModuleSelection", false};
143 Gaudi::Property<std::vector<unsigned long long>> m_moduleSelection{this, "ModuleSelection", {}};
144
145 Gaudi::Property<bool> m_dumpGeometry{this, "DumpGeometry", true};
146 Gaudi::Property<bool> m_actualGeom{this, "ActualGeometry", false};
147
148 Gaudi::Property<std::string> m_pixelDetManagerName{this,"PixelDetectorManager","Pixel","Name of the Pixel Detector Manager to attempt to retrieve"};
149 Gaudi::Property<std::string> m_stripDetManagerName{this,"StripDetectorManager","SCT","Name of the Strip Detector Manager to attempt to retrieve"};
150
151 }; // end class
152
153} // end namespace
154
155#endif // INDETALIGNGEOMTOOLS_SIGEOMETRYMANAGERTOOL_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 pixel ...
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated SCT in...
Gaudi::Property< bool > m_alignRotZ
PublicToolHandle< Trk::IGeometryManagerTool > m_sctGeoManager
pointer to SCT geometry manager
const InDetDD::PixelDetectorManager * m_pixelDetManager
pointer to PIX detector manager
DataVector< DataVector< Trk::AlignPar > > * m_alignParList
Gaudi::Property< bool > m_dumpGeometry
void buildGeometry()
builds geometry for Silicon alignment
Gaudi::Property< double > m_sigmaRotZ
void setSigmas(Trk::AlignModule *mod, DataVector< Trk::AlignPar > *modPars)
sets sigmas for modules
Gaudi::Property< bool > m_alignRotY
Gaudi::Property< bool > m_actualGeom
PublicToolHandle< Trk::IAlignModuleTool > m_alignModuleTool
pointer to AlignModuleTool
Gaudi::Property< double > m_sigmaRotY
Gaudi::Property< double > m_sigmaZ
Gaudi::Property< std::string > m_pixelDetManagerName
Gaudi::Property< bool > m_alignSCT
bool moduleSelected(Trk::AlignModule *mod)
check wheather module is selected for module pointer
int ReadGeometry(int solveLevel)
read the geometry Method is called from the main AlignAlg to build the geometry based on the requeste...
void buildL0()
creates L0 AlignModules for Silicon
const SCT_ID * m_sctHelper
pointer to SCT detector manager
const SiliconID * m_idHelper
pointer to Silicon detector manager
Gaudi::Property< std::vector< unsigned long long > > m_moduleSelection
DataVector< DataVector< Trk::AlignPar > > * m_fullAlignParList
Gaudi::Property< bool > m_alignPixel
void setLogStream(std::ostream *os)
sets the output stream for the logfile
void dumpGeometry()
print basic geometry info to screen
Gaudi::Property< double > m_sigmaY
const InDetDD::SCT_DetectorManager * m_sctDetManager
pointer to SCT detector manager
Gaudi::Property< double > m_sigmaRotX
bool isOneDetOnly(const Trk::AlignModule *mod, Trk::AlignModule::DetectorType dettype) const
check whether the module is of a single detector type
bool checkAlignLevel()
check whether the alignment level is correct
Trk::AlignModuleList m_idHashToAlignModuleMap
const PixelID * m_pixHelper
pointer to PIX detector manager
std::vector< Trk::AlignModuleList * > m_idHashToAlignModuleMaps
PublicToolHandle< Trk::IGeometryManagerTool > m_pixelGeoManager
pointer to Pixel geometry manager
Gaudi::Property< bool > m_doModuleSelection
Gaudi::Property< int > m_alignLevelProp
property, copied to m_alignLevel in initialize()
Gaudi::Property< std::string > m_stripDetManagerName
Gaudi::Property< bool > m_alignRotX
Gaudi::Property< double > m_sigmaX
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()
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated pixel ...
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:69
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
This is an Identifier helper class for both the Pixel and SCT subdetectors.
Definition SiliconID.h:42
Message Stream Member.
Primary Vertex Finder.
Ensure that the ATLAS eigen extensions are properly loaded.
std::vector< AlignModule * > AlignModuleList