From 1aafd52bd1469fe11e93c3e7e594a6fdc159c70d Mon Sep 17 00:00:00 2001 From: khushi-singla-21 <142303997+khushi-singla-21@users.noreply.github.com> Date: Mon, 28 Oct 2024 23:37:07 +0530 Subject: [PATCH] Update Snakefile --- .../tracking_performances_dis/Snakefile | 78 ++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/benchmarks/tracking_performances_dis/Snakefile b/benchmarks/tracking_performances_dis/Snakefile index 7774f2a..14f24ff 100644 --- a/benchmarks/tracking_performances_dis/Snakefile +++ b/benchmarks/tracking_performances_dis/Snakefile @@ -16,6 +16,8 @@ rule trk_dis_compile: input: "benchmarks/tracking_performances_dis/analysis/trk_dis_analysis_cxx.so", "benchmarks/tracking_performances_dis/analysis/trk_dis_plots_cxx.so" + "benchmarks/tracking_performances_dis/analysis/vtx_dis_analysis_cxx.so", + "benchmarks/tracking_performances_dis/analysis/vtx_dis_plots_cxx.so" # Process the generated HepMC files through the simulation rule trk_dis_sim: @@ -49,7 +51,7 @@ rule trk_dis_reco: set -m # monitor mode to prevent lingering processes exec env DETECTOR_CONFIG={wildcards.DETECTOR_CONFIG} \ eicrecon {input} -Ppodio:output_file={output} \ - -Ppodio:output_collections=MCParticles,ReconstructedChargedParticles,ReconstructedTruthSeededChargedParticles,CentralCKFTrackAssociations,CentralCKFTruthSeededTrackAssociations + -Ppodio:output_collections=MCParticles,ReconstructedChargedParticles,ReconstructedTruthSeededChargedParticles,CentralCKFTrackAssociations,CentralCKFTruthSeededTrackAssociations,CentralTrackVertices, """ # Process the files -- either from the campaign or local running -- through the analysis script @@ -82,6 +84,35 @@ EOF root -l -b -q '{input.script}+("{output.config}")' """ +rule vtx_dis_analysis: + input: + script="benchmarks/tracking_performances_dis/analysis/vtx_dis_analysis.cxx", + script_compiled="benchmarks/tracking_performances_dis/analysis/vtx_dis_analysis_cxx.so", + data="sim_output/tracking_performances_dis/{DETECTOR_CONFIG}/{PREFIX}pythia8NCDIS_{EBEAM}x{PBEAM}_minQ2={MINQ2}_beamEffects_xAngle=-0.025_hiDiv_{INDEX}.edm4eic.root", + output: + config="results/vertexing_performances_dis/{DETECTOR_CONFIG}/{PREFIX}pythia8NCDIS_{EBEAM}x{PBEAM}_minQ2={MINQ2}_{INDEX}/config.json", + hists="results/vertexing_performances_dis/{DETECTOR_CONFIG}/{PREFIX}pythia8NCDIS_{EBEAM}x{PBEAM}_minQ2={MINQ2}_{INDEX}/hists.root", + wildcard_constraints: + PREFIX= ".*", + EBEAM="\d+", + PBEAM="\d+", + MINQ2="\d+", + INDEX="\d+", + shell: + """ +cat > {output.config} < {output.config} <