Skip to content

Commit

Permalink
Snakefile: trying to fix what breaks snakemake's parser
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl authored Oct 28, 2024
1 parent e6c0006 commit 0b02433
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions benchmarks/insert_tau/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rule insert_tau_generate:
params:
N_EVENTS=get_n_events,
th_max=7.0,
th_min=1.7
th_min=1.7,
output:
GEN_FILE="sim_output/insert_tau/tau-_{P}GeV.hepmc",
shell:
Expand All @@ -24,7 +24,7 @@ rule insert_tau_simulate:
warmup="warmup/{DETECTOR_CONFIG}.edm4hep.root"
params:
N_EVENTS=get_n_events,
PHYSICS_LIST="FTFP_BERT"
PHYSICS_LIST="FTFP_BERT",
output:
SIM_FILE="sim_output/insert_tau/{DETECTOR_CONFIG}_sim_tau-_{P}GeV_{INDEX}.edm4hep.root"
shell:
Expand All @@ -40,21 +40,21 @@ npsim \
"""

rule insert_tau_recon:
input:
SIM_FILE="sim_output/insert_tau/{DETECTOR_CONFIG}_sim_tau-_{P}GeV_{INDEX}.edm4hep.root"
input:
SIM_FILE="sim_output/insert_tau/{DETECTOR_CONFIG}_sim_tau-_{P}GeV_{INDEX}.edm4hep.root"
params:
N_EVENTS=get_n_events,
output:
REC_FILE="sim_output/insert_tau/{DETECTOR_CONFIG}_rec_tau-_{P}GeV_{INDEX}.edm4hep.root"
shell:
"""
output:
REC_FILE="sim_output/insert_tau/{DETECTOR_CONFIG}_rec_tau-_{P}GeV_{INDEX}.edm4hep.root"
shell:
"""
eicrecon {input.SIM_FILE} -Ppodio:output_file={output.REC_FILE} -Pdd4hep:xml_files=$DETECTOR_PATH/{wildcards.DETECTOR_CONFIG}.xml -Ppodio:output_collections=MCParticles,HcalEndcapPInsertRecHits,HcalEndcapPInsertClusters,HcalEndcapPInsertSubcellHits,EcalEndcapPInsertRecHits,EcalEndcapPInsertClusters,EcalEndcapPClusters,LFHCALClusters -Pjana:nevents={params.N_EVENTS}
"""

rule insert_tau_analysis:
input:
expand("sim_output/insert_tau/{DETECTOR_CONFIG}_rec_tau-_{P}GeV.edm4hep_{INDEX}.root",
P=[20,30, 40,50,60, 80, 100],
P=[20, 30, 40, 50, 60, 80, 100],
DETECTOR_CONFIG=["{DETECTOR_CONFIG}"],
INDEX=range(5),
),
Expand Down

0 comments on commit 0b02433

Please sign in to comment.