-
Notifications
You must be signed in to change notification settings - Fork 31
/
run_full_replay.sh
36 lines (28 loc) · 1.1 KB
/
run_full_replay.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
#!/bin/bash
runNum=$1
lastSeg=$2
firstSeg=0
maxEvt=-1
firstEvt=1
echo ":=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:="
echo "This script will run the scaler replay, skim replay, and segment replay."
date
echo "cdaql2 will be used for the scaler replay."
echo "cdaql2 will be used for the skim replay."
echo "cdaql3 will be used for the segement replays."
echo ":=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:="
scalerScript="SCRIPTS/NPS/SCALERS/replay_nps_scalers.C"
runScaler="hcana -l -b -q \"${script}(${runNum}, ${maxEvt}, ${firstEvt}, ${lastSeg}, ${firstSeg})\""
echo ":=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:="
echo ""
date
echo ""
echo "Running ${SPEC} analysis on the run ${runNum}:"
echo " -> SCRIPT: ${script}"
echo " -> RUN: ${runNum}"
echo " -> COMMAND: ${runHcana}"
echo ""
echo ":=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:="
sleep 2
eval ${runScaler}
sleep 2