File indexing completed on 2024-04-06 12:06:26
0001
0002 echo "myStart mkcfg_new120.csh"
0003 set j=1
0004 rm -rf PYTHON_${1}
0005 rm -rf TXT_${1}
0006 mkdir PYTHON_${1}
0007 mkdir TXT_${1}
0008
0009 ./file_lists.csh ${1}
0010
0011 foreach jj (`cat ${1}`)
0012
0013 set kk=1
0014 cat a.py.beg > PYTHON_${1}/Reco_${jj}_${kk}_cfg.py
0015 set nn=0
0016
0017 foreach i (`cat TXT_${1}/run_${jj}`)
0018 @ nn = ${nn} + "1"
0019 echo "nn= ${nn} , i= ${i}, kk= ${kk}"
0020
0021
0022
0023
0024
0025
0026 if( ${nn} < "3" ) then
0027
0028 echo "${i}" >> PYTHON_${1}/Reco_${jj}_${kk}_cfg.py
0029
0030 else
0031 echo "${i}" >> PYTHON_${1}/Reco_${jj}_${kk}_cfg.py
0032 cat a.py.end | sed s/Global.root/Global\_${jj}_${kk}.root/g >> PYTHON_${1}/Reco_${jj}_${kk}_cfg.py
0033 @ kk = ${kk} + "1"
0034 cat a.py.beg > PYTHON_${1}/Reco_${jj}_${kk}_cfg.py
0035 set nn=0
0036 endif
0037
0038 end
0039
0040 if( ${nn} != "0" ) cat a.py.end | sed s/Global.root/Global\_${jj}_${kk}.root/g >> PYTHON_${1}/Reco_${jj}_${kk}_cfg.py
0041 @ j = ${j} + "1"
0042
0043 end
0044
0045 echo "DONE: mkcfg_new120.csh"
0046
0047