Index: trunk/MagicSoft/Mars/datacenter/scripts/linkmc
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/linkmc	(revision 7982)
+++ trunk/MagicSoft/Mars/datacenter/scripts/linkmc	(revision 8433)
@@ -124,7 +124,5 @@
    file=`basename $camfile` #filename
    no=`printf %08d $runno | cut -c 0-5` #first 5 digits of a 8digit runno -> for path
-#   no2=`printf %08d $runno` #runno with 8 digits
-# workaround due to 5digit runnumber for data with runnumber < 35487
-   no2=`printf %05d $runno`
+   no2=`printf %08d $runno` #runno with 8 digits
    zbin=`echo $file | cut -d_ -f2 | cut -c 5-6` #zbin from filename 
    zbin=`printf %02d $zbin` #2digit
@@ -215,11 +213,7 @@
    
    #create new filenames and link files
-# workaround due to 5digit runnumber for data with runnumber < 35487
-#   newcalfile="${dir}/${date}_00000002_C_MonteCarlo_E.root"
-   newcalfile="${dir}/${date}_00002_C_MonteCarlo_E.root"
+   newcalfile="${dir}/${date}_00000002_C_MonteCarlo_E.root"
    ln -sv $calfile $newcalfile >> $scriptlog 2>&1
-# workaround due to 5digit runnumber for data with runnumber < 35487
-#   newpedfile="${dir}/${date}_00000001_P_MonteCarlo_E.root"
-   newpedfile="${dir}/${date}_00001_P_MonteCarlo_E.root"
+   newpedfile="${dir}/${date}_00000001_P_MonteCarlo_E.root"
    ln -sv $pedfile $newpedfile >> $scriptlog 2>&1
 done
