8 from common
import getOpenDataDetectorDirectory
10 u = acts.UnitConstants
13 def runPropagation(trackingGeometry, field, outputDir, s=None, decorators=[]):
17 s.addContextDecorator(d)
19 rnd = acts.examples.RandomNumbers(seed=42)
21 nav = acts.Navigator(trackingGeometry=trackingGeometry)
23 stepper = acts.EigenStepper(field)
27 print(
"We're running with:",
type(stepper).__name__)
30 alg = acts.examples.PropagationAlgorithm(
32 level=acts.logging.INFO,
36 propagationStepCollection=
"propagation-steps",
43 acts.examples.ObjPropagationStepsWriter(
44 level=acts.logging.INFO,
45 collection=
"propagation-steps",
46 outputDir=outputDir +
"/obj",
51 acts.examples.RootPropagationStepsWriter(
52 level=acts.logging.INFO,
53 collection=
"propagation-steps",
54 filePath=outputDir +
"/propagation_steps.root",
61 if "__main__" == __name__:
71 ) = GenericDetector.create(mdecorator=matDeco)
93 field = acts.ConstantBField(acts.Vector3(0, 0, 2 * acts.UnitConstants.T))
113 trackingGeometry, field, os.getcwd(), decorators=contextDecorators