- Timestamp:
- 10/15/07 15:50:00 (17 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8756 r8758 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2007/10/15 Daniel Hoehne 22 23 * datacenter/macros/fillcamera.C: 24 - included more parameters to fill into MCDB 25 - introduced discrimination of P/C and D files 26 - included linking of camera files 27 28 * datacenter/scripts/fillcamera: 29 - added 30 31 * datacenter/scripts/mcsequences: 32 - included handling of more than two P/C runs per rawfile directory 33 - building sequences based on rawfile dirs and MC epochs 34 35 * datacenter/scripts/processmcsequences: 36 - included MC epochs for finding the right callisto.rc 37 38 * mmc/MMcCorsikaRunHeader.h: 39 - included GetViewConeAngle[Inner,Outer], GetAtmosphericModel 40 41 20 42 21 43 2007/10/13 Thomas Bretz -
trunk/MagicSoft/Mars/datacenter/scripts/mcsequences
r8482 r8758 40 40 set -C 41 41 42 scriptlog=$runlogpath/$program `date +%F`.log42 scriptlog=$runlogpath/$program-$datetime.log 43 43 date >> $scriptlog 2>&1 44 44 … … 48 48 49 49 # find montecarlo directories, build one sequence per directory and write sequence file 50 printprocesslog "INFO building one sequence per mcdirectory "50 printprocesslog "INFO building one sequence per mcdirectory and epoch" 51 51 dirs=`find $mcrawpath -type d` 52 52 for dir in ${dirs[@]} 53 53 do 54 cont=`echo $dir | cut -d/ -f6` 54 # cont=`echo $dir | cut -d/ -f6` 55 cont=`echo $dir | cut -d/ -f10` 55 56 if [ "$cont" == "" ] 56 57 then … … 58 59 fi 59 60 echo $dir >> $scriptlog 2>&1 60 files=`ls $dir`61 calfile=`find $dir -name *_C_*`62 pedfile=`find $dir -name *_P_*`63 calrun=`echo $calfile | cut -d_ -f2`64 pedrun=`echo $pedfile | cut -d_ -f2`65 datruns=`find $dir -name *_D_* | cut -d_ -f2 | tr "\n" " "`66 # workaround due to 5digit runnumber for data with runnumber < 3548767 # firstrun=`echo $datruns | cut -c 0-8`68 firstrun=`echo $datruns | cut -c 0-5 | sed -e 's/^0//g' -e 's/^0//g' -e 's/^0//g' -e 's/^0//g'`69 date=`echo $dir | cut -c 22-31 | sed -e 's/\//-/g'`70 61 71 # workaround due to 5digit runnumber for data with runnumber < 35487 72 # no=`echo $firstrun | cut -c 0-4` 73 no=`printf %08d $firstrun | cut -c 0-4` 74 no2=`printf %08d $firstrun` 75 sequpath=$mcsequpath/$no 76 makedir $sequpath >> $scriptlog 2>&1 77 # sequfile=$sequpath/sequence$firstrun.txt 78 sequfile=$sequpath/sequence$no2.txt 79 echo "writing sequfile "$sequfile >> $scriptlog 2>&1 80 printprocesslog "INFO writing sequencefile $sequfile" 81 82 echo "Sequence: $firstrun" >| $sequfile 83 echo "Night: $date" >> $sequfile 84 echo "" >> $sequfile 85 echo "CalRuns: $calrun" >> $sequfile 86 echo "PedRuns: $pedrun" >> $sequfile 87 echo "DatRuns: $datruns" >> $sequfile 88 echo "" >> $sequfile 89 echo "MonteCarlo: Yes" >> $sequfile 90 echo "" >> $sequfile 62 epochs=`ls -l $mcpath/camera | cut -c 52-70` 63 for epoch in ${epochs[@]} 64 do 65 echo $epoch >> $scriptlog 2>&1 66 calfile=`find $dir -lname *$epoch*.root | grep "_C_"` 67 pedfile=`find $dir -lname *$epoch*.root | grep "_P_"` 68 # datfiles=`find $dir -lname '*$epoch*.root' | grep "_D_"` 69 70 calrun=`echo $calfile | cut -d_ -f2` 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 < 35487 74 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 tests 78 date=`echo $dir | cut -c 57-66 | sed -e 's/\//-/g'` 79 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" 90 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 101 done 91 102 done 92 103 -
trunk/MagicSoft/Mars/datacenter/scripts/processmcsequences
r8482 r8758 59 59 no=`echo $sequno | cut -c 0-4` 60 60 date=`grep Night $sequfile | cut -c 18-29 | sed -e 's/-/\//g'` 61 muxcheck=`grep Epoch $sequfile | cut -c 18-32` 62 case $muxcheck in 63 "MC_up_to_April06") 64 callistorc=$setuppath/callisto/callisto.rc 65 ;; 66 "MC_old") 67 callistorc=$setuppath/callisto/callisto.rc 68 ;; 69 "MC_April_May06") 70 callistorc=$setuppath/callisto/callisto.rc 71 ;; 72 "MC_post_June06") 73 callistorc=$setuppath/callisto/callisto.rc 74 ;; 75 "MC_MuxFADCs") 76 callistorc=$setuppath/callisto/callisto_mux.rc 77 ;; 78 "MC_MuxFADCs_NEW") 79 callistorc=$setuppath/callisto/callisto_mux.rc 80 ;; 81 *) 82 echo "No epoch found" 83 printprocesslog "ERROR no epoch found in $sequfile for setting the right callisto.rc, using standard callisto.rc, epoch: $epoch" 84 finish >> $scriptlog 2>&1 85 ;; 86 esac 87 61 88 caloutpath=$mccalpath/$no/$sequno 62 89 makedir $caloutpath >> $scriptlog 2>&1 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcCorsikaRunHeader.h
r7409 r8758 98 98 Float_t GetWobbleMode() const { return fWobbleMode; } 99 99 Float_t GetCorsikaVersion() const { return fCorsikaVersion; } 100 Float_t GetViewconeAngleInner() const { return fViewconeAngles[0]; } 101 Float_t GetViewconeAngleOuter() const { return fViewconeAngles[1]; } 102 Float_t GetAtmosphericModel() const { return fAtmosphericModel; } 100 103 101 104 Int_t GetNumCT() const { return fNumCT; }
Note:
See TracChangeset
for help on using the changeset viewer.