RCEWriter/Proteus geometry output is broken
Summary
The Proteus geometry file written by the RCEWriter is wrong/ can not be used to reconstruct the simulated data.
Example Configuration
Enable RCEWriter output in the simulation file
[RCEWriter]
file_name = "data.root"
geometry_file = "geometry.toml"
and simulate a detector geometry such as
[tel]
type = "ibl_planar"
position = 0mm 0mm 100mm
orientation_type = "xyz"
orientation = 0deg 0deg 90deg
What is the current bug behavior?
Current Proteus geometry output:
[[sensors]]
id = 0
offset = [0.0000000000000000, 0.0000000000000000, 100.00000000000000]
unit_u = [-5.1034119672569625e-12, -1.0000000000000000, 0.0000000000000000]
unit_v = [1.0000000000000000, -5.1034119672569625e-12, 0.0000000000000000]
What is the expected correct behavior?
Expected Proteus geometry output (w/o the extra zeros and small values)
[[sensors]]
id = 0
offset = [0.0, 0.0, 100.0]
unit_u = [0.0, 1.0, 0.0]
unit_v = [-1.0, 0.0, 0.0]
Absolute values seem to be Ok, but the signs are incorrect which lead to the wrong orientation in the reconstruction. I suspect that the internal transformation representation was changed at some point.