Skip to content

Commit

Permalink
chore: run physmon in parallel (#1681)
Browse files Browse the repository at this point in the history
followup to #1657 and #1654

let see if this works
  • Loading branch information
andiwand committed Dec 3, 2022
1 parent e8f235e commit d4ac9ce
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 31 deletions.
7 changes: 0 additions & 7 deletions CI/physmon/phys_perf_mon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,6 @@ run \
-o $outdir/ambi_orthogonal.html \
-p $outdir/ambi_orthogonal_plots

run \
$outdir/acts_analysis_residuals_and_pulls.root \
$refdir/acts_analysis_residuals_and_pulls.root \
--title "analysis_residuals_and_pulls" \
# -o $outdir/analysis_residuals_and_pulls.html \
# -p $outdir/analysis_residuals_and_pulls

Examples/Scripts/vertex_mu_scan.py \
$outdir/performance_vertexing_*mu*.root \
$outdir/vertexing_mu_scan.pdf
Expand Down
25 changes: 1 addition & 24 deletions CI/physmon/physmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,7 @@
]:
# TODO There seems to be a difference to the reference files when using
# multithreading ActsAnalysisResidualsAndPulls
s = acts.examples.Sequencer(
events=500,
numThreads=1 if label in ["seeded", "orthogonal"] else -1,
logLevel=acts.logging.INFO,
)
s = acts.examples.Sequencer(events=500, numThreads=-1, logLevel=acts.logging.INFO)

with tempfile.TemporaryDirectory() as temp:
tp = Path(temp)
Expand Down Expand Up @@ -252,25 +248,6 @@
assert perf_file.exists(), "Performance file not found"
shutil.copy(perf_file, outdir / f"{stem}_{label}.root")

if label == "seeded":
residual_app = srcdir / "build/bin/ActsAnalysisResidualsAndPulls"
# @TODO: Add try/except
subprocess.check_call(
[
str(residual_app),
"--predicted",
"--filtered",
"--smoothed",
"--silent",
"-i",
str(tp / "trackstates_ckf.root"),
"-o",
str(outdir / "acts_analysis_residuals_and_pulls.root"),
"--save",
"",
]
)

### VERTEX MU SCAN

for fitter in (VertexFinder.Iterative, VertexFinder.AMVF):
Expand Down
Binary file not shown.

0 comments on commit d4ac9ce

Please sign in to comment.