Set of scripts for producing histograms of the processing time of the modules involved in the Mu2e online reconstruction/trigger
- copy the list of the files produced by the
art(artdaq)::TimeTracker
service in a directoryinput_dir
- we need to create the list of the txt files that contains the timing info of each module:
source bash/ProcessSQL.sh input_dir 1/2BB
- let's now produce the txt for a bunch of summary timing info:
python python/merge_timing_files.py -i <path-to-csv-dir> -max N_MAX
, whereN_MAX
is the number of events we want to process - for the detailed histogram for each of module (and also the summary ones), we use a ROOT macro:
root.exe -b
gStyle->SetOptStat(111110)
.L scripts/PlotTimes.C
.L scripts/doTimingPlots.C
plotAllTiming("input_dir/ntasks_x/csv_yz")
- for producing the summary table for each block of modules (
producers
,filters
,summary
) we use apython
script:python python/plot_filters_time.py -s input_dir/timing_plots.root -o input_dir
, wheretiming_plots.root
is the ROOT file produced by the ROOT script from the previous step