ATLAS Offline Software
Functions
xAODTrackParticlePrivate Namespace Reference

Functions

void covarianceUnsetHook ()
 Function that would be possible to use to debug what client is trying to access covariance matrix from an xAOD::TrackParticle object, before they it has been set. More...
 

Function Documentation

◆ covarianceUnsetHook()

void xAODTrackParticlePrivate::covarianceUnsetHook ( )

Function that would be possible to use to debug what client is trying to access covariance matrix from an xAOD::TrackParticle object, before they it has been set.

Definition at line 27 of file TrackParticle_v1.cxx.

27  {
28  static std::atomic< bool > uninitCovarianceAccessPrinted = false;
29  if( ! uninitCovarianceAccessPrinted ) {
30  std::cout << "xAOD::TrackParticle WARNING Uninitialised covariance matrix was "
31  "accessed.\n"
32  " Debug it by breaking on "
33  "xAODTrackParticlePrivate::covarianceUnsetHook function calls!"
34  << std::endl;
35  uninitCovarianceAccessPrinted = true;
36  }
37  return;
38  }