diff --git a/Generators/GeneratorUtils/python/ShiftLOS.py b/Generators/GeneratorUtils/python/ShiftLOS.py index 4327b3f3afa7c559b97c01ac94b1f730157cb0fc..44a94c7a2572bdef501c4f8954a79c3fa8e2a544 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)