From a802974db093ccc85f787c5991d5d7eff7534721 Mon Sep 17 00:00:00 2001
From: Carl Gwilliam <gwilliam@hep.ph.liv.ac.uk>
Date: Wed, 20 Apr 2022 18:34:28 +0100
Subject: [PATCH] Add ability to shift LOS

---
 .../G4FaserAlg/test/G4FaserAlgConfigNew_Test.py     | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/Simulation/G4Faser/G4FaserAlg/test/G4FaserAlgConfigNew_Test.py b/Simulation/G4Faser/G4FaserAlg/test/G4FaserAlgConfigNew_Test.py
index 41842963..3b1aac71 100644
--- a/Simulation/G4Faser/G4FaserAlg/test/G4FaserAlgConfigNew_Test.py
+++ b/Simulation/G4Faser/G4FaserAlg/test/G4FaserAlgConfigNew_Test.py
@@ -55,12 +55,13 @@ if __name__ == '__main__':
 #
     import sys
     ConfigFlags.fillFromArgs(sys.argv[1:])
-    from math import atan
-    from AthenaCommon.SystemOfUnits import GeV, TeV, cm, m
-    from AthenaCommon.PhysicalConstants import pi
-    import ParticleGun as PG
-    ConfigFlags.Sim.Gun = {"Generator" : "SingleParticle", "pid" : 11, "energy" : PG.LogSampler(10*GeV, 1*TeV), "theta" :  PG.GaussianSampler(0, atan((10*cm)/(7*m)), oneside = True), "phi" : [0, 2*pi], "mass" : 0.511, "radius" : -10*cm, "randomSeed" : 12345}
-    #ConfigFlags.Sim.Gun = {"Generator" : "SingleParticle", "pid" : 11, "energy" : PG.LogSampler(10*GeV, 1*TeV), "theta" : 0, "phi" : [0, 2*pi], "mass" : 0.511, "radius" : 10*cm, "randomSeed" : 12345}    
+
+#     from math import atan
+#     from AthenaCommon.SystemOfUnits import GeV, TeV, cm, m
+#     from AthenaCommon.PhysicalConstants import pi
+#     import ParticleGun as PG
+#     ConfigFlags.Sim.Gun = {"Generator" : "SingleParticle", "pid" : 11, "energy" : PG.LogSampler(10*GeV, 1*TeV), "theta" :  PG.GaussianSampler(0, atan((10*cm)/(7*m)), oneside = True), "phi" : [0, 2*pi], "mass" : 0.511, "radius" : -10*cm, "randomSeed" : 12345}
+
 #
 # By being a little clever, we can steer the geometry setup from the command line using GeoModel.FaserVersion
 #
-- 
GitLab