File indexing completed on 2024-04-06 12:22:51
0001
0002
0003
0004
0005 nsls /castor/cern.ch/user/b/boeriu/calibration_files > Runs.txt
0006 grep -e Gain Runs.txt > AllGainsRuns.txt
0007 grep -e "RUI01" AllGainsRuns.txt > GainsRuns.txt
0008 grep -e "30" GainsRuns.txt > GoodGainsRuns.txt
0009
0010
0011
0012
0013
0014
0015
0016 echo " ";
0017 echo "will process runs: ";
0018 cat GoodGainsRuns.txt;
0019 echo " ";
0020
0021
0022 cat GoodGainsRuns.txt | while read line
0023 do
0024
0025 grep -e "${line:9:4}" GoodGainsRuns.txt > tempFile.txt;
0026
0027
0028 FILESIZE=$(stat -c%s tempFile.txt);
0029 MINSIZE=1
0030 if [ $FILESIZE -gt $MINSIZE ]; then
0031
0032 cat tempFile.txt | while read line
0033 do
0034
0035
0036 rfcp "/castor/cern.ch/user/b/boeriu/calibration_files/$line" "/tmp/csccalib/$line";
0037 echo "$line";
0038 done
0039
0040
0041
0042
0043
0044 perl ConfigChanges.pl "/tmp/csccalib/$line";
0045 perl CreateConfigGains.pl;
0046 echo "perl done, running job";
0047
0048 cmsRun CSCgain.cfg;
0049
0050
0051 root gainsMacro.C
0052
0053
0054 else
0055 echo "**** tempFile is empty ****"
0056 fi
0057
0058 done
0059
0060 rm Runs.txt
0061 rm AllGainsRuns.txt
0062 rm GainsRuns.txt
0063 rm GoodGainsRuns.txt
0064 rm GoodGainsRunsDummy.txt
0065 rm tempFile.txt
0066
0067 cd /afs/cern.ch/cms/CSC/html/csccalib
0068 perl CreateTree_Items.pl
0069 cd -