Minimal changes to solve the error when the option Gauss().EnablePack = False for PicoCal detector.
Gauss().EnablePack = False