diff --git a/Simulation/FastShower/FastCaloSim/src/FastShowerCellBuilderTool.cxx b/Simulation/FastShower/FastCaloSim/src/FastShowerCellBuilderTool.cxx index 1ed0c558dc0fa322c2763941a82bb12b65be3041..26d167bb256f68d44b8501a6252738d5b1e0b2c7 100755 --- a/Simulation/FastShower/FastCaloSim/src/FastShowerCellBuilderTool.cxx +++ b/Simulation/FastShower/FastCaloSim/src/FastShowerCellBuilderTool.cxx @@ -1472,7 +1472,14 @@ FastShowerCellBuilderTool::process_particle(CaloCellContainer* theCellContainer, return StatusCode::SUCCESS; } - if(p.E>=3 && p.E*Ein>2000) { + float ERatioThresh = 3; + if (std::abs(Epara->eta() - 1.37) < 0.01) { + // Increase threshold in the gap region. It's possible for a shower + // to fluctuate to have almost all its energy in TileGap3, which has + // a relatively small weight. + ERatioThresh = 4; + } + if(p.E>=ERatioThresh && p.E*Ein>2000) { ATH_MSG_WARNING("particle energy/truth="<<p.E); ATH_MSG_WARNING(" - "<<particle_info_str.str()); ATH_MSG_WARNING(" parametrization : "<< Epara->GetTitle());