Skip to content
Snippets Groups Projects
Commit 26340731 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'fixatomic3' into 'master'

SiDetectorElement small cleanup

See merge request atlas/athena!22022
parents 94c8c8ab 110587f3
No related branches found
No related tags found
No related merge requests found
......@@ -616,15 +616,15 @@ namespace InDetDD {
// Directions of axes. These are true if the hit/simulation and reconstruction local frames are
// in the same direction and false if they are opposite.
mutable std::atomic_bool m_depthDirection; // Direction of depth axis.
mutable bool m_depthDirection ATLAS_THREAD_SAFE; // Guarded by m_mutex // Direction of depth axis.
// Also direction of readout implant (n+ for pixel, p+ for SCT).
mutable std::atomic_bool m_phiDirection; //
mutable std::atomic_bool m_etaDirection; //
mutable bool m_phiDirection ATLAS_THREAD_SAFE; //
mutable bool m_etaDirection ATLAS_THREAD_SAFE; //
mutable std::atomic_bool m_cacheValid; // Alignment associated quatities.
mutable std::atomic_bool m_firstTime;
mutable std::atomic_bool m_isStereo;
mutable bool m_isStereo ATLAS_THREAD_SAFE;
mutable std::recursive_mutex m_mutex;
mutable Amg::Transform3D m_transform ATLAS_THREAD_SAFE; // Guarded by m_mutex
......@@ -638,12 +638,12 @@ namespace InDetDD {
mutable Amg::Vector3D m_center ATLAS_THREAD_SAFE; // Guarded by m_mutex
mutable HepGeom::Vector3D<double> m_centerCLHEP ATLAS_THREAD_SAFE; // Guarded by m_mutex
mutable std::atomic<double> m_minZ;
mutable std::atomic<double> m_maxZ;
mutable std::atomic<double> m_minR;
mutable std::atomic<double> m_maxR;
mutable std::atomic<double> m_minPhi;
mutable std::atomic<double> m_maxPhi;
mutable double m_minZ ATLAS_THREAD_SAFE;// Guarded by m_mutex
mutable double m_maxZ ATLAS_THREAD_SAFE;// Guarded by m_mutex
mutable double m_minR ATLAS_THREAD_SAFE;// Guarded by m_mutex
mutable double m_maxR ATLAS_THREAD_SAFE;// Guarded by m_mutex
mutable double m_minPhi ATLAS_THREAD_SAFE;// Guarded by m_mutex
mutable double m_maxPhi ATLAS_THREAD_SAFE;// Guarded by m_mutex
CxxUtils::CachedUniquePtr<Trk::Surface> m_surface;
mutable std::vector<const Trk::Surface*> m_surfaces ATLAS_THREAD_SAFE; // Guarded by m_mutex
......
......@@ -331,14 +331,8 @@ SiDetectorElement::updateCache() const
m_phiAxis = Amg::Vector3D(m_phiAxisCLHEP[0],m_phiAxisCLHEP[1],m_phiAxisCLHEP[2]);
m_etaAxis = Amg::Vector3D(m_etaAxisCLHEP[0],m_etaAxisCLHEP[1],m_etaAxisCLHEP[2]);
double minR, maxR, minZ, maxZ, minPhi, maxPhi;
getExtent(minR, maxR, minZ, maxZ, minPhi, maxPhi);
m_minR = minR;
m_maxR = maxR;
m_minZ = minZ;
m_maxZ = maxZ;
m_minPhi = minPhi;
m_maxPhi = maxPhi;
getExtent(m_minR, m_maxR, m_minZ, m_maxZ, m_minPhi, m_maxPhi);
// Determin isStereo
if (firstTimeTmp) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment