Bug Description
The pulse-height tally does not produce correct results when used with a CellFilter containing multiple cells.
In our model, a single CellFilter is used to score the pulse-height spectrum of a 20×20 array of NaI detector pixels. While the first detector cell produces the expected results, the remaining cells do not receive the expected scores.
The issue is observed when the lowest energy bin of the EnergyFilter starts above zero.
Steps to Reproduce
- Create multiple detector cells (e.g. a pixelated detector array).
- Create a single
CellFilter containing all detector cells.
- Define a pulse-height tally using this
CellFilter and an EnergyFilter whose first bin starts above zero.
- Run the simulation and inspect the pulse-height tally results for each cell.
Environment
-
Operating system: Ubuntu Linux (x86_64, kernel 5.15.0-185-generic)
-
OpenMC version: 0.15.3.dev75+gbca818ced
-
Installation method: System installation on HPC cluster
-
Nuclear data: ENDF/B-VII.1
Bug Description
The pulse-height tally does not produce correct results when used with a
CellFiltercontaining multiple cells.In our model, a single
CellFilteris used to score the pulse-height spectrum of a 20×20 array of NaI detector pixels. While the first detector cell produces the expected results, the remaining cells do not receive the expected scores.The issue is observed when the lowest energy bin of the
EnergyFilterstarts above zero.Steps to Reproduce
CellFiltercontaining all detector cells.CellFilterand anEnergyFilterwhose first bin starts above zero.Environment
Operating system: Ubuntu Linux (x86_64, kernel 5.15.0-185-generic)
OpenMC version: 0.15.3.dev75+gbca818ced
Installation method: System installation on HPC cluster
Nuclear data: ENDF/B-VII.1