Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:33

0001 #!/bin/bash
0002 
0003 if [ $# -ne 2 ]; then
0004     echo "You have to provide a <DestinationTag> and the <RunNumber> !!!"
0005     echo "E.g.: ./MakeIdealConditions.sh SiStripBadComponents_OfflineAnalysis_GR09_31X_v1_offline 110000"
0006     exit
0007 fi
0008 
0009 echo "Preparing the sqlite and metadata file"
0010 
0011 TAG=$1
0012 FIRSTRUN=$2
0013 
0014 ID1=`uuidgen -t`
0015 cp dbfile_31X_IdealConditions.db SiStripIdealConditions@${ID1}.db
0016 cat template_SiStripIdealConditions.txt | sed -e "s@insertDestinationTag@$TAG@" -e "s@insertFirstRun@$FIRSTRUN@g" > SiStripIdealConditions@${ID1}.txt
0017 
0018 echo "-----------------------------------"
0019 echo "Sqlite and metadata files are ready"
0020 echo "Sqlite file: SiStripIdealConditions@${ID1}.db, Metadata file: SiStripIdealConditions@${ID1}.txt"
0021 echo "-----------------------------------"
0022 echo "Now the sqlite and the corresponding metadata file have to be moved to the Popcon dropbox!"
0023 echo "Do: scp <sqlite-file> <metadata-file> <username>@cmsusr5:/nfshome0/popcondev/SiStripJob"