Skip to content
Snippets Groups Projects

Sanitise units in shift LOS

Merged Carl Gwilliam requested to merge gwilliam/calypso:signal_generation into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -15,8 +15,8 @@ class ShiftLOS(PyAthena.Alg):
@@ -15,8 +15,8 @@ class ShiftLOS(PyAthena.Alg):
super(ShiftLOS,self).__init__(name=name)
super(ShiftLOS,self).__init__(name=name)
self.InputMCEventKey = InputMCEventKey
self.InputMCEventKey = InputMCEventKey
self.OutputMCEventKey = OutputMCEventKey
self.OutputMCEventKey = OutputMCEventKey
self.xcross = xcross * 1e-6
self.xcross = xcross
self.ycross = ycross * 1e-6
self.ycross = ycross
self.xshift = xshift
self.xshift = xshift
self.yshift = yshift
self.yshift = yshift
self.distance = 480 * m # Assumes 480m is 0 of FASER coordinate system
self.distance = 480 * m # Assumes 480m is 0 of FASER coordinate system
@@ -163,7 +163,7 @@ if __name__ == "__main__":
@@ -163,7 +163,7 @@ if __name__ == "__main__":
acc = ComponentAccumulator()
acc = ComponentAccumulator()
alg = ShiftLOS("ShiftLOS", InputMCEventKey=args.InputMCEventKey, OutputMCEventKey=args.OutputMCEventKey,
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
alg.OutputLevel = INFO
acc.addEventAlgo(alg)
acc.addEventAlgo(alg)
cfg.merge(acc)
cfg.merge(acc)
Loading