Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:45

0001 #!/bin/csh
0002 
0003 if( $# != 2 ) then
0004     echo "Error: first and last line requested"
0005     exit
0006 endif
0007 
0008 if( $1 >= $2 ) then
0009     echo "Error: second parameter must be > than the first"
0010     exit
0011 endif
0012 
0013 set ii=$1
0014 set numpar=0
0015 
0016 if( -f Values.txt ) rm Values.txt
0017 if( -f Sigmas.txt ) rm Sigmas.txt
0018 touch Sigmas.txt
0019 
0020 while( $ii <= $2 )
0021     ./TakeParameterFromBatch.sh $ii
0022     if( ! -f Values.txt ) then
0023         echo "Error: file Values.txt not found for line "$ii"."
0024         exit
0025     endif
0026     root -l -b -q MakePlot.C >&! OutputFit_param_${numpar}.txt
0027     grep sigma_final OutputFit_param_${numpar}.txt | awk '{print $2}' >> Sigmas.txt
0028     if( -f plot_param_x.gif ) mv plot_param_x.gif plot_param_${numpar}.gif
0029     rm Values.txt
0030     @ ii++
0031     @ numpar++
0032 end
0033 
0034 exit
0035