Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions UTILS/rawTF2raw/generate_rawtf_indices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ print_help() {
- param1: rawtf input file list
- param2: output directory
- param3: number of TFs to process
- param4: tfCounter id of first TF to process
- param4: tfCounter id of first TF to process
- param5: number of Blocks to be expected per TF to select only TFs with all inputs / detectors present
- if number of inputs is irrelevant, it can be set to 0 to be ignored

Example usage:

source $O2DPG_ROOT/UTILS/rawTF2raw/generate_rawtf_indices.sh rawtflist_LHC25ab_563041.txt 2025-05-19-pp-750khz-replay-LHC25ab-563041 125 3500 14
Expand Down Expand Up @@ -81,7 +81,7 @@ sort_tfs() {
fi
firstTFtmp=${firstTF}
while true; do
firstLine=$(grep -nr tfCounter:${firstTFtmp} ${tfs_sorted} | awk -F ':' '{print $1}')
firstLine=$(grep -nr "tfCounter:${firstTFtmp} " ${tfs_sorted} | awk -F ':' '{print $1}')
[[ ! -z ${firstLine} ]] && break
firstTFtmp=$((firstTFtmp+1))
done
Expand Down