Skip to content
Snippets Groups Projects

Add protection for photons with no layer 1 EM clusters for pointing tool

Merged Thomas Strebler requested to merge tstreble-main-patch-72254 into main
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -9,8 +9,9 @@
photonWrtPoint::PtEtaPhi photonWrtPoint::PtEtaPhiWrtZ(const xAOD::Egamma& ph,
double z) {
std::pair<double, float> RZ1 =
CP::ShowerDepthTool::getRZ(ph.caloCluster()->etaBE(1), 1);
std::pair<double, float> RZ1 = {0., 0.};
float etaBE1 = ph.caloCluster()->etaBE(1);
if(std::abs(etaBE1) < 10) RZ1 = CP::ShowerDepthTool::getRZ(etaBE1, 1);
double rCalo = RZ1.first;
double zCalo = RZ1.second;
Loading