Changeset 8759
- Timestamp:
- 10/15/07 16:45:03 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillcamera
r8758 r8759 116 116 do 117 117 dir=`dirname $file` 118 date=`echo $file | cut -c 57-60,62,63,65,66`118 date=`echo $file | cut -c 28-31,33,34,36,37` 119 119 120 120 if ls $dir | grep MonteCarlo | grep $pnum … … 140 140 done 141 141 142 143 # for dir in ${dirs[@]}144 # do145 146 # #continue, if directory has already linked C and P run147 # cont=`ls $dir/*_0000000[1-9]_[CP]_MonteCarlo_E.root 2>/dev/null | wc -w`148 # if [ "$cont" == "6" ] >> $scriptlog 2>&1149 # then150 # continue151 # fi152 153 # #continue, if directory is not at the lowest level of the structure154 # cont=`echo $dir | cut -d/ -f10`155 # if [ "$cont" == "" ]156 # then157 # continue158 # fi159 160 #get date for filename from directory name161 # date=`echo $dir | cut -c 57-60,62,63,65,66`162 # time=`echo $dir | cut -c 62,63`163 # psf=`echo $dir | cut -c 65,66`164 # date=`echo $dir | cut -c 28-31,33,34,36,37`165 166 167 #create new filenames and link files depending on the epoch168 # case "$epo" in169 #170 # "MC_up_to_April06")171 # echo "linking P and C for epoch $epo" >> $scriptlog 2>&1172 # newcalfile="${dir}/${date}_00000002_C_MonteCarlo_E.root"173 # ln -sv $calfile $newcalfile >> $scriptlog 2>&1174 # newpedfile="${dir}/${date}_00000001_P_MonteCarlo_E.root"175 # ln -sv $pedfile $newpedfile >> $scriptlog 2>&1176 # ;;177 # "MC_old")178 # echo "linking P and C for epoch $epo" >> $scriptlog 2>&1179 # newcalfile="${dir}/${date}_00000002_C_MonteCarlo_E.root"180 # ln -sv $calfile $newcalfile >> $scriptlog 2>&1181 # newpedfile="${dir}/${date}_00000001_P_MonteCarlo_E.root"182 # ln -sv $pedfile $newpedfile >> $scriptlog 2>&1183 # ;;184 # "MC_April_May06")185 # echo "linking P and C for epoch $epo" >> $scriptlog 2>&1186 # newcalfile="${dir}/${date}_00000004_C_MonteCarlo_E.root"187 # ln -sv $calfile $newcalfile >> $scriptlog 2>&1188 # newpedfile="${dir}/${date}_00000003_P_MonteCarlo_E.root"189 # ln -sv $pedfile $newpedfile >> $scriptlog 2>&1190 # ;;191 # "MC_post_June06")192 # echo "linking P and C for epoch $epo" >> $scriptlog 2>&1193 # newcalfile="${dir}/${date}_00000004_C_MonteCarlo_E.root"194 # ln -sv $calfile $newcalfile >> $scriptlog 2>&1195 # newpedfile="${dir}/${date}_00000003_P_MonteCarlo_E.root"196 # ln -sv $pedfile $newpedfile >> $scriptlog 2>&1197 # ;;198 # "MC_MuxFADCs")199 # echo "linking P and C for epoch $epo" >> $scriptlog 2>&1200 # newcalfile="${dir}/${date}_00000006_C_MonteCarlo_E.root"201 # ln -sv $calfile $newcalfile >> $scriptlog 2>&1202 # newpedfile="${dir}/${date}_00000005_P_MonteCarlo_E.root"203 # ln -sv $pedfile $newpedfile >> $scriptlog 2>&1204 # ;;205 # "MC_MuxFADCs_NEW")206 # echo "linking P and C for epoch $epo" >> $scriptlog 2>&1207 # newcalfile="${dir}/${date}_00000006_C_MonteCarlo_E.root"208 # ln -sv $calfile $newcalfile >> $scriptlog 2>&1209 # newpedfile="${dir}/${date}_00000005_P_MonteCarlo_E.root"210 # ln -sv $pedfile $newpedfile >> $scriptlog 2>&1211 # ;;212 # *)213 # echo "No epoch found"214 # printprocesslog "ERROR wrong epoch for linking Cal and Ped, epoch: $cameradir"215 # finish >> $scriptlog 2>&1216 # ;;217 # esac218 219 # done220 142 done 221 143 -
trunk/MagicSoft/Mars/datacenter/scripts/mcsequences
r8758 r8759 52 52 for dir in ${dirs[@]} 53 53 do 54 #cont=`echo $dir | cut -d/ -f6`55 cont=`echo $dir | cut -d/ -f10`54 cont=`echo $dir | cut -d/ -f6` 55 # cont=`echo $dir | cut -d/ -f10` 56 56 if [ "$cont" == "" ] 57 57 then … … 74 74 firstrun=`echo $datruns | cut -c 0-8` 75 75 # firstrun=`echo $datruns | cut -c 0-5 | sed -e 's/^0//g' -e 's/^0//g' -e 's/^0//g' -e 's/^0//g'` 76 #date=`echo $dir | cut -c 28-37 | sed -e 's/\//-/g'`76 date=`echo $dir | cut -c 28-37 | sed -e 's/\//-/g'` 77 77 # for tests 78 date=`echo $dir | cut -c 57-66 | sed -e 's/\//-/g'`78 # date=`echo $dir | cut -c 57-66 | sed -e 's/\//-/g'` 79 79 80 80 # workaround due to 5digit runnumber for data with runnumber < 35487
Note:
See TracChangeset
for help on using the changeset viewer.