-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathroc-config-args.yaml
More file actions
100 lines (100 loc) · 4.17 KB
/
roc-config-args.yaml
File metadata and controls
100 lines (100 loc) · 4.17 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: roc-config-args
control:
mode: basic
wants:
cpu: 0.2
memory: 256
defaults:
rocConfigLinks: "0"
rocConfigAllowRejection: "false"
rocConfigClock: "LOCAL"
rocConfigCruId: "0x0"
rocConfigCrocId: "0x0"
rocConfigDatapathMode: "PACKET"
rocConfigDownstreamData: "CTP"
rocConfigGbtMode: "GBT"
rocConfigGbtMux: "TTC"
rocConfigLoopback: "false"
rocConfigPonUpstream: "false"
rocConfigDynOffset: "false"
rocConfigOnuAddress: "0"
rocConfigForceConfig: "false"
rocConfigBypassFwCheck: "false"
rocConfigTriggerWindowSize: "1000"
rocConfigNoGBT: "false"
rocConfigUserLogic: "false"
rocConfigRunStats: "false"
rocConfigUserAndCommonLogic: "false"
rocConfigNoTfDetection: "false"
rocConfigTfLength: "256"
rocConfigSystemId: "0x0"
rocConfigFEEId: "0x0"
log_task_stdout: none
log_task_stderr: none
detector: TST
_module_cmdline: >-
source /etc/profile.d/modules.sh &&
MODULEPATH={{ modulepath }} module load ReadoutCard &&
for endpoint in {{ card_endpoints }};do
args=(--links {{ rocConfigLinks }}
{{ rocConfigAllowRejection == 'true' ? '--allow-rejection' : '' }}
--clock {{ rocConfigClock }}
--cru-id {{ rocConfigCruId }}
--crorc-id {{ rocConfigCrocId }}
--datapathmode {{ rocConfigDatapathMode }}
--downstreamdata {{ rocConfigDownstreamData }}
--gbtmode {{ rocConfigGbtMode }}
--gbtmux {{ rocConfigGbtMux }}
{{ rocConfigLoopback == 'true' ? '--loopback' : ''}}
{{ rocConfigPonUpstream == 'true' ? '--pon-upstream' : ''}}
{{ rocConfigDynOffset == 'true' ? '--dyn-offset' : '' }}
--onu-address {{ rocConfigOnuAddress }}
{{ rocConfigForceConfig == 'true' ? '--force-config' : ''}}
{{ rocConfigBypassFwCheck == 'true' ? '--bypass-fw-check' : ''}}
--trigger-window-size {{ rocConfigTriggerWindowSize }}
{{ rocConfigNoGBT == 'true' ? '--no-gbt' : ''}}
{{ rocConfigUserLogic == 'true' ? '--user-logic' : ''}}
{{ rocConfigRunStats == 'true' ? '--run-stats' : ''}}
{{ rocConfigUserAndCommonLogic == 'true' ? '--user-and-common-logic' : ''}}
{{ rocConfigNoTfDetection == 'true' ? '--no-tf-detection' : ''}}
--tf-length {{ rocConfigTfLength }}
--system-id {{ rocConfigSystemId }}
--fee-id {{ rocConfigFEEId }})
o2-roc-config --id={{ card }}:$endpoint ${args[@]} || exit 1;done
_plain_cmdline: >-
source /etc/profile.d/o2.sh &&
for endpoint in {{ card_endpoints }};do
args=(--links {{ rocConfigLinks }}
{{ rocConfigAllowRejection == 'true' ? '--allow-rejection' : '' }}
--clock {{ rocConfigClock }}
--cru-id {{ rocConfigCruId }}
--crorc-id {{ rocConfigCrocId }}
--datapathmode {{ rocConfigDatapathMode }}
--downstreamdata {{ rocConfigDownstreamData }}
--gbtmode {{ rocConfigGbtMode }}
--gbtmux {{ rocConfigGbtMux }}
{{ rocConfigLoopback == 'true' ? '--loopback' : ''}}
{{ rocConfigPonUpstream == 'true' ? '--pon-upstream' : ''}}
{{ rocConfigDynOffset == 'true' ? '--dyn-offset' : '' }}
--onu-address {{ rocConfigOnuAddress }}
{{ rocConfigForceConfig == 'true' ? '--force-config' : ''}}
{{ rocConfigBypassFwCheck == 'true' ? '--bypass-fw-check' : ''}}
--trigger-window-size {{ rocConfigTriggerWindowSize }}
{{ rocConfigNoGBT == 'true' ? '--no-gbt' : ''}}
{{ rocConfigUserLogic == 'true' ? '--user-logic' : ''}}
{{ rocConfigRunStats == 'true' ? '--run-stats' : ''}}
{{ rocConfigUserAndCommonLogic == 'true' ? '--user-and-common-logic' : ''}}
{{ rocConfigNoTfDetection == 'true' ? '--no-tf-detection' : ''}}
--tf-length {{ rocConfigTfLength }}
--system-id {{ rocConfigSystemId }}
--fee-id {{ rocConfigFEEId }})
o2-roc-config --id={{ card }}:$endpoint ${args[@]} || exit 1;done
command:
env:
- O2_INFOLOGGER_MODE={{ infologger_mode }}
- O2_DETECTOR={{ detector }}
- O2_PARTITION={{ environment_id }}
stdout: "{{ log_task_stdout }}"
stderr: "{{ log_task_stderr }}"
shell: true
value: "{{ len(modulepath)>0 ? _module_cmdline : _plain_cmdline }}"