Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:32

0001 #!/bin/sh
0002 
0003 # usage ./run_client.sh <run_number> <db_upload> 
0004 
0005 eval `scramv1 runtime -sh`
0006 cp $CMSSW_BASE/src/DQM/SiStripCommissioningDbClients/data/.OfflineDbClient.cfg client_$1.cfg
0007 replace FILE_PATH ${SCRATCH}/source -- client_$1.cfg
0008 replace RUN_NUMBER $1 -- client_$1.cfg
0009 replace DB_UPDATE $2 -- client_$1.cfg 
0010 replace CONF_DB ${CONFDB} -- client_$1.cfg 
0011 replace DB_PARTITION ${ENV_CMS_TK_PARTITION} -- client_$1.cfg 
0012 cmsRun client_$1.cfg
0013 mkdir ${SCRATCH}/client/$1
0014 mv ${SCRATCH}/*$1*.root ${SCRATCH}/client/$1
0015 mv client_$1.cfg ${SCRATCH}/client/$1
0016 mv event.log ${SCRATCH}/client/$1/event_$1.log
0017 mv error.log ${SCRATCH}/client/$1/error_$1.log
0018 mv debug.log ${SCRATCH}/client/$1/debug_$1.log