Changeset 7982 for trunk/MagicSoft/Mars/datacenter/scripts/linkmc
- Timestamp:
- 09/28/06 10:33:17 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/linkmc
r7967 r7982 31 31 # 32 32 # original structure: 33 # /m ontecarlo/camera/33 # /magic/montecarlo/camera/ 34 34 # 35 35 # new structure: 36 # /m ontecarlo/rawfiles/YYYY/MM/DD/file.root36 # /magic/montecarlo/rawfiles/YYYY/MM/DD/file.root 37 37 # more explanation concerning the file structure can be found in the file 38 # /m ontecarlo/rawfiles/README.txt38 # /magic/montecarlo/rawfiles/README.txt 39 39 # 40 40 # First the data files are linked and then in each new directory also the … … 55 55 checklock >> $scriptlog 2>&1 56 56 57 mccampath=/montecarlo/camera 58 mcpath=/montecarlo/rawfiles 59 next=$mcpath/.next #in .next the next runno is stored 60 processed=$mcpath/.processed #in .processed the linked files are stored 61 readme=$mcpath/README.txt #file in which the information about the modes is redirected to have always an updated explanation 57 mccampath=$mcpath/camera 58 next=$mcrawpath/.next #in .next the next runno is stored 59 processed=$mcrawpath/.processed #in .processed the linked files are stored 60 readme=$mcrawpath/README.txt #file in which the information about the modes is redirected to have always an updated explanation 62 61 63 62 # check if file with next runnumber is available … … 163 162 project=${particle}${zbin}${wobblemode} #build project name 164 163 #create new filename 165 newfile="$mc path/19$zbin/$totalmode/$psf/19${zbin}${totalmode}${psf}_${no2}_D_${project}_E.root"164 newfile="$mcrawpath/19$zbin/$totalmode/$psf/19${zbin}${totalmode}${psf}_${no2}_D_${project}_E.root" 166 165 newdir=`dirname $newfile` 167 166 makedir $newdir >> $scriptlog 2>&1 … … 194 193 195 194 #get all directories in the linked structure 196 dirs=`find $mc path -type d`195 dirs=`find $mcrawpath -type d` 197 196 198 197 for dir in ${dirs[@]}
Note:
See TracChangeset
for help on using the changeset viewer.