3 nevts=$( filelisting.py tjyang_test_mcmichelremoving )
4 echo "Total entries: $nevts"
5 if [ $nevts -ge 20000 ]; then
6 make_yz_correction input_run0.txt 2
8 if [ $nevts -ge 1000 ]; then
9 if [ ! -f "YZcalo_mich2_r0.root" ]; then
10 YZcalo=`ls YZcalo_mich2_r*.root | tail -n 1`
11 echo "Using $YZcalo for YZ correction"
12 ln -s $YZcalo YZcalo_mich2_r0.root
14 make_x_correction input_run0.txt 2