From 8597923026d95361dff6df3ce2b084d156ebf664 Mon Sep 17 00:00:00 2001 From: Carl Gwilliam <gwilliam@hep.ph.liv.ac.uk> Date: Wed, 25 May 2022 17:51:55 +0100 Subject: [PATCH] Sanitise units in shift LOS --- Generators/GeneratorUtils/python/ShiftLOS.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Generators/GeneratorUtils/python/ShiftLOS.py b/Generators/GeneratorUtils/python/ShiftLOS.py index 4327b3f3..44a94c7a 100644 --- a/Generators/GeneratorUtils/python/ShiftLOS.py +++ b/Generators/GeneratorUtils/python/ShiftLOS.py @@ -15,8 +15,8 @@ class ShiftLOS(PyAthena.Alg): super(ShiftLOS,self).__init__(name=name) self.InputMCEventKey = InputMCEventKey self.OutputMCEventKey = OutputMCEventKey - self.xcross = xcross * 1e-6 - self.ycross = ycross * 1e-6 + self.xcross = xcross + self.ycross = ycross self.xshift = xshift self.yshift = yshift self.distance = 480 * m # Assumes 480m is 0 of FASER coordinate system @@ -163,7 +163,7 @@ if __name__ == "__main__": acc = ComponentAccumulator() alg = ShiftLOS("ShiftLOS", InputMCEventKey=args.InputMCEventKey, OutputMCEventKey=args.OutputMCEventKey, - xcross = args.xcross, ycross = args.ycross, xshift = args.xshift, yshift = args.yshift) + xcross = args.xcross * 1e-6, ycross = args.ycross * 1e-6, xshift = args.xshift, yshift = args.yshift) alg.OutputLevel = INFO acc.addEventAlgo(alg) cfg.merge(acc) -- GitLab