Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/bin/sh
0002 function usage() {
0003 cat <<EOF
0004 
0005   execute the script in the following way : 
0006 
0007   ./StartAll  RUN_TYPE
0008 
0009   where
0010     - RUN_TYPE    (DQM sources you want to activate): ped/digi/digi_cluster
0011 
0012   Example 1 : ./StartAll  ped
0013   Example 2 : ./StartAll  digi_cluster
0014 
0015 EOF
0016 }
0017 if [ $# -lt 1 ]; then
0018   usage; exit 1;
0019 fi
0020 ./StopAll
0021 COLLECTORNAME=`/bin/hostname`
0022 echo "The hostname is = " $COLLECTORNAME
0023 eval `scramv1 runtime -sh`
0024 xterm -T "DQM Collector" -sb -sl 100   -e DQMCollector &
0025 source_type=$1
0026 echo  $source_type
0027 if [ "$source_type" == "ped" ]; then
0028   cp sistrip_monitorelement_config_ped.xml sistrip_monitorelement_config.xml
0029   cp sistrip_qualitytest_config_ped.xml sistrip_qualitytest_config.xml
0030   export PRODUCER_PATH=${CMSSW_BASE}/src/DQM/SiStripMonitorPedestals/test
0031   cd  ${PRODUCER_PATH}
0032   export CORAL_AUTH_PATH=/afs/cern.ch/cms/DB/conddb
0033   xterm -T "DQM Producer(Source)"  -sb -sl 30000 -e ./PedsMonWithDB.csh &
0034 elif [ "$source_type" == "digi_cluster" ]; then
0035   cp sistrip_monitorelement_config_cluster_digi.xml sistrip_monitorelement_config.xml
0036   cp sistrip_qualitytest_config_cluster_digi.xml sistrip_qualitytest_config.xml
0037   export PRODUCER_PATH=${CMSSW_BASE}/src/DQM/SiStripMonitorCluster/test
0038   cd  ${PRODUCER_PATH}
0039   perl -pi.bak -e "s#localhost#$COLLECTORNAME#g" OnlyDQM.cfg 
0040   xterm -T "DQM Producer(Source)"  -sb -sl 30000 -e cmsRun OnlyDQM.cfg &
0041 fi
0042 export CONSUMER_PATH=${CMSSW_BASE}/src/DQM/SiStripMonitorClient/test
0043 cd ${CONSUMER_PATH}
0044 ./setup.sh $COLLECTORNAME
0045 ./startMonitorClient 
0046 
0047