Skip to content

Commit

Permalink
fix indentation, fix eval
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Dec 27, 2024
1 parent 300cfb8 commit 8cce960
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions benchmarks/tracking_performances/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@ rule tracking_performance_at_momentum:
script="benchmarks/tracking_performances/Tracking_Performances.C",
script_hitsmap="benchmarks/tracking_performances/draw_hits.C",
script_nhits_eta="benchmarks/tracking_performances/NhitsvsEta_ePIC.C",
outsim=lambda wildcards:
outsim=lambda wildcards:
expand(
"sim_output/tracking_performance/{DETECTOR_CONFIG}/{PARTICLE}/{ENERGY}/{PARTICLE}.{ENERGY}.edm4hep.root",
DETECTOR_CONFIG="epic_craterlake_tracking_only", PARTICLE=wildcards.PARTICLE,
ENERGY=f"{float(wildcards.MOMENTUM):.0f}GeV" if float(wildcards.MOMENTUM) >= 1 else f"{float(wildcards.MOMENTUM) * 1000:.0f}MeV")
if wildcards.CAMPAIGN == "local" else None,
ENERGY=f"{float(wildcards.MOMENTUM):.0f}GeV" if float(wildcards.MOMENTUM) >= 1 else f"{float(wildcards.MOMENTUM) * 1000:.0f}MeV",
)
if wildcards.CAMPAIGN == "local" else
[],
# TODO pass as a file list?
sim=lambda wildcards:
expand(
Expand Down

0 comments on commit 8cce960

Please sign in to comment.