From d8e8f172109f0b78c07b0b50213ad1cb0295beb0 Mon Sep 17 00:00:00 2001
From: Carmelo Pellegrino <carmelo.pellegrino@gmail.com>
Date: Mon, 1 Jun 2015 13:57:55 +0200
Subject: [PATCH] New parameter added: it sets the number of timeslices to save
 over Timeout set to 1 second (this will improve responsiveness of the
 JDAQDriver) Typo correction

---
 daq.sh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/daq.sh b/daq.sh
index 6ebc8f9..ec455e7 100755
--- a/daq.sh
+++ b/daq.sh
@@ -2,14 +2,14 @@
 #
 # TriDAS launcher
 #
-# This script allow the launch the TriDAS processes on the machine
+# This script allows the launch the TriDAS processes on the machine
 #
 # Author: Carmelo Pellegrino <carmelo.pellegrino@bo.infn.it>
 #
 
-if [ $# -ne 5 ]; then
+if [ $# -ne 6 ]; then
   echo "ERROR:"
-  echo "Syntax: $0 <run_number> <run_start_time> <run_duration_in_sec> <ip of the DAQ server> <username>"
+  echo "Syntax: $0 <run_number> <run_start_time> <run_duration_in_sec> <ip of the DAQ server> <username> <writetimeslices>"
   exit -1
 fi
 
@@ -18,11 +18,12 @@ RUN_START_TIME=$2
 RUN_DURATION=$3
 DAQ_SERVER=$4
 DAQ_USER=$5
+WRITE_TIMESLICES=$6
 
 SERVER=${DAQ_SERVER} # JLigier for StateMachine
 LOGGER=${DAQ_SERVER} # JLigier for logging
 DEBUG=3          # 3 is highest
-TIMEOUT_S=20     # timeout arbitrarily set at 20 seconds
+TIMEOUT_S=1      # timeout arbitrarily set to 20 seconds
 
 NUMBER_OF_FRAMES=18 # 18 doms
 
@@ -58,7 +59,7 @@ detector               = %<${DETECTOR}>%;
 triggerParameters      = trigger3DMuon.enabled   = 1;
 triggerParameters      = trigger3DShower.enabled = 1;
 triggerParameters      = writeSummary            = 1;
-triggerParameters      = writeTimeslices         = 1;
+triggerParameters      = writeTimeslices         = ${WRITE_TIMESLICES};
 bufferSize             = 1073741824;
 EOF
 
-- 
GitLab