From e154ebd0c8dc2e7aa7d38761620d77e4205e66b0 Mon Sep 17 00:00:00 2001 From: Sakib Rahman Date: Wed, 18 Dec 2024 11:34:06 -0500 Subject: [PATCH] Placeholder benchmarking shell wrapper script Get branch sizes for a current campaign file and the default file and then compare them in a plot --- .../output_branch_size_scan/output_branch_size_scan.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 benchmarks/output_branch_size_scan/output_branch_size_scan.sh diff --git a/benchmarks/output_branch_size_scan/output_branch_size_scan.sh b/benchmarks/output_branch_size_scan/output_branch_size_scan.sh new file mode 100644 index 0000000..0a1ba56 --- /dev/null +++ b/benchmarks/output_branch_size_scan/output_branch_size_scan.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +root -q -b root://dtn-eic.jlab.org//work/eic2/EPIC/RECO/ -e 'for (auto b : *events->GetListOfLeaves()) { if (events->GetBranch(b->GetName()) == nullptr) continue; cout << events->GetBranch(b->GetName())->GetTotalSize() << " " << b->GetName() << endl; }' | sort -n > branch_size_current.txt +root -q -b root://dtn-eic.jlab.org//work/eic2/EPIC/RECO/ -e 'for (auto b : *events->GetListOfLeaves()) { if (events->GetBranch(b->GetName()) == nullptr) continue; cout << events->GetBranch(b->GetName())->GetTotalSize() << " " << b->GetName() << endl; }' | sort -n > branch_size_default.txt +python plot_branch_sizes.py -c branch_size_current.txt -d branch_size_default.txt