Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:08:46

0001 #!/bin/csh
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 #if( ${nn} < "120" ) then
0022 #if( ${nn} < "50" ) then
0023 #if( ${nn} < "30" ) then
0024 if( ${nn} < "3" ) then
0025 
0026 echo "${i}" >> PYTHON_${1}/Reco_${jj}_${kk}_cfg.py
0027 
0028 else
0029 echo "${i}" >> PYTHON_${1}/Reco_${jj}_${kk}_cfg.py
0030 cat a.py.end | sed s/Global.root/Global\_${jj}_${kk}.root/g >> PYTHON_${1}/Reco_${jj}_${kk}_cfg.py
0031 @ kk = ${kk} + "1"
0032 cat a.py.beg  > PYTHON_${1}/Reco_${jj}_${kk}_cfg.py
0033 set nn=0
0034 endif
0035 
0036 end
0037 
0038 if( ${nn} != "0" ) cat a.py.end | sed s/Global.root/Global\_${jj}_${kk}.root/g >> PYTHON_${1}/Reco_${jj}_${kk}_cfg.py
0039 @ j = ${j} + "1"
0040 
0041 end
0042 
0043 echo "DONE: mkcfg_new120.csh"
0044 
0045 ######