Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:48

0001 #!/bin/bash
0002 #setting up environment variables
0003 export HOME=@home
0004 export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:/opt/ibutils/bin:@home/bin
0005 
0006 JCPORT=9999
0007 
0008 while getopts ":t:r:p:k" options; do
0009     case $options in
0010         t ) TPG_KEY=$OPTARG;;
0011         r ) RUN_NUMBER=$OPTARG;;
0012         p ) JCPORT=$OPTARG;;
0013         k ) KILLSWITCH=1;;
0014     esac
0015 done
0016 
0017 source @root/scripts/setup.sh -j EcalTPG
0018 
0019 log "-----------------------------------------------------------------------"
0020 log "EcalTPG.sh"
0021 log "PID $$"
0022 log "HOSTNAME $HOSTNAME"
0023 log "JCPORT $JCPORT"
0024 log "TPG_KEY $TPG_KEY"
0025 log "RUN_NUMBER $RUN_NUMBER"
0026 log "date `date`"
0027 log "-----------------------------------------------------------------------"
0028 
0029 SRCDIR=$RELEASEDIR/src/CondTools/Ecal/python
0030 
0031 # run the O2Os...
0032 submit_cmsRun EcalTPGTowerStatus $SRCDIR/copyBadTT_cfg.py
0033 submit_cmsRun EcalTPGCrystalStatus $SRCDIR/copyBadXT_cfg.py
0034 submit_cmsRun EcalTPGFineGrainEBGroup $SRCDIR/copyFgrGroup_cfg.py
0035 submit_cmsRun EcalTPGFineGrainEBIdMap $SRCDIR/copyFgrIdMap_cfg.py
0036 submit_cmsRun EcalTPGFineGrainStripEE $SRCDIR/copyFgrStripEE_cfg.py
0037 submit_cmsRun EcalTPGFineGrainTowerEE $SRCDIR/copyFgrTowerEE_cfg.py
0038 submit_cmsRun EcalTPGLinearizationConst $SRCDIR/copyLin_cfg.py
0039 submit_cmsRun EcalTPGLutGroup $SRCDIR/copyLutGroup_cfg.py
0040 submit_cmsRun EcalTPGLutIdMap $SRCDIR/copyLutIdMap_cfg.py
0041 submit_cmsRun EcalTPGPedestals $SRCDIR/copyPed_cfg.py
0042 submit_cmsRun EcalTPGPhysicsConst $SRCDIR/copyPhysConst_cfg.py
0043 submit_cmsRun EcalTPGSlidingWindow $SRCDIR/copySli_cfg.py
0044 submit_cmsRun EcalTPGWeightGroup $SRCDIR/copyWGroup_cfg.py
0045 submit_cmsRun EcalTPGWeightIdMap $SRCDIR/copyWIdMap_cfg.py
0046 submit_cmsRun EcalTPGSpike $SRCDIR/copySpikeTh_cfg.py
0047 submit_cmsRun EcalTPGStripStatus $SRCDIR/copyBadStrip_cfg.py
0048 submit_command EcalADCToGeV_express "cmsRun $SRCDIR/EcalADCToGeVConstantPopConBTransitionAnalyzer_cfg.py runNumber=$RUN_NUMBER destinationDatabase={db} destinationTag={tag} tagForRunInfo={runInfoTag} tagForBOff={boffTag} tagForBOn={bonTag}"
0049 submit_command EcalADCToGeV_hlt "cmsRun $SRCDIR/EcalADCToGeVConstantPopConBTransitionAnalyzer_cfg.py runNumber=$RUN_NUMBER destinationDatabase={db} destinationTag={tag} tagForRunInfo={runInfoTag} tagForBOff={boffTag} tagForBOn={bonTag}"
0050 submit_command EcalIntercalibConstants_express "cmsRun $SRCDIR/EcalIntercalibConstantsPopConBTransitionAnalyzer_cfg.py runNumber=$RUN_NUMBER destinationDatabase={db} destinationTag={tag} tagForRunInfo={runInfoTag} tagForBOff={boffTag} tagForBOn={bonTag}"
0051 submit_command EcalIntercalibConstants_hlt "cmsRun $SRCDIR/EcalIntercalibConstantsPopConBTransitionAnalyzer_cfg.py runNumber=$RUN_NUMBER destinationDatabase={db} destinationTag={tag} tagForRunInfo={runInfoTag} tagForBOff={boffTag} tagForBOn={bonTag}"
0052 
0053 log "-----------------------------------------------------------------------"
0054 if [ -n "$KILLSWITCH" ]; then
0055     log "Killswitch activated"
0056 ADDR="http://$HOSTNAME:$JCPORT/urn:xdaq-application:service=jobcontrol/ProcKill?kill=$$"
0057 
0058 KILLCMD="curl $ADDR"
0059 
0060 log $KILLCMD
0061 $KILLCMD > /dev/null
0062 
0063 fi
0064 
0065 log DONE
0066 
0067 
0068 exit 0