diff --git a/Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/ATLAS_CHECK_THREAD_SAFETY b/Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/ATLAS_CHECK_THREAD_SAFETY new file mode 100644 index 0000000000000000000000000000000000000000..2f999ff7e6732590a3d66af948669d3cbb0ef5a1 --- /dev/null +++ b/Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/ATLAS_CHECK_THREAD_SAFETY @@ -0,0 +1 @@ +Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint diff --git a/Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePoint.h b/Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePoint.h index b2478cee6485d38fd7e63023c202c4880ff8e63d..12dd8db822361228bb4d9cc174605b4a5a4c8943 100755 --- a/Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePoint.h +++ b/Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePoint.h @@ -82,11 +82,8 @@ namespace Trk{ /**Interface method for output, to be overloaded by child classes* */ virtual std::ostream& dump( std::ostream& out ) const =0 ; - /**return number of parameters currently created*/ - static unsigned int numberOfInstantiations() ; - protected: - mutable const std::pair<const PrepRawData*, const PrepRawData*> *m_clusList; + const std::pair<const PrepRawData*, const PrepRawData*> *m_clusList; std::pair<IdentifierHash, IdentifierHash> m_elemIdList; Amg::Vector3D m_position; Amg::MatrixX m_globalCovariance; @@ -95,8 +92,6 @@ namespace Trk{ /** might not be performant enough, evaluate */ private: - /** number of objects of this type in memory */ - static unsigned int s_numberOfInstantiations; }; diff --git a/Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePointContainer.h b/Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePointContainer.h index 199314e5cd6496186fc720d701d8e37811792c45..1de95188362ce09dadc0427c5c89b73a9e7dab26 100755 --- a/Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePointContainer.h +++ b/Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePointContainer.h @@ -44,7 +44,7 @@ public: /** return class ID */ static const CLID& classID() { - static CLID id = 1273119430 ; + static const CLID id = 1273119430 ; return id; // we do not know why using the traits does not work //return ClassID_traits<SpacePointContainer>::ID(); diff --git a/Tracking/TrkEvent/TrkSpacePoint/src/SpacePoint.cxx b/Tracking/TrkEvent/TrkSpacePoint/src/SpacePoint.cxx index 78802bc1fffc1f938a6da4c57c897b3976497391..0726a81742d14c0fdc4fc2255486afaefd55c096 100755 --- a/Tracking/TrkEvent/TrkSpacePoint/src/SpacePoint.cxx +++ b/Tracking/TrkEvent/TrkSpacePoint/src/SpacePoint.cxx @@ -23,16 +23,10 @@ namespace Trk { - unsigned int SpacePoint::s_numberOfInstantiations=0; - - // Destructor: SpacePoint::~SpacePoint() { delete m_clusList; -#ifndef NDEBUG - s_numberOfInstantiations--; // delete SpacePoint, so decrement total count -#endif } // ------------------------------------------------------------------ @@ -45,9 +39,6 @@ namespace Trk m_position(), m_globalCovariance() { -#ifndef NDEBUG - s_numberOfInstantiations++; // new SpacePoint, so increment total count -#endif } // ------------------------------------------------------------------ @@ -64,9 +55,6 @@ namespace Trk m_clusList=nullptr; } m_globalCovariance = SP.m_globalCovariance; -#ifndef NDEBUG - s_numberOfInstantiations++; // new SpacePoint, so increment total count -#endif } // ------------------------------------------------------------------ @@ -129,14 +117,6 @@ namespace Trk return m_clusList->first->detectorElement()->surface(); } - // ------------------------------------------------------------------ - - unsigned int SpacePoint::numberOfInstantiations() - { - return s_numberOfInstantiations; - } - - } // end of namespace