Skip to content

Commit

Permalink
ci: Add pythia8 particles and vertices to physmon output (#3375)
Browse files Browse the repository at this point in the history
I'm investigating physmon seemingly randomly failing. By adding these
outputs, I might be able to see if it's pythia producing different truth
inputs to the chain, or if something else is wrong.
  • Loading branch information
paulgessinger authored Jul 14, 2024
1 parent ce9bd84 commit 05c0ebd
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
# versions
# Need to set git user & email for patching to work (GeoModel plugin)
run: >
git config --global user.name 'CI' &&
git config --global user.name 'CI' &&
git config --global user.email '<>' &&
ccache -z &&
cmake -B build -S .
Expand Down Expand Up @@ -198,7 +198,10 @@ jobs:
&& source build/this_acts_withdeps.sh
&& echo "::endgroup::"
&& CI/physmon/phys_perf_mon.sh all physmon
&& cat physmon/summary.md >> $GITHUB_STEP_SUMMARY
- name: Post step summary
if: always()
run: cat physmon/summary.md >> $GITHUB_STEP_SUMMARY

- uses: actions/upload-artifact@v4
if: always()
Expand Down
26 changes: 26 additions & 0 deletions CI/physmon/phys_perf_mon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,32 @@ if [[ "$mode" == "all" || "$mode" == "fullchains" ]]; then
$refdir/performance_amvf_gridseeder_ttbar_hist.root \
"AMVF (+grid seeder) ttbar" \
amvf_gridseeder_ttbar

run Examples/Scripts/generic_plotter.py \
$outdir/pythia8_particles_ttbar.root \
particles \
$outdir/particles_ttbar_hist.root \
--silent \
--config CI/physmon/pythia8_ttbar_config.yml

run_histcmp \
$outdir/particles_ttbar_hist.root \
$refdir/particles_ttbar_hist.root \
"Particles ttbar" \
particles_ttbar

run Examples/Scripts/generic_plotter.py \
$outdir/pythia8_vertices_ttbar.root \
vertices \
$outdir/vertices_ttbar_hist.root \
--silent \
--config CI/physmon/pythia8_ttbar_config.yml

run_histcmp \
$outdir/vertices_ttbar_hist.root \
$refdir/vertices_ttbar_hist.root \
"Vertices ttbar" \
vertices_ttbar
fi

if [[ "$mode" == "all" || "$mode" == "gsf" ]]; then
Expand Down
67 changes: 67 additions & 0 deletions CI/physmon/pythia8_ttbar_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
histograms:
outgoing_particles:
nbins: 100
min: 0
max: 1e13

vt:
nbins: 100
min: 0
max: 1e5

"vx|vy":
nbins: 100
min: -100
max: 100

vz:
nbins: 100
min: -1e4
max: 1e4

eta:
nbins: 100
min: -15
max: 15

m:
nbins: 100
min: 0
max: 2

"p|pt":
nbins: 100
min: 0.0
max: 200

phi:
nbins: 100
min: -4.0
max: 4.0

"px|py":
nbins: 100
min: -5.0
max: 5.0

pz:
nbins: 100
min: -1000
max: 1000

q:
nbins: 100
min: -2.0
max: 2.0

exclude:
- event_id
- particle_id
- particle_type
- process
- vertex_id
- vertex_primary
- vertex_secondary
- particle
- generation
- sub_particle
Binary file added CI/physmon/reference/particles_ttbar_hist.root
Binary file not shown.
Binary file added CI/physmon/reference/vertices_ttbar_hist.root
Binary file not shown.
7 changes: 6 additions & 1 deletion CI/physmon/workflows/physmon_track_finding_ttbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
stddev=acts.Vector4(0.0125 * u.mm, 0.0125 * u.mm, 55.5 * u.mm, 5.0 * u.ns),
),
rnd=rnd,
outputDirRoot=tp,
)

addFatras(
Expand Down Expand Up @@ -169,7 +170,11 @@
"tracksummary_ckf",
"performance_amvf",
"performance_amvf_gridseeder",
] + (["performance_seeding", "performance_ambi"]):
"performance_seeding",
"performance_ambi",
"pythia8_particles",
"pythia8_vertices",
]:
perf_file = tp / f"{stem}.root"
assert perf_file.exists(), "Performance file not found"
shutil.copy(perf_file, setup.outdir / f"{stem}_ttbar.root")

0 comments on commit 05c0ebd

Please sign in to comment.