Skip to content

tauRecTools: avoid the type conversion in function overloading

Xiaozhong Huang requested to merge xiaozhon/athena:fix into master

In TauVertexCorrection, we have

  • getVertexCorrectedP4(const xAOD::CaloCluster&, const xAOD::Vertex*, const xAOD::Vertex*)
  • getVertexCorrectedP4(const xAOD::PFO&, const xAOD::Vertex*, const xAOD::Vertex*)
  • getVertexCorrectedP4(const xAOD::JetConstituent&, const xAOD::Vertex*, const xAOD::Vertex*)

In several tau reconstruction tools, we invoke TauVertexCorrection:: getVertexCorrectedP4(const xAOD::CaloCluster*, const xAOD::Vertex*, const xAOD::Vertex*) by mistake. It does not cause any problem due to the type conversion from const xAOD::CaloCluster* to const xAOD::JetConstituent&. But it is not intended. This behavior is now fixed.

Merge request reports