Skip to content
Snippets Groups Projects

Apply position correction on top of geometrical centroid

@@ -99,6 +99,7 @@ AnalogueClusteringToolImpl<calib_data_t, traj_t>::anglesOfIncidence(const InDetD
return std::make_pair(anglePhi, angleEta);
}
template <typename calib_data_t, typename traj_t>
std::pair<float, float>
AnalogueClusteringToolImpl<calib_data_t, traj_t>::getCentroid(
@@ -141,6 +142,28 @@ AnalogueClusteringToolImpl<calib_data_t, traj_t>::getCentroid(
return std::make_pair(centroid.xPhi() + shift, centroid.xEta());
}
template <typename calib_data_t, typename traj_t>
const typename AnalogueClusteringToolImpl<calib_data_t, traj_t>::error_data_t*
AnalogueClusteringToolImpl<calib_data_t, traj_t>::getErrorData() const
{
SG::ReadCondHandle<calib_data_t> handle(
m_clusterErrorKey,
Gaudi::Hive::currentContext());
if (!handle.isValid()) {
ATH_MSG_ERROR(m_clusterErrorKey << " is not available.");
return nullptr;
}
const error_data_t* data = handle->getClusterErrorData();
if (data == nullptr) {
ATH_MSG_ERROR("No cluster error data corresponding to " << m_clusterErrorKey);
return nullptr;
}
return data;
}
template <typename calib_data_t, typename traj_t>
std::pair<std::optional<float>, std::optional<float>>
AnalogueClusteringToolImpl<calib_data_t, traj_t>::getCorrectedPosition(
Loading