Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
physmon_truth_tracking_kalman.py
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file physmon_truth_tracking_kalman.py
1 #!/usr/bin/env python3
2 import tempfile
3 from pathlib import Path
4 import shutil
5 
6 import acts
7 from truth_tracking_kalman import runTruthTrackingKalman
8 
9 from physmon_common import makeSetup
10 
11 setup = makeSetup()
12 
13 with tempfile.TemporaryDirectory() as temp:
15  events=10000,
16  numThreads=-1,
17  logLevel=acts.logging.INFO,
19  Path(__file__).parent.parent / "fpe_masks.yml"
20  ),
21  )
22 
23  tp = Path(temp)
25  setup.trackingGeometry,
26  setup.field,
27  setup.digiConfig,
28  outputDir=tp,
29  s=s,
30  )
31 
32  s.run()
33  del s
34 
35  perf_file = tp / "performance_track_fitter.root"
36  assert perf_file.exists(), "Performance file not found"
37  shutil.copy(perf_file, setup.outdir / "performance_truth_tracking.root")