Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Trip Event Logger Config
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
MSK-SW
Low-Level Radio Frequency
Trip Event Logger
Trip Event Logger Config
Commits
04383b78
Commit
04383b78
authored
5 years ago
by
Nadeem Shehzad
Browse files
Options
Downloads
Patches
Plain Diff
settings complete.
parent
352f71b2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tripeventLogger/settings/XFEL.py
+25
-17
25 additions, 17 deletions
tripeventLogger/settings/XFEL.py
with
25 additions
and
17 deletions
tripeventLogger/settings/XFEL.py
+
25
−
17
View file @
04383b78
if
ACCELERATOR
==
"
XFEL
"
:
#if STATION != "VS" :
# RPC_NUMBER = 610493149
#else:
RPC_NUMBER
=
610493148
SECTION_NAME
=
""
#if STATION in map(str,range(2,27)):
if
STATION
==
"
2
"
:
SECTION_NAME
=
"
L1
"
elif
STATION
in
map
(
str
,
range
(
3
,
6
)):
SECTION_NAME
=
"
L2
"
elif
STATION
in
map
(
str
,
range
(
6
,
27
)):
SECTION_NAME
=
"
L3
"
def
GET_SECTION_NAME
(
Station
):
if
Station
==
"
2
"
:
return
"
L1
"
elif
Station
in
map
(
str
,
range
(
3
,
6
)):
return
"
L2
"
elif
Station
in
map
(
str
,
range
(
6
,
27
)):
return
"
L3
"
else
:
return
""
if
STATION
==
"
VS
"
:
RPC_NUMBER
=
610493149
CRATE_NAME
=
"
VS
"
#which one to make in case of VS??
TIMING_SDM
=
"
XFEL.RF/TIMER/LLA2M
"
else
:
RPC_NUMBER
=
610493148
CRATE_NAME
=
"
A
"
+
STATION
+
MASTER_OR_SLAVE
TIMING_SDM
=
"
XFEL.RF/TIMER/LL
"
+
CRATE_NAME
SECTION_NAME
=
GET_SECTION_NAME
(
STATION
)
NR_OF_MODULES
=
4
NR_OF_CAVITIES
=
8
CRATE_NAME
=
"
A
"
+
STATION
+
MASTER_OR_SLAVE
#HOSTNAME="xfelcpull"+CRATE_NAME.lower()
STATION_LOCATION_SUFFIX
=
"
A
"
+
STATION
if
STATION
!=
"
0
"
:
STATION_LOCATION_SUFFIX
=
STATION_LOCATION_SUFFIX
+
"
.
"
+
SECTION_NAME
SVR_LOCATION
=
HOSTNAME
.
upper
()
+
"
._SVR
"
TIMING_SDM
=
"
XFEL.RF/TIMER/LL
"
+
CRATE_NAME
#
WATCHDOG_ADDRESS=ACCELERATOR+".SYSTEM/"+HOSTNAME.upper()+".WATCH/SVR.LLRF_
DIAGNOSTIC
"
WATCHDOG_ADDRESS
=
ACCELERATOR
+
"
.SYSTEM/
"
+
HOSTNAME
.
upper
()
+
"
.WATCH/SVR.LLRF_
TRIPEVENT_LOGGER
"
CRYOMODULES
=
[
1
,
2
,
3
,
4
]
#As per Jan Timm only master controller is used.
...
...
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