3 from pathlib
import Path
7 from common
import getOpenDataDetectorDirectory
10 PhysmonSetup = collections.namedtuple(
25 u = acts.UnitConstants
26 srcdir = Path(__file__).resolve().parent.parent.parent
28 parser = argparse.ArgumentParser()
29 parser.add_argument(
"outdir")
31 args = parser.parse_args()
33 matDeco = acts.IMaterialDecorator.fromFile(
34 srcdir /
"thirdparty/OpenDataDetector/data/odd-material-maps.root",
35 level=acts.logging.INFO,
43 trackingGeometry=trackingGeometry,
44 decorators=decorators,
46 /
"thirdparty/OpenDataDetector/config/odd-digi-smearing-config.json",
47 geoSel=srcdir /
"thirdparty/OpenDataDetector/config/odd-seeding-config.json",
48 field=acts.ConstantBField(acts.Vector3(0, 0, 2 * u.T)),
49 outdir=Path(args.outdir),
52 setup.outdir.mkdir(exist_ok=
True)