-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
106 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
checks: | ||
"*": | ||
Chi2Test: null | ||
KolmogorovTest: null | ||
RatioCheck: null | ||
ResidualCheck: null | ||
IntegralCheck: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import tempfile | ||
from pathlib import Path | ||
import shutil | ||
|
||
import acts | ||
from truth_tracking_kalman import runTruthTrackingKalman | ||
from truth_tracking_gx2f import runTruthTrackingGx2f | ||
|
||
from physmon_common import makeSetup | ||
|
||
setup = makeSetup() | ||
|
||
digiConfigFile = setup.digiConfig | ||
nSkip = 0 | ||
nEvents = 100000 | ||
numThreads = -1 | ||
|
||
with tempfile.TemporaryDirectory() as temp: | ||
s = acts.examples.Sequencer( | ||
skip=nSkip, | ||
events=nEvents, | ||
numThreads=numThreads, | ||
logLevel=acts.logging.INFO, | ||
trackFpes=True, | ||
) | ||
|
||
tp = Path(temp) | ||
runTruthTrackingKalman( | ||
trackingGeometry=setup.trackingGeometry, | ||
field=setup.field, | ||
digiConfigFile=digiConfigFile, | ||
outputDir=tp, | ||
s=s, | ||
) | ||
|
||
s.run() | ||
del s | ||
|
||
perf_file = tp / "performance_kf.root" | ||
assert perf_file.exists(), "Performance file not found" | ||
shutil.copy(perf_file, setup.outdir / "performance_trackfitting_kf.root") | ||
|
||
with tempfile.TemporaryDirectory() as temp: | ||
s = acts.examples.Sequencer( | ||
skip=nSkip, | ||
events=nEvents, | ||
numThreads=numThreads, | ||
logLevel=acts.logging.INFO, | ||
trackFpes=True, | ||
) | ||
|
||
tp = Path(temp) | ||
runTruthTrackingGx2f( | ||
trackingGeometry=setup.trackingGeometry, | ||
field=setup.field, | ||
digiConfigFile=digiConfigFile, | ||
outputDir=tp, | ||
s=s, | ||
) | ||
|
||
s.run() | ||
del s | ||
|
||
perf_file = tp / "performance_gx2f.root" | ||
assert perf_file.exists(), "Performance file not found" | ||
shutil.copy(perf_file, setup.outdir / "performance_trackfitting_gx2f.root") |