Skip to content
Open
Show file tree
Hide file tree
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
14 changes: 14 additions & 0 deletions libexec/gold-diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

a=development
b=redecodering2

for x in $a/*.hipo
do
y=$b/$(basename $x)
stub=$(basename $x)
stub=${stub%%.*}
hipo-diff -q 1 -s 0,1,2 -n 10000 $x $y >& $stub.log &
done

wait
18 changes: 18 additions & 0 deletions libexec/gold-run
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

exe=decoder4u -n 10000
csv=gold.csv
cache=$(cd $(dirname ${BASH_SOURCE[0]}) &> /dev/null && pwd)/pin-gold.txt
Comment on lines +4 to +5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These files are not stored in coatjava; at least inform the user if their current working directory is wrong. Also, do you mean gold.pin?

Copy link
Collaborator Author

@baltzell baltzell Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we decide where gold.csv should live? (pin-gold.txt should live beside it) I think I was thinking here: https://code.jlab.org/hallb/clas12/raw-data

IFS=$'\n'

for x in $(tail -n +2 $csv)
do
x=${x//[[:space:]]/}
run=${x##*,}
period=${x%%,*}
stub=${period}_${run}
data=$(grep ${run} $cache | grep 1$)
$exe -o $stub.hipo $data >& $stub.log &
done

wait