Problem 2287 - LUT Davis error accessing reflectivity
Summary: LUT Davis error accessing reflectivity
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/optical (show other problems)
Version: 10.6
Hardware: All All
: P4 normal
Assignee: Daren Sawkey
URL:
Depends on:
Blocks:
 
Reported: 2020-11-04 20:24 CET by Daren Sawkey
Modified: 2020-11-05 14:57 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Daren Sawkey 2020-11-04 20:24:15 CET
The Davis LUT reflectivity data is binned into 90 bins and stored in a C array. The code to calculate which bin to access rounds the incident angle to the nearest degree, from 0 to 90 (i.e. 91 values). For particles with near-normal incidence, accessing the value at reflectivity[90] silently returns garbage.

This has been present since the Davis LUT model was introduced in Geant4 version 10.4.
Comment 1 Daren Sawkey 2020-11-05 14:57:24 CET
Fixed for 10.7.