forked from eudaq/eudaq
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSTARTRUN_all.sh
executable file
·80 lines (59 loc) · 3.9 KB
/
STARTRUN_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/bash
if [ -f KILLRUN.local ]
then
sh KILLRUN.local
else
sh KILLRUN.sh
fi
export RCPORT=44000
export HOSTIP=192.168.222.1
export HOSTNAME=192.168.222.1
dt=`date +"%y_%b_%d_%Hh%Mm"`
echo $dt
NEWRUNNUM=$((RUNNUM+1))
echo 'Last Run number: ' $RUNNUM 'New Run number:' $NEWRUNNUM
################# Run control ###################
./bin/euRun -n RunControl -a tcp://${RCPORT} &
sleep 5
################# Log collector #################
./bin/euCliLogger -r tcp://${HOSTIP}:${RCPORT} -a tcp://44002 &
################# Data collector #################
xterm -r -sb -sl 100000 -T "EventnumberSyncData collector" -e 'bin/euCliCollector -n EventnumberSyncDataCollector -t dc1 -r tcp://${HOSTIP}:${RCPORT}; -a tcp://45002; read' &
xterm -r -sb -sl 100000 -T "EventnumberSyncData collector" -e 'bin/euCliCollector -n EventnumberSyncDataCollector -t dc2 -r tcp://${HOSTIP}:${RCPORT} -a tcp://45001; read' &
#AHCAL onlinemonitoring
xterm -r -sb -sl 100000 -T "directsave data collector" -e 'bin/euCliCollector -n DirectSaveDataCollector -t dc3 -r tcp://${HOSTIP}:${RCPORT}; read' &
##AHCAL slcio writer
xterm -r -sb -sl 100000 -T "directsave data collector" -e 'bin/euCliCollector -n DirectSaveDataCollector -t dc4 -r tcp://${HOSTIP}:${RCPORT}; read' &
################# Producer #################
#gnome-terminal --geometry=80x600-280-900 -t "CMS HGCal Producer" -e "bash -c \"source ../setup_eudaq_cmshgcal.sh; ./HGCalProducer -r tcp://$HOSTIP:$RCPORT\" " &
#xterm -r -sb -sl 100000 -geometry 160x30 -T "Ex0-Producer" -e 'bin/euCliProducer -n Ex0Producer -t exo -r tcp://$HOSTIP:$RCPORT |tee -a logs/ex0.log ; read'&
xterm -r -sb -sl 100000 -geometry 160x30 -T "CMS-HGCAL0" -e 'bin/euCliProducer -n HGCalProducer -t cms-hgcal0 -r tcp://$HOSTIP:$RCPORT '&
nohup ./bin/euCliProducer -n HGCalProducer -t cms-hgcal1 -r tcp://$HOSTIP:$RCPORT&
nohup ./bin/euCliProducer -n HGCalProducer -t cms-hgcal2 -r tcp://$HOSTIP:$RCPORT&
nohup ./bin/euCliProducer -n HGCalProducer -t cms-hgcal3 -r tcp://$HOSTIP:$RCPORT&
nohup ./bin/euCliProducer -n HGCalProducer -t cms-hgcal4 -r tcp://$HOSTIP:$RCPORT&
nohup ./bin/euCliProducer -n HGCalProducer -t cms-hgcal5 -r tcp://$HOSTIP:$RCPORT&
nohup ./bin/euCliProducer -n HGCalProducer -t cms-hgcal6 -r tcp://$HOSTIP:$RCPORT&
################## AHCAL Producer #################
xterm -r -sb -sl 100000 -geometry 160x30 -T "AHCAL1" -e 'bin/euCliProducer -n AHCALProducer -t AHCAL1 -r tcp://$HOSTIP:$RCPORT | tee -a logs/AHCALProducer_${dt}.log'&
############## VME Producers on pcminn03 #####################
printf '\033[22;33m\t killing all EUDAQ processes on pcminn03 \033[0m \n'
ssh -Y -T wc "/home/cmsdaq/DAQ/eudaq_v2/KILLRUN.local" &
sleep 3
printf '\033[22;33m\t Starting the DWC Producer on pcminn03 \033[0m \n'
flog="logs/DWC_Producer_$dt.log"
nohup ssh -Y -T wc "/home/cmsdaq/DAQ/eudaq_v2/bin/euCliProducer -n CMSHGCal_DWC_Producer -t cms-hgcal-dwc -r tcp://${HOSTIP}:${RCPORT};" > $flog 2>&1 &
sleep 2
printf '\033[22;33m\t Starting the Digitizer Producer on pcminn03 \033[0m \n'
flog="logs/Digitizer_Producer_$dt.log"
nohup ssh -Y -T wc "/home/cmsdaq/DAQ/eudaq_v2/bin/euCliProducer -n CMSHGCal_MCP_Producer -t cms-hgcal-mcp -r tcp://${HOSTIP}:${RCPORT}" > $flog 2>&1 &
################## OnlineMonitor ##################
printf '\033[22;33m\t HGC Online Monitor \033[0m \n'
flog="./logs/Run${NEWRUNNUM}_HgcOnlineMon_$dt.log"
config_file="./user/cmshgcal/conf/onlinemon.conf"
nohup ./bin/CMSHGCalMonitor --monitor_name CMSHGCalMonitor --config_file $config_file --reduce 1 --update 1000 --reset -r tcp://$HOSTIP:$RCPORT --root > $flog 2>&1 &
printf "The logs from the Online Monitor are in $flog file. \n"
printf '\033[22;33m\t Standard (Ahcal) Online Monitor \033[0m \n'
flog="./logs/Run${NEWRUNNUM}_StdOnlineMon_$dt.log"
nohup ./bin/StdEventMonitor -c ahcalOnlineMonitor.conf --monitor_name StdEventMonitor --reset -r tcp://$HOSTIP:$RCPORT > $flog 2>&1 &
printf "The logs from this Monitor are in $flog file. \n"