Changeset 9355 for trunk/MagicSoft/Mars/datacenter/scripts/mcsequences
- Timestamp:
- 02/19/09 21:22:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/MagicSoft/Mars/datacenter/scripts/mcsequences ¶
r9225 r9355 37 37 set -C 38 38 39 scriptlog=$runlogpath/$program-$datetime.log40 date >> $scriptlog 2>&141 42 39 # check if script is already running 43 40 lockfile=$lockpath/lock-$program.txt 44 checklock >> $scriptlog 2>&141 checklock 45 42 46 43 # find montecarlo directories, build two sequences per directory and write sequence files … … 58 55 continue 59 56 fi 60 echo $dir >> $scriptlog 2>&157 printprocesslog "INFO dir: "$dir 61 58 62 59 epochs=`ls -l $mcpath/camera | cut -c 52-80` 63 60 for epoch in ${epochs[@]} 64 61 do 65 echo $epoch >> $scriptlog 2>&162 printprocesslog "INFO epoch: "$epoch 66 63 calfile=`find $dir -lname *${epoch}/*.root | grep "_C_"` 67 64 pedfile=`find $dir -lname *${epoch}/*.root | grep "_P_"` … … 140 137 trainno=`echo $firstruntrain | cut -c 0-4` 141 138 trainsequpath=$mcsequpath/$trainno 142 makedir $trainsequpath >> $scriptlog 2>&1139 makedir $trainsequpath 143 140 trainsequfile=$trainsequpath/sequence$firstruntrain.txt 144 echo "writing train sequfile "$trainsequfile >> $scriptlog 2>&1145 141 printprocesslog "INFO writing train sequencefile $trainsequfile" 146 142 … … 205 201 testno=`echo $firstruntest | cut -c 0-4` 206 202 testsequpath=$mcsequpath/$testno 207 makedir $testsequpath >> $scriptlog 2>&1203 makedir $testsequpath 208 204 testsequfile=$testsequpath/sequence$firstruntest.txt 209 echo "writing test sequfile "$testsequfile >> $scriptlog 2>&1210 205 printprocesslog "INFO writing test sequencefile $testsequfile" 211 206 … … 227 222 done 228 223 229 finish >> $scriptlog 2>&1230 224 finish 225
Note:
See TracChangeset
for help on using the changeset viewer.