Changeset 8761
- Timestamp:
- 10/16/07 16:01:16 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8758 r8761 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2007/10/16 Daniel Hoehne 22 23 * datacenter/scripts/mcsequences: 24 - bugfix: Now a sequence is written for every folder and particle mode 25 26 20 27 21 28 2007/10/15 Daniel Hoehne -
trunk/MagicSoft/Mars/datacenter/scripts/mcsequences
r8759 r8761 70 70 calrun=`echo $calfile | cut -d_ -f2` 71 71 pedrun=`echo $pedfile | cut -d_ -f2` 72 datruns=`find $dir -lname *$epoch*.root | grep "_D_" | cut -d_ -f2 | tr "\n" " "`73 # workaround due to 5digit runnumber for data with runnumber < 3548774 firstrun=`echo $datruns | cut -c 0-8`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'`77 # for tests78 # date=`echo $dir | cut -c 57-66 | sed -e 's/\//-/g'`79 72 80 # workaround due to 5digit runnumber for data with runnumber < 35487 81 no=`echo $firstrun | cut -c 0-4` 82 # no=`printf %08d $firstrun | cut -c 0-4` 83 # no2=`printf %08d $firstrun` 84 sequpath=$mcsequpath/$no 85 makedir $sequpath >> $scriptlog 2>&1 86 sequfile=$sequpath/sequence$firstrun.txt 87 # sequfile=$sequpath/sequence$no2.txt 88 echo "writing sequfile "$sequfile >> $scriptlog 2>&1 89 printprocesslog "INFO writing sequencefile $sequfile" 73 modes=("Gamma" "GammaW1" "GammaW2" "GammaFW" "GammaDiff" "GammaHE" "GammaHEW1" "GammaHEW2" "GammaHEFW" "GammaHEDiff" "ProtonDiff" "ProtonHEDiff" "MuonDiff" "MuonHEDiff") 74 for mode in ${modes[@]} 75 do 76 datruns=`find $dir -lname *$epoch*.root | grep $mode | grep "_D_" | cut -d_ -f2 | tr "\n" " "` 77 if [ "$datruns" != "" ] 78 then 79 # workaround due to 5digit runnumber for data with runnumber < 35487 80 firstrun=`echo $datruns | cut -c 0-8` 81 # firstrun=`echo $datruns | cut -c 0-5 | sed -e 's/^0//g' -e 's/^0//g' -e 's/^0//g' -e 's/^0//g'` 82 date=`echo $dir | cut -c 28-37 | sed -e 's/\//-/g'` 83 # date=`echo $dir | cut -c 57-66 | sed -e 's/\//-/g'` 84 # for tests 85 # date=`echo $dir | cut -c 57-66 | sed -e 's/\//-/g'` 90 86 91 echo "Sequence: $firstrun" >| $sequfile 92 echo "Night: $date" >> $sequfile 93 echo "Epoch: $epoch" >> $sequfile 94 echo "" >> $sequfile 95 echo "CalRuns: $calrun" >> $sequfile 96 echo "PedRuns: $pedrun" >> $sequfile 97 echo "DatRuns: $datruns" >> $sequfile 98 echo "" >> $sequfile 99 echo "MonteCarlo: Yes" >> $sequfile 100 echo "" >> $sequfile 87 # workaround due to 5digit runnumber for data with runnumber < 35487 88 no=`echo $firstrun | cut -c 0-4` 89 # no=`printf %08d $firstrun | cut -c 0-4` 90 # no2=`printf %08d $firstrun` 91 sequpath=$mcsequpath/$no 92 makedir $sequpath >> $scriptlog 2>&1 93 sequfile=$sequpath/sequence$firstrun.txt 94 # sequfile=$sequpath/sequence$no2.txt 95 echo "writing sequfile "$sequfile >> $scriptlog 2>&1 96 printprocesslog "INFO writing sequencefile $sequfile" 97 98 echo "Sequence: $firstrun" >| $sequfile 99 echo "Night: $date" >> $sequfile 100 echo "Epoch: $epoch" >> $sequfile 101 echo "Mode: $mode" >> $sequfile 102 echo "" >> $sequfile 103 echo "CalRuns: $calrun" >> $sequfile 104 echo "PedRuns: $pedrun" >> $sequfile 105 echo "DatRuns: $datruns" >> $sequfile 106 echo "" >> $sequfile 107 echo "MonteCarlo: Yes" >> $sequfile 108 echo "" >> $sequfile 109 fi 110 done 101 111 done 102 112 done
Note:
See TracChangeset
for help on using the changeset viewer.