Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:25

0001 #!/bin/bash
0002 ### simple script to add information to the database. takes two arguments: the name of the calib.dat file (full path pls) and the desired tag name.
0003 
0004 filename=$1
0005 tagname=$2
0006 runnumber=1
0007 oldtag=PIXELTAG  # these should be identical to definition in inputfile
0008 oldname=PIXELFILENAME  #these should be identical to definition in inputfile
0009 oldrunnumber=PIXELRUNNUMBER
0010 inputfile=${CMSSW_BASE}/src/CondTools/SiPixel/test/calibconfiguration_write_template_cfg.py
0011 outputfile=`echo "dbinput_"$tagname"_scripted_cfg.py"`
0012 rm -rf $outputfile
0013 cat $inputfile | replace $oldname $filename $oldtag $tagname $oldrunnumber $runnumber>$outputfile
0014 echo "****** THIS IS THE INPUT FILE:"
0015 echo ""
0016 cat $outputfile
0017 echo "****** starting DB fill:"
0018 cmsRun $outputfile
0019 echo "removing temporary files..."
0020