From 8cce96071d609fa8b2f7721951a2a42ecd3a0b92 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Fri, 27 Dec 2024 00:03:45 -0500 Subject: [PATCH] fix indentation, fix eval --- benchmarks/tracking_performances/Snakefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/benchmarks/tracking_performances/Snakefile b/benchmarks/tracking_performances/Snakefile index a810dd6..ff21418 100644 --- a/benchmarks/tracking_performances/Snakefile +++ b/benchmarks/tracking_performances/Snakefile @@ -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(