/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondTools/SiPixel/scripts/fill_calibobjects_byIOV
26 строк
1 KB
Giulio Eulisse
Snapshot of CMSSW_6_2_0_pre8.
26 июн 2013, 18:12
26 июн 2013, 18:12
214ab73
Код
Авторство
О чём код?
#!/bin/bash ### simple script to add information to the database. takes three arguments: the name of the calib.dat file (full path pls), the run number, and calibration type, GainCalibration, SCurve, or PixelAlive filename=$1 runnumber=$2 calibtype=$3 if [ "$calibtype" != "SCurve" ] && [ "$calibtype" != "GainCalibration" ] && [ "$calibtype" != "PixelAlive" ]; then echo "calib type must be either SCurve, GainCalibration, or PixelAlive" exit 1 else pixeltag="$calibtype"_default oldrunnumber=PIXELRUNNUMBER # these should be identical to definition in inputfile oldname=PIXELFILENAME #these should be identical to definition in inputfile oldpixeltag=PIXELTAG #these should be identical to definition in inputfile inputfile=${CMSSW_BASE}/src/CondTools/SiPixel/test/calibconfiguration_write_template_cfg.py outputfile=`echo "dbinput_"$calibtype"_"$runnumber"_scripted_iov__cfg.py"` rm -rf $outputfile cat $inputfile | replace $oldname $filename $oldrunnumber $runnumber $oldpixeltag $pixeltag >$outputfile echo "****** THIS IS THE INPUT FILE:" echo "" cat $outputfile echo "****** starting DB fill:" cmsRun $outputfile echo "removing temporary files..." fi