File indexing completed on 2024-04-06 12:03:25
0001
0002
0003
0004 filename=$1
0005 runnumber=$2
0006 calibtype=$3
0007 if [ "$calibtype" != "SCurve" ] && [ "$calibtype" != "GainCalibration" ] && [ "$calibtype" != "PixelAlive" ];
0008 then
0009 echo "calib type must be either SCurve, GainCalibration, or PixelAlive"
0010 exit 1
0011 else
0012 pixeltag="$calibtype"_default
0013 oldrunnumber=PIXELRUNNUMBER
0014 oldname=PIXELFILENAME
0015 oldpixeltag=PIXELTAG
0016 inputfile=${CMSSW_BASE}/src/CondTools/SiPixel/test/calibconfiguration_write_template_cfg.py
0017 outputfile=`echo "dbinput_"$calibtype"_"$runnumber"_scripted_iov__cfg.py"`
0018 rm -rf $outputfile
0019 cat $inputfile | replace $oldname $filename $oldrunnumber $runnumber $oldpixeltag $pixeltag >$outputfile
0020 echo "****** THIS IS THE INPUT FILE:"
0021 echo ""
0022 cat $outputfile
0023 echo "****** starting DB fill:"
0024 cmsRun $outputfile
0025 echo "removing temporary files..."
0026 fi