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

Merge branch 'master-sp' into 'master'

Add ATLAS_CHECK_THREAD_SAFETY to TrkSpacePoint package

See merge request atlas/athena!22726
parents 336cfbe9 cd02d5a2
No related branches found
No related tags found
No related merge requests found
Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint
...@@ -82,11 +82,8 @@ namespace Trk{ ...@@ -82,11 +82,8 @@ namespace Trk{
/**Interface method for output, to be overloaded by child classes* */ /**Interface method for output, to be overloaded by child classes* */
virtual std::ostream& dump( std::ostream& out ) const =0 ; virtual std::ostream& dump( std::ostream& out ) const =0 ;
/**return number of parameters currently created*/
static unsigned int numberOfInstantiations() ;
protected: 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; std::pair<IdentifierHash, IdentifierHash> m_elemIdList;
Amg::Vector3D m_position; Amg::Vector3D m_position;
Amg::MatrixX m_globalCovariance; Amg::MatrixX m_globalCovariance;
...@@ -95,8 +92,6 @@ namespace Trk{ ...@@ -95,8 +92,6 @@ namespace Trk{
/** might not be performant enough, evaluate */ /** might not be performant enough, evaluate */
private: private:
/** number of objects of this type in memory */
static unsigned int s_numberOfInstantiations;
}; };
......
...@@ -44,7 +44,7 @@ public: ...@@ -44,7 +44,7 @@ public:
/** return class ID */ /** return class ID */
static const CLID& classID() static const CLID& classID()
{ {
static CLID id = 1273119430 ; static const CLID id = 1273119430 ;
return id; return id;
// we do not know why using the traits does not work // we do not know why using the traits does not work
//return ClassID_traits<SpacePointContainer>::ID(); //return ClassID_traits<SpacePointContainer>::ID();
......
...@@ -23,16 +23,10 @@ ...@@ -23,16 +23,10 @@
namespace Trk namespace Trk
{ {
unsigned int SpacePoint::s_numberOfInstantiations=0;
// Destructor: // Destructor:
SpacePoint::~SpacePoint() SpacePoint::~SpacePoint()
{ {
delete m_clusList; delete m_clusList;
#ifndef NDEBUG
s_numberOfInstantiations--; // delete SpacePoint, so decrement total count
#endif
} }
// ------------------------------------------------------------------ // ------------------------------------------------------------------
...@@ -45,9 +39,6 @@ namespace Trk ...@@ -45,9 +39,6 @@ namespace Trk
m_position(), m_position(),
m_globalCovariance() m_globalCovariance()
{ {
#ifndef NDEBUG
s_numberOfInstantiations++; // new SpacePoint, so increment total count
#endif
} }
// ------------------------------------------------------------------ // ------------------------------------------------------------------
...@@ -64,9 +55,6 @@ namespace Trk ...@@ -64,9 +55,6 @@ namespace Trk
m_clusList=nullptr; m_clusList=nullptr;
} }
m_globalCovariance = SP.m_globalCovariance; m_globalCovariance = SP.m_globalCovariance;
#ifndef NDEBUG
s_numberOfInstantiations++; // new SpacePoint, so increment total count
#endif
} }
// ------------------------------------------------------------------ // ------------------------------------------------------------------
...@@ -129,14 +117,6 @@ namespace Trk ...@@ -129,14 +117,6 @@ namespace Trk
return m_clusList->first->detectorElement()->surface(); return m_clusList->first->detectorElement()->surface();
} }
// ------------------------------------------------------------------
unsigned int SpacePoint::numberOfInstantiations()
{
return s_numberOfInstantiations;
}
} // end of namespace } // end of namespace
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