@@ -5,7 +5,7 @@ DETECTOR_CONFIG = "epic_backward_hcal_only.xml"
55
66rule nhcal_sampling_fraction_simulate :
77 output :
8- "sim_output/nhcal_sampling_fraction/{PARTICLE}/E{ENERGY}GeV/sim.{INDEX}. edm4hep.root" ,
8+ "sim_output/nhcal_sampling_fraction/{PARTICLE}/E{ENERGY}GeV/sim.edm4hep.root" ,
99 params :
1010 N_EVENTS = 1000 ,
1111 shell :
@@ -30,28 +30,26 @@ exec ddsim \
3030rule nhcal_sampling_fraction_combine :
3131 input :
3232 lambda wildcards : expand (
33- "sim_output/nhcal_sampling_fraction/{PARTICLE}/E{ENERGY}GeV/sim.{INDEX:02d}. edm4hep.root" ,
33+ "sim_output/nhcal_sampling_fraction/{PARTICLE}/E{ENERGY}GeV/sim.edm4hep.root" ,
3434 ENERGY = ["1" , "2" , "5" , "10" ],
3535 PARTICLE = ["pi-" , "neutron" , "e-" ],
36- INDEX = range (int (wildcards .N )),
3736 ),
3837 wildcard_constraints :
39- N = r"\d+" ,
4038 ENERGY = r"\d+"
4139 output :
42- f"sim_output/nhcal_sampling_fraction/sim_{{N}}files_per .edm4hep.root" ,
40+ f"sim_output/nhcal_sampling_fraction/sim_combined .edm4hep.root" ,
4341 shell :
4442 """
45- hadd {output} {input}
43+ hadd -f {output} {input}
4644"""
4745
4846rule nhcal_sampling_fraction_analysis :
4947 input :
50- combined = "sim_output/nhcal_sampling_fraction/sim_{N}files_per .edm4hep.root" ,
48+ combined = "sim_output/nhcal_sampling_fraction/sim_combined .edm4hep.root" ,
5149 script = "benchmarks/nhcal_sampling_fraction/scripts/sampling_fraction_analysis.cxx" ,
5250 output :
53- pdf = f"results/nhcal_sampling_fraction/analysis_{{N}}files_per .pdf" ,
54- png = f"results/nhcal_sampling_fraction/analysis_{{N}}files_per .png" ,
51+ pdf = f"results/nhcal_sampling_fraction/analysis .pdf" ,
52+ png = f"results/nhcal_sampling_fraction/analysis .png" ,
5553 shell :
5654 """
5755 root -l -b -q '{input.script}("{input.combined}","{output.pdf}","{output.png}","{DETECTOR_PATH}/{DETECTOR_CONFIG}")'
0 commit comments