Changeset 8759 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
10/15/07 16:45:03 (17 years ago)
Author:
hoehne
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/fillcamera

    r8758 r8759  
    116116   do
    117117      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`
    119119     
    120120      if ls $dir | grep MonteCarlo | grep $pnum
     
    140140   done
    141141
    142 
    143 #   for dir in ${dirs[@]}
    144 #   do
    145    
    146 #      #continue, if directory has already linked C and P run
    147 #      cont=`ls $dir/*_0000000[1-9]_[CP]_MonteCarlo_E.root 2>/dev/null | wc -w`
    148 #      if [ "$cont" == "6" ] >> $scriptlog 2>&1
    149 #      then
    150 #        continue
    151 #      fi
    152 
    153 #      #continue, if directory is not at the lowest level of the structure
    154 #      cont=`echo $dir | cut -d/ -f10`
    155 #      if [ "$cont" == "" ]
    156 #      then
    157 #        continue
    158 #      fi
    159 
    160       #get date for filename from directory name
    161 #      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 epoch
    168 #      case "$epo" in
    169 #     
    170 #        "MC_up_to_April06")
    171 #            echo "linking P and C for epoch $epo" >> $scriptlog 2>&1
    172 #            newcalfile="${dir}/${date}_00000002_C_MonteCarlo_E.root"
    173 #           ln -sv $calfile $newcalfile >> $scriptlog 2>&1
    174 #           newpedfile="${dir}/${date}_00000001_P_MonteCarlo_E.root"
    175 #           ln -sv $pedfile $newpedfile >> $scriptlog 2>&1
    176 #            ;;
    177 #        "MC_old")
    178 #            echo "linking P and C for epoch $epo" >> $scriptlog 2>&1
    179 #            newcalfile="${dir}/${date}_00000002_C_MonteCarlo_E.root"
    180 #           ln -sv $calfile $newcalfile >> $scriptlog 2>&1
    181 #           newpedfile="${dir}/${date}_00000001_P_MonteCarlo_E.root"
    182 #           ln -sv $pedfile $newpedfile >> $scriptlog 2>&1
    183 #            ;;
    184 #        "MC_April_May06")
    185 #            echo "linking P and C for epoch $epo" >> $scriptlog 2>&1
    186 #            newcalfile="${dir}/${date}_00000004_C_MonteCarlo_E.root"
    187 #           ln -sv $calfile $newcalfile >> $scriptlog 2>&1
    188 #           newpedfile="${dir}/${date}_00000003_P_MonteCarlo_E.root"
    189 #           ln -sv $pedfile $newpedfile >> $scriptlog 2>&1
    190 #            ;;
    191 #        "MC_post_June06")
    192 #            echo "linking P and C for epoch $epo" >> $scriptlog 2>&1
    193 #            newcalfile="${dir}/${date}_00000004_C_MonteCarlo_E.root"
    194 #           ln -sv $calfile $newcalfile >> $scriptlog 2>&1
    195 #           newpedfile="${dir}/${date}_00000003_P_MonteCarlo_E.root"
    196 #           ln -sv $pedfile $newpedfile >> $scriptlog 2>&1
    197 #            ;;
    198 #        "MC_MuxFADCs")
    199 #            echo "linking P and C for epoch $epo" >> $scriptlog 2>&1
    200 #            newcalfile="${dir}/${date}_00000006_C_MonteCarlo_E.root"
    201 #           ln -sv $calfile $newcalfile >> $scriptlog 2>&1
    202 #           newpedfile="${dir}/${date}_00000005_P_MonteCarlo_E.root"
    203 #           ln -sv $pedfile $newpedfile >> $scriptlog 2>&1
    204 #            ;;
    205 #        "MC_MuxFADCs_NEW")
    206 #            echo "linking P and C for epoch $epo" >> $scriptlog 2>&1
    207 #            newcalfile="${dir}/${date}_00000006_C_MonteCarlo_E.root"
    208 #           ln -sv $calfile $newcalfile >> $scriptlog 2>&1
    209 #           newpedfile="${dir}/${date}_00000005_P_MonteCarlo_E.root"
    210 #           ln -sv $pedfile $newpedfile >> $scriptlog 2>&1
    211 #            ;;
    212 #         *)
    213 #            echo "No epoch found"
    214 #           printprocesslog "ERROR wrong epoch for linking Cal and Ped, epoch: $cameradir"
    215 #            finish >> $scriptlog 2>&1
    216 #            ;;
    217 #      esac
    218 
    219 #   done
    220142done
    221143
  • trunk/MagicSoft/Mars/datacenter/scripts/mcsequences

    r8758 r8759  
    5252for dir in ${dirs[@]}
    5353do
    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`
    5656   if [ "$cont" == "" ]
    5757   then
     
    7474      firstrun=`echo $datruns | cut -c 0-8`
    7575      #   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'`
    7777      # 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'`
    7979     
    8080      # workaround due to 5digit runnumber for data with runnumber < 35487
Note: See TracChangeset for help on using the changeset viewer.