Skip to content

Commit

Permalink
Placeholder benchmarking shell wrapper script
Browse files Browse the repository at this point in the history
Get branch sizes for a current campaign file and the default file and then compare them in a plot
  • Loading branch information
rahmans1 authored Dec 18, 2024
1 parent d962b52 commit e154ebd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions benchmarks/output_branch_size_scan/output_branch_size_scan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

root -q -b root://dtn-eic.jlab.org//work/eic2/EPIC/RECO/<current_file> -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/<default_file> -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

0 comments on commit e154ebd

Please sign in to comment.