10 from common
import getOpenDataDetectorDirectory
19 outputName=
"propagation-material",
22 s = s
or Sequencer(events=1000, numThreads=-1)
24 for decorator
in decorators:
25 s.addContextDecorator(decorator)
27 nav = acts.Navigator(trackingGeometry=trackingGeometry)
29 stepper = acts.StraightLineStepper()
34 rnd = acts.examples.RandomNumbers(seed=42)
36 alg = acts.examples.PropagationAlgorithm(
38 level=acts.logging.INFO,
42 propagationStepCollection=
"propagation-steps",
43 recordMaterialInteractions=
True,
51 RootMaterialTrackWriter(
52 level=acts.logging.INFO,
53 collection=alg.config.propagationMaterialCollection,
54 filePath=os.path.join(outputDir, (outputName +
".root")),
63 if "__main__" == __name__:
64 matDeco = acts.IMaterialDecorator.fromFile(
"material-map.json")
70 field = acts.ConstantBField(acts.Vector3(0, 0, 2 * acts.UnitConstants.T))
73 trackingGeometry, decorators, field, outputDir=os.getcwd()