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

backgrounds: use updated beam gas files

parent 0a85ff9d
No related branches found
No related tags found
No related merge requests found
...@@ -4,37 +4,37 @@ import shutil ...@@ -4,37 +4,37 @@ import shutil
rule backgrounds_get_beam_gas_electron: rule backgrounds_get_beam_gas_electron:
input: input:
provider.remote(remote_path("EPIC/EVGEN/BACKGROUNDS/BEAMGAS/electron/beam_gas_ep_10GeV_foam_emin10keV_10Mevt_vtx.hepmc")), provider.remote(remote_path("EPIC/EVGEN/BACKGROUNDS/BEAMGAS/electron/GETaLM1.0.0-1.0/10GeV/GETaLM1.0.0-1.0_ElectronBeamGas_10GeV_foam_emin10keV_run001.hepmc3.tree.root")),
output: output:
"input/backgrounds/beam_gas_electron.hepmc", "input/backgrounds/GETaLM1.0.0-1.0_ElectronBeamGas_10GeV_foam_emin10keV_run001.hepmc3.tree.root",
run: run:
shutil.move(input[0], output[0]) shutil.move(input[0], output[0])
rule backgrounds_get_beam_gas_proton: rule backgrounds_get_beam_gas_proton:
input: input:
provider.remote(remote_path("EPIC/EVGEN/BACKGROUNDS/BEAMGAS/proton/ProtonBeamGasEvents/100GeV/100GeV_1.hepmc")), provider.remote(remote_path("EPIC/EVGEN/BACKGROUNDS/BEAMGAS/proton/pythia8.306-1.0/100GeV/pythia8.306-1.0_ProtonBeamGas_100GeV_run001.hepmc3.tree.root")),
output: output:
"input/backgrounds/beam_gas_proton.hepmc", "input/backgrounds/pythia8.306-1.0_ProtonBeamGas_100GeV_run001.hepmc3.tree.root",
run: run:
shutil.move(input[0], output[0]) shutil.move(input[0], output[0])
rule backgrounds_get_DIS: rule backgrounds_get_DIS:
input: input:
provider.remote(remote_path("EPIC/EVGEN/DIS/NC/{BEAM}/minQ2={MINQ2}/pythia8NCDIS_{BEAM}_minQ2={MINQ2}_{SUFFIX}.hepmc")), provider.remote(remote_path("EPIC/EVGEN/DIS/NC/{BEAM}/minQ2={MINQ2}/pythia8NCDIS_{BEAM}_minQ2={MINQ2}_{SUFFIX}.hepmc3.tree.root")),
wildcard_constraints: wildcard_constraints:
BEAM="\d+x\d+", BEAM="\d+x\d+",
MINQ2="\d+", MINQ2="\d+",
output: output:
"input/backgrounds/pythia8NCDIS_{BEAM}_minQ2={MINQ2}_{SUFFIX}.hepmc", "input/backgrounds/pythia8NCDIS_{BEAM}_minQ2={MINQ2}_{SUFFIX}.hepmc3.tree.root",
run: run:
shutil.move(input[0], output[0]) shutil.move(input[0], output[0])
rule backgrounds_sim: rule backgrounds_sim:
input: input:
hepmc="input/backgrounds/{NAME}.hepmc", hepmc="input/backgrounds/{NAME}.hepmc3.tree.root",
warmup="warmup/{DETECTOR_CONFIG}.edm4hep.root", warmup="warmup/{DETECTOR_CONFIG}.edm4hep.root",
output: output:
"sim_output/{DETECTOR_CONFIG}/backgrounds/{NAME}.edm4hep.root", "sim_output/{DETECTOR_CONFIG}/backgrounds/{NAME}.edm4hep.root",
...@@ -62,11 +62,11 @@ rule backgrounds_ecal_backwards: ...@@ -62,11 +62,11 @@ rule backgrounds_ecal_backwards:
input: input:
matplotlibrc=".matplotlibrc", matplotlibrc=".matplotlibrc",
script="benchmarks/backgrounds/ecal_backwards.py", script="benchmarks/backgrounds/ecal_backwards.py",
electron_beam_gas_gen="input/backgrounds/beam_gas_electron.hepmc", electron_beam_gas_gen="input/backgrounds/GETaLM1.0.0-1.0_ElectronBeamGas_10GeV_foam_emin10keV_run001.hepmc3.tree.root",
electron_beam_gas_sim="sim_output/" + DETECTOR_CONFIG + "/backgrounds/beam_gas_electron.edm4hep.root", electron_beam_gas_sim="sim_output/" + DETECTOR_CONFIG + "/backgrounds/GETaLM1.0.0-1.0_ElectronBeamGas_10GeV_foam_emin10keV_run001.edm4hep.root",
physics_signal_sim="sim_output/" + DETECTOR_CONFIG + "/backgrounds/pythia8NCDIS_10x100_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1.edm4hep.root", physics_signal_sim="sim_output/" + DETECTOR_CONFIG + "/backgrounds/pythia8NCDIS_10x100_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1.edm4hep.root",
proton_beam_gas_gen="input/backgrounds/beam_gas_proton.hepmc", proton_beam_gas_gen="input/backgrounds/pythia8.306-1.0_ProtonBeamGas_100GeV_run001.hepmc3.tree.root",
proton_beam_gas_sim="sim_output/" + DETECTOR_CONFIG + "/backgrounds/beam_gas_proton.edm4hep.root", proton_beam_gas_sim="sim_output/" + DETECTOR_CONFIG + "/backgrounds/pythia8.306-1.0_ProtonBeamGas_100GeV_run001.edm4hep.root",
output: output:
directory("results/backgrounds/backwards_ecal") directory("results/backgrounds/backwards_ecal")
threads: workflow.cores threads: workflow.cores
......
...@@ -4,7 +4,11 @@ sim:backgrounds: ...@@ -4,7 +4,11 @@ sim:backgrounds:
script: script:
- mkdir -p $LOCAL_DATA_PATH/input - mkdir -p $LOCAL_DATA_PATH/input
- ln -s $LOCAL_DATA_PATH/input input - ln -s $LOCAL_DATA_PATH/input input
- snakemake --cores 2 sim_output/$DETECTOR_CONFIG/beam_gas_{electron,proton}.edm4hep.root sim_output/$DETECTOR_CONFIG/pythia8NCDIS_10x100_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_vtxfix_1.edm4hep.root - |
snakemake --cores 2 \
sim_output/$DETECTOR_CONFIG/backgrounds/GETaLM1.0.0-1.0_ElectronBeamGas_10GeV_foam_emin10keV_run001.edm4hep.root \
sim_output/$DETECTOR_CONFIG/backgrounds/pythia8.306-1.0_ProtonBeamGas_100GeV_run001.edm4hep.root \
sim_output/$DETECTOR_CONFIG/backgrounds/pythia8NCDIS_10x100_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1.edm4hep.root
bench:backgrounds_emcal_backwards: bench:backgrounds_emcal_backwards:
extends: .det_benchmark extends: .det_benchmark
......
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