Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:17

0001 #!/bin/sh
0002 
0003 xflag=0
0004 pflag=0
0005 while getopts 'xph' OPTION
0006 do
0007   case $OPTION in
0008       x) xflag=1
0009           ;;
0010       p) pflag=1
0011           ;;
0012       h) echo "Usage: [-x]"
0013           echo "  -x: write to ORCON instead of sqlite file"
0014           exit
0015           ;;
0016   esac
0017 done
0018 shift $(($OPTIND - 1))
0019 
0020 if [ ${pflag} -eq 0 ]
0021     then
0022     export SCRAM_ARCH=""
0023     export VO_CMS_SW_DIR=""
0024     source /opt/cmssw/cmsset_default.sh
0025 else
0026     source /nfshome0/cmssw2/scripts/setup.sh
0027 fi
0028 eval `scramv1 run -sh`
0029 export TNS_ADMIN=/nfshome0/popcondev/conddb
0030 
0031 if [ ${xflag} -eq 0 ]
0032     then
0033     echo "Setting up sqlite_file:l1config.db"
0034     cmscond_bootstrap_detector -D L1T -f $CMSSW_BASE/src/CondTools/L1Trigger/test/dbconfiguration.xml -b $CMSSW_BASE
0035     cmsRun $CMSSW_BASE/src/CondTools/L1Trigger/test/init_cfg.py outputDBConnect=sqlite_file:l1config.db outputDBAuth=.
0036 else
0037     echo "Setting up cms_orcon_prod/CMS_COND_L1T account"
0038     cmscond_bootstrap_detector -D L1T -P /nfshome0/popcondev/conddb_taskWriters/L1T -f /nfshome0/popcondev/L1Job/conddb/dbconfigORCON.xml -b $CMSSW_BASE
0039     cmsRun $CMSSW_BASE/src/CondTools/L1Trigger/test/init_cfg.py outputDBConnect=oracle://cms_orcon_prod/CMS_COND_31X_L1T outputDBAuth=/nfshome0/popcondev/conddb_taskWriters/L1T useO2OTags=1
0040 fi
0041 
0042 exit