Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
patch-control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carmelo Pellegrino
patch-control
Commits
0fe82e3f
Commit
0fe82e3f
authored
9 years ago
by
Carmelo Pellegrino
Browse files
Options
Downloads
Patches
Plain Diff
set the detector id into the start event
parent
35c00005
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
daq.sh
+9
-8
9 additions, 8 deletions
daq.sh
with
9 additions
and
8 deletions
daq.sh
+
9
−
8
View file @
0fe82e3f
...
@@ -7,18 +7,19 @@
...
@@ -7,18 +7,19 @@
# Author: Carmelo Pellegrino <carmelo.pellegrino@bo.infn.it>
# Author: Carmelo Pellegrino <carmelo.pellegrino@bo.infn.it>
#
#
if
[
$#
-ne
6
]
;
then
if
[
$#
-ne
7
]
;
then
echo
"ERROR:"
echo
"ERROR:"
echo
"Syntax:
$0
<run_number> <run_start_time> <run_duration_in_sec> <ip of the DAQ server> <username> <writetimeslices>"
echo
"Syntax:
$0
<run_number>
<detector_id>
<run_start_time> <run_duration_in_sec> <ip of the DAQ server> <username> <writetimeslices>"
exit
-1
exit
-1
fi
fi
RUN_NUMBER
=
$1
RUN_NUMBER
=
$1
RUN_START_TIME
=
$2
DETECTOR_ID
=
$2
RUN_DURATION
=
$3
RUN_START_TIME
=
$3
DAQ_SERVER
=
$4
RUN_DURATION
=
$4
DAQ_USER
=
$5
DAQ_SERVER
=
$5
WRITE_TIMESLICES
=
$6
DAQ_USER
=
$6
WRITE_TIMESLICES
=
$7
SERVER
=
${
DAQ_SERVER
}
# JLigier for StateMachine
SERVER
=
${
DAQ_SERVER
}
# JLigier for StateMachine
LOGGER
=
${
DAQ_SERVER
}
# JLigier for logging
LOGGER
=
${
DAQ_SERVER
}
# JLigier for logging
...
@@ -101,7 +102,7 @@ event ev_configure {
...
@@ -101,7 +102,7 @@ event ev_configure {
RC_DWRT path=
$DIR
; update_s=10; logger_s=5;
RC_DWRT path=
$DIR
; update_s=10; logger_s=5;
}
}
event ev_start { RC_CMD
${
RUN_NUMBER
}
}
event ev_start { RC_CMD
${
RUN_NUMBER
}
${
DETECTOR_ID
}
}
sleep
${
RUN_DURATION
}
sleep
${
RUN_DURATION
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment