Skip to content

Commit

Permalink
added ML solver to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin-Allaire committed Aug 28, 2024
1 parent d7e1157 commit c6e3c62
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 13 deletions.
19 changes: 14 additions & 5 deletions CI/physmon/phys_perf_mon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,22 @@ function trackfinding() {
$path/tracksummary_ckf.html \
$path/tracksummary_ckf_plots

if [ -f $refdir/$path/performance_ckf_ambi.root ]; then
if [ -f $refdir/$path/performance_ckf_greedy_solver.root ]; then
run_histcmp \
$outdir/data/$path/performance_ckf_ambi.root \
$refdir/$path/performance_ckf_ambi.root \
$outdir/data/$path/performance_ckf_greedy_solver.root \
$refdir/$path/performance_ckf_greedy_solver.root \
"Ambisolver | ${name}" \
$path/performance_ckf_ambi.html \
$path/performance_ckf_ambi
$path/performance_ckf_greedy_solver.html \
$path/performance_ckf_greedy_solver
fi

if [ -f $refdir/$path/performance_ml_solver.root ]; then
run_histcmp \
$outdir/data/$path/performance_ml_solver.root \
$refdir/$path/performance_ml_solver.root \
"ML Ambisolver | ${name}" \
$path/performance_ml_solver.html
$path/performance_ml
fi
}

Expand Down
4 changes: 2 additions & 2 deletions CI/physmon/workflows/physmon_trackfinding_4muon_50vertices.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@

shutil.move(
tp / "performance_ambi.root",
tp / "performance_ckf_ambi.root",
tp / "performance_ckf_greedy_solver.root",
)
for vertexing in ["ivf_notime", "amvf_gauss_notime", "amvf_grid_time"]:
shutil.move(
Expand All @@ -205,7 +205,7 @@
"performance_seeding.root",
"tracksummary_ckf.root",
"performance_ckf.root",
"performance_ckf_ambi.root",
"performance_ckf_greedy_solver.root",
"performance_vertexing_ivf_notime.root",
"performance_vertexing_amvf_gauss_notime.root",
"performance_vertexing_amvf_grid_time.root",
Expand Down
26 changes: 20 additions & 6 deletions CI/physmon/workflows/physmon_trackfinding_ttbar_pu200.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
CkfConfig,
addCKFTracks,
addAmbiguityResolution,
addAmbiguityResolutionML,
AmbiguityResolutionConfig,
AmbiguityResolutionMLConfig,
addVertexFitting,
VertexFinder,
TrackSelectorConfig,
Expand Down Expand Up @@ -133,7 +135,16 @@
maximumIterations=100000,
nMeasurementsMin=6,
),
outputDirRoot=tp,
outputDirRoot=tp / "greedy_solver",
)

addAmbiguityResolutionML(
s,
AmbiguityResolutionMLConfig(
maximumSharedHits=3, maximumIterations=1000000, nMeasurementsMin=6
),
outputDirRoot=tp / "ml_solver",
onnxModelFile=Path(__file__).resolve().parent.parent.parent / "thirdparty/OpenDataDetector/data/duplicateClassifier.onnx",
)

s.addAlgorithm(
Expand Down Expand Up @@ -171,21 +182,24 @@

s.run()

shutil.move(
tp / "performance_ambi.root",
tp / "performance_ckf_ambi.root",
)
for vertexing in ["amvf_gauss_notime", "amvf_grid_time"]:
shutil.move(
tp / f"{vertexing}/performance_vertexing.root",
tp / f"performance_vertexing_{vertexing}.root",
)

for solver in ["greedy_solver", "ml_solver"]:
shutil.move(
tp / f"{solver}/performance_ambi.root",
tp / f"performance_ckf_{solver}.root",
)

for file in [
"performance_seeding.root",
"tracksummary_ckf.root",
"performance_ckf.root",
"performance_ckf_ambi.root",
"performance_ckf_greedy_solver.root",
"performance_ckf_ml_solver",
"performance_vertexing_amvf_gauss_notime.root",
"performance_vertexing_amvf_grid_time.root",
]:
Expand Down

0 comments on commit c6e3c62

Please sign in to comment.