File indexing completed on 2024-04-06 12:03:13
0001
0002
0003
0004
0005
0006
0007 nflag=0
0008 pflag=0
0009 while getopts 'nph' OPTION
0010 do
0011 case $OPTION in
0012 n) nflag=1
0013 ;;
0014 p) pflag=1
0015 ;;
0016 h) echo "Usage: [-n] runnum"
0017 echo " -n: no RS"
0018 echo " -p: centrally installed release, not on local machine"
0019 exit
0020 ;;
0021 esac
0022 done
0023 shift $(($OPTIND - 1))
0024
0025
0026 runnum=$1
0027
0028 if [ $
0029 then
0030 echo "Wrong number of arguments. Usage: $0 runnum"
0031 exit 127
0032 fi
0033
0034 if [ -f l1config.db ]
0035 then
0036 mv l1config.db l1config.db.save
0037 fi
0038
0039 if [ ${pflag} -eq 0 ]
0040 then
0041 export SCRAM_ARCH=""
0042 export VO_CMS_SW_DIR=""
0043 source /opt/cmssw/cmsset_default.sh
0044 else
0045 source /nfshome0/cmssw2/scripts/setup.sh
0046 fi
0047 eval `scramv1 run -sh`
0048
0049 echo "`date` : initializing sqlite file"
0050 if [ -e $CMSSW_BASE/src/CondFormats/L1TObjects/xml ]
0051 then
0052 $CMSSW_BASE/src/CondTools/L1Trigger/test/bootstrap.com -l
0053 else
0054 $CMSSW_RELEASE_BASE/src/CondTools/L1Trigger/test/bootstrap.com
0055 fi
0056
0057
0058 cmsRun $CMSSW_BASE/src/CondTools/L1Trigger/test/L1ConfigWritePayloadCondDB_cfg.py inputDBConnect=oracle://cms_orcon_prod/CMS_COND_31X_L1T inputDBAuth=/nfshome0/popcondev/conddb_taskWriters/L1T runNumber=${runnum}
0059 cmsRun $CMSSW_BASE/src/CondTools/L1Trigger/test/L1ConfigWriteIOVDummy_cfg.py useO2OTags=1
0060
0061 exit ${o2ocode}