Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:57

0001 #!/bin/tcsh
0002 
0003 #Check for correct number of arguments
0004 if ($#argv<4) then
0005     echo "Script needs 4 arguments for comparison:"
0006     echo "validation label, reference label, validation file and reference file"
0007     exit
0008 endif
0009 
0010 #Check to see if the CMS environment is set up
0011 if ($?CMSSW_BASE != 1) then
0012     echo "CMS environment not set up"
0013     exit
0014 endif
0015 
0016 set val_lab=$1
0017 set ref_lab=$2
0018 set val_file=$3
0019 set ref_file=$4
0020 set cur_dir=`pwd`
0021 set finaldir=$CMSSW_VERSION
0022 
0023 mkdir ${val_lab}_vs_${ref_lab}
0024 
0025 
0026 cat ValidationBTag_OneSampleTemplate.xml | sed -e s%CURDIR%${cur_dir}%g | sed -e s/REF_LABEL/${ref_lab}/g | sed -e s/VAL_LABEL/${val_lab}/g | sed -e s/REF_FILE/${ref_file}/g | sed -e s/VAL_FILE/${val_file}/g > ${val_lab}_vs_${ref_lab}/ValidationBTag_catprod.xml
0027 
0028 cd ${val_lab}_vs_${ref_lab}
0029 cuy.py -b -x ValidationBTag_catprod.xml -p gif << +EOF
0030 q
0031 +EOF
0032 
0033 cd ../