]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Automatically find final MC correction file
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 8 Jun 2011 14:40:15 +0000 (14:40 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 8 Jun 2011 14:40:15 +0000 (14:40 +0000)
PWG2/FORWARD/analysis2/Run.sh

index 0e4a193adc1158d94fc54ba3cdb43e83beabe4c0..2497820e8e945bab7d3878a9edcea63c38a075ff 100755 (executable)
@@ -305,6 +305,12 @@ fi
 #_____________________________________________________________________
 # Pass 2 
 if test $dopass2 -gt 0 ; then
+    if test -f forward_dndeta_mc.root ; then
+       if test "x$mcfilename" = "xnone"  || 
+           test "x$mcfilename" = "x" ; then 
+           mcfilename=forward_dndeta_mc.root
+       fi
+    fi
     args="(\"${pass2dir}\",$nev,\"$type\",$cent,\"$scheme\",$vzmin,$vzmax,$proof,\"$name\",\"$mcfilename\")"
     if test "x$pass1" = "xMakeELossFits.C" ; then 
        args=(\(\"${pass2dir}${output1}\"\))