Skip to content
Snippets Groups Projects
Commit 7bb88cf4 authored by Thomas Strebler's avatar Thomas Strebler
Browse files

Fixed compiler warning

parent 4caf9a06
No related branches found
No related tags found
No related merge requests found
......@@ -216,9 +216,7 @@ namespace CP
float theta=trk.theta();
// check the vertex, return false if the vertex is a dummy one
if(&vx!=NULL)
{
if(vx.vertexType()!=xAOD::VxType::NoVtx) // select good vertex
if(vx.vertexType()!=xAOD::VxType::NoVtx) // select good vertex
{
float vx_z0=vx.z();
if(fabs((trk_z0-vx_z0+beamspot_z0)*sin(theta))<m_dz_cut && fabs(trk_d0)<=m_d0_cut) // cut
......@@ -228,17 +226,11 @@ namespace CP
}
else return false;
}
else
else
{
ATH_MSG_DEBUG("The Vertex is a fake one, will not do track-vertex association");
return false;
}
}
else
{
ATH_MSG_DEBUG("Invalid Vertex pointer, return false");
return false;
}
}
......
......@@ -233,9 +233,7 @@ namespace CP
{
ATH_MSG_DEBUG("<###### Enter: doTightMatch() function ######>");
if(&vx!=NULL)
{
if(vx.vertexType()!=xAOD::VxType::NoVtx )
if(vx.vertexType()!=xAOD::VxType::NoVtx )
{
if(trk.vertex()==&vx) // check whether the track is used for the given vertex fit.
......@@ -271,17 +269,11 @@ namespace CP
}
else return UnMatch;
}
else
else
{
ATH_MSG_DEBUG("The vertex is a fake one");
return UnMatch;
}
}
else
{
ATH_MSG_DEBUG("Invalid Vertex pointer, return false");
return UnMatch;
}
return Matched;
}
......
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