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

VertexDecoratorAlg.cxx: resolved merge conflicts as suggested by Thomas Strebler

parent 7e717103
No related branches found
No related tags found
1 merge request!787692025-03-24: merge of 24.0 into main
......@@ -221,16 +221,29 @@ namespace InDetGNNHardScatterSelection
dec_z_skew(*vertex) = z_skew;
if (acc_deltaZ.isAvailable()) {
//protect against rare NaNs before assigning decorator: setting to 0 (-999 cause NaNs)
if (std::isnan(acc_deltaZ(*vertex))) {
ATH_MSG_WARNING("photon deltaPhi is NaN: setting to 0!");
dec_photon_deltaz(*vertex) = 0;
}
else{
dec_photon_deltaz(*vertex) = acc_deltaZ(*vertex);
}
}
else{
dec_photon_deltaz(*vertex) = -999;
dec_photon_deltaz(*vertex) = 0;
}
if (acc_deltaPhi.isAvailable()) {
if (std::isnan(acc_deltaPhi(*vertex))) {
ATH_MSG_WARNING("photon deltaPhi is NaN: setting to 0!");
dec_photon_deltaPhi(*vertex) = 0;
}
else{
dec_photon_deltaPhi(*vertex) = acc_deltaPhi(*vertex);
}
}
else{
dec_photon_deltaPhi(*vertex) = -999;
dec_photon_deltaPhi(*vertex) = 0;
}
// associate objects to vertices
......
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