Correct bug handling angle sign.
Correct bug calculating transmission of a vector of energies.
Bug calculating distance corrected.
Work in progress.
Make sure the reference layer is defined.
Deal with reference layer when calculating geometric efficiency.