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

Merge branch 'clang.TrkVertexFitterUtils-20200813' into 'master'

TrkVertexFitterUtils: Fix clang warning.

See merge request atlas/athena!35572
parents c4739808 9e4770d0
No related branches found
No related tags found
No related merge requests found
/* /*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/ */
/********************************************************************* /*********************************************************************
...@@ -112,16 +112,18 @@ namespace Trk ...@@ -112,16 +112,18 @@ namespace Trk
float Chi2TrackCompatibilityEstimator::compatibility(VxTrackAtVertex & vtxTrack,const Amg::Vector3D & vertex) const float Chi2TrackCompatibilityEstimator::compatibility(VxTrackAtVertex & vtxTrack,const Amg::Vector3D & vertex) const
{ {
//Looking for a AtaPlane object (track)
const Trk::AtaPlane * myAtaPlane=vtxTrack.ImpactPoint3dAtaPlane(); const Trk::AtaPlane * myAtaPlane=vtxTrack.ImpactPoint3dAtaPlane();
if (myAtaPlane!=nullptr && myAtaPlane->covariance()!=nullptr) {
if (myAtaPlane!=nullptr && myAtaPlane->covariance()!=nullptr) //Looking for a AtaPlane object (track)
return _compatibility(myAtaPlane, vertex); return _compatibility(myAtaPlane, vertex);
}
//looking for a NeutralAtaPlane object (neutral) //looking for a NeutralAtaPlane object (neutral)
const Trk::NeutralAtaPlane * myNeutralAtaPlane=vtxTrack.ImpactPoint3dNeutralAtaPlane(); const Trk::NeutralAtaPlane * myNeutralAtaPlane=vtxTrack.ImpactPoint3dNeutralAtaPlane();
if (myNeutralAtaPlane!=nullptr && myNeutralAtaPlane->covariance()!=nullptr) if (myNeutralAtaPlane!=nullptr && myNeutralAtaPlane->covariance()!=nullptr){
return _compatibility(myNeutralAtaPlane, vertex); return _compatibility(myNeutralAtaPlane, vertex);
}
ATH_MSG_WARNING( " No compatibility plane attached to the VxTrackAtVertex. Compatibility couldn't be found... 0 compatibility returned." ); ATH_MSG_WARNING( " No compatibility plane attached to the VxTrackAtVertex. Compatibility couldn't be found... 0 compatibility returned." );
return 100; return 100;
} }
......
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