HEP-FCC / k4RecCalorimeter

Key4hep Framework Components for the Calorimeter Reconstruction
2 stars 18 forks source link

fix photon ID inputs when noise is on #122

Closed giovannimarchiori closed 2 weeks ago

giovannimarchiori commented 2 weeks ago

When calculating RMS width of showers in layers of ECAL when noise is on the RMS can be negative due to negative-energy cells. In that case the code was crashing. This PR will set the width to zero for those cases

BrieucF commented 2 weeks ago

LGTM! @kjvbrt ?