Skip to content
Snippets Groups Projects
Commit aa1e19b9 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin
Browse files

lfhcal: scale event count with momentum

parent bd1cd146
No related branches found
No related tags found
No related merge requests found
Pipeline #106583 canceled
def get_n_events(wildcards):
energy = float(wildcards.ENERGY.replace("GeV", "").replace("MeV", "e-3"))
n_events = 1000
n_events = int(n_events // (energy ** 0.5))
return n_events
rule lfhcal_sim:
input:
steering_file="EPIC/EVGEN/SINGLE/{PARTICLE}/{ENERGY}/{PHASE_SPACE}/{PARTICLE}_{ENERGY}_{PHASE_SPACE}.steer",
......@@ -12,7 +19,7 @@ rule lfhcal_sim:
PHASE_SPACE="3to50deg",
INDEX="\d{4}",
params:
N_EVENTS=1000
N_EVENTS=get_n_events,
shell:
"""
ddsim \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment