A noise filter for calorimeter signals