You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DATA/tools/epn/gen_topo_o2dpg.sh
+38-39Lines changed: 38 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,30 @@
1
1
#!/bin/bash
2
2
3
3
# Check settings coming from AliECS via env variables
4
-
if [ -z$GEN_TOPO_HASH ];thenecho\$GEN_TOPO_HASH missing;exit 1;fi# Flag whether source is a hash or a folder
5
-
if [ -z$GEN_TOPO_SOURCE ];thenecho\$GEN_TOPO_SOURCE missing;exit 1;fi# O2DPG repository source, either a commit hash or a path
6
-
if [ -z$GEN_TOPO_LIBRARY_FILE ];thenecho\$GEN_TOPO_LIBRARY_FILE missing;exit 1;fi# Topology description library file in the DATA path of the O2DPG repository
7
-
if [ -z$GEN_TOPO_WORKFLOW_NAME ];thenecho\$GEN_TOPO_WORKFLOW_NAME missing;exit 1;fi# Workflow name in library file
8
-
if [ -z${WORKFLOW_DETECTORS+x} ];thenecho\$WORKFLOW_DETECTORS missing;exit 1;fi# Comma-separated list of detectors to run processing for
9
-
if [ -z${WORKFLOW_DETECTORS_QC+x} ];thenecho\$WORKFLOW_DETECTORS_QC missing;exit 1;fi# Comma-separated list of detectors to run QC for
10
-
if [ -z${WORKFLOW_DETECTORS_CALIB+x} ];thenecho\$WORKFLOW_DETECTORS_CALIB missing;exit 1;fi# Comma-separated list of detectors to run calibration for
11
-
if [ -z${WORKFLOW_PARAMETERS+x} ];thenecho\$WORKFLOW_PARAMETERS missing;exit 1;fi# Additional parameters for workflow
12
-
if [ -z${RECO_NUM_NODES_OVERRIDE+x} ];thenecho\$RECO_NUM_NODES_OVERRIDE missing;exit 1;fi# Override number of nodes
13
-
if [ -z$DDMODE ] && [ -z$DDWORKFLOW ];thenecho Either \$DDMODE or \$DDWORKFLOW must be set;exit 1;fi# Select data distribution workflow
14
-
if [ -z"$MULTIPLICITY_FACTOR_RAWDECODERS" ];thenecho\$MULTIPLICITY_FACTOR_RAWDECODERS missing;exit 1;fi# Process multiplicity scaling parameter
15
-
if [ -z"$MULTIPLICITY_FACTOR_CTFENCODERS" ];thenecho\$MULTIPLICITY_FACTOR_CTFENCODERS missing;exit 1;fi# Process multiplicity scaling parameter
16
-
if [ -z"$MULTIPLICITY_FACTOR_REST" ];thenecho\$MULTIPLICITY_FACTOR_REST missing;exit 1;fi# Process multiplicity scaling parameter
4
+
if [[-z$GEN_TOPO_HASH]];thenecho\$GEN_TOPO_HASH missing;exit 1;fi# Flag whether source is a hash or a folder
5
+
if [[-z$GEN_TOPO_SOURCE]];thenecho\$GEN_TOPO_SOURCE missing;exit 1;fi# O2DPG repository source, either a commit hash or a path
6
+
if [[-z$GEN_TOPO_LIBRARY_FILE]];thenecho\$GEN_TOPO_LIBRARY_FILE missing;exit 1;fi# Topology description library file in the DATA path of the O2DPG repository
7
+
if [[-z$GEN_TOPO_WORKFLOW_NAME]];thenecho\$GEN_TOPO_WORKFLOW_NAME missing;exit 1;fi# Workflow name in library file
8
+
if [[-z${WORKFLOW_DETECTORS+x}]];thenecho\$WORKFLOW_DETECTORS missing;exit 1;fi# Comma-separated list of detectors to run processing for
9
+
if [[-z${WORKFLOW_DETECTORS_QC+x}]];thenecho\$WORKFLOW_DETECTORS_QC missing;exit 1;fi# Comma-separated list of detectors to run QC for
10
+
if [[-z${WORKFLOW_DETECTORS_CALIB+x}]];thenecho\$WORKFLOW_DETECTORS_CALIB missing;exit 1;fi# Comma-separated list of detectors to run calibration for
11
+
if [[-z${WORKFLOW_PARAMETERS+x}]];thenecho\$WORKFLOW_PARAMETERS missing;exit 1;fi# Additional parameters for workflow
12
+
if [[-z${RECO_NUM_NODES_OVERRIDE+x}]];thenecho\$RECO_NUM_NODES_OVERRIDE missing;exit 1;fi# Override number of nodes
13
+
if [[-z$DDMODE ] && [ -z$DDWORKFLOW]];thenecho Either \$DDMODE or \$DDWORKFLOW must be set;exit 1;fi# Select data distribution workflow
14
+
if [[-z"$MULTIPLICITY_FACTOR_RAWDECODERS"]];thenecho\$MULTIPLICITY_FACTOR_RAWDECODERS missing;exit 1;fi# Process multiplicity scaling parameter
15
+
if [[-z"$MULTIPLICITY_FACTOR_CTFENCODERS"]];thenecho\$MULTIPLICITY_FACTOR_CTFENCODERS missing;exit 1;fi# Process multiplicity scaling parameter
16
+
if [[-z"$MULTIPLICITY_FACTOR_REST"]];thenecho\$MULTIPLICITY_FACTOR_REST missing;exit 1;fi# Process multiplicity scaling parameter
17
17
18
18
# Check settings coming from the EPN
19
-
if [ -z"$FILEWORKDIR" ];thenecho\$FILEWORKDIR missing;exit 1;fi
20
-
if [ -z"$INRAWCHANNAME" ];thenecho\$INRAWCHANNAME missing;exit 1;fi
21
-
if [ -z"$CTF_DIR" ];thenecho\$CTF_DIR missing;exit 1;fi
22
-
if [ -z"$CTF_METAFILES_DIR" ];thenecho\$CTF_METAFILES_DIR missing;exit 1;fi
23
-
if [ -z"$GEN_TOPO_WORKDIR" ];thenecho\$GEN_TOPO_WORKDIR missing;exit 1;fi
24
-
if [ -z"$GEN_TOPO_STDERR_LOGGING" ];thenecho\$GEN_TOPO_STDERR_LOGGING missing;exit 1;fi
25
-
if [ -z"$IS_SIMULATED_DATA" ];thenecho\$IS_SIMULATED_DATA missing;exit 1;fi
26
-
if [ -z"$GEN_TOPO_ODC_EPN_TOPO_ARGS" ];thenecho\$GEN_TOPO_ODC_EPN_TOPO_ARGS missing;exit 1;fi
27
-
if [ -z"$GEN_TOPO_EPN_CCDB_SERVER" ];thenecho\$GEN_TOPO_EPN_CCDB_SERVER missing;exit 1;fi
19
+
if [[-z"$FILEWORKDIR"]];thenecho\$FILEWORKDIR missing;exit 1;fi
20
+
if [[-z"$INRAWCHANNAME"]];thenecho\$INRAWCHANNAME missing;exit 1;fi
21
+
if [[-z"$CTF_DIR"]];thenecho\$CTF_DIR missing;exit 1;fi
22
+
if [[-z"$CTF_METAFILES_DIR"]];thenecho\$CTF_METAFILES_DIR missing;exit 1;fi
23
+
if [[-z"$GEN_TOPO_WORKDIR"]];thenecho\$GEN_TOPO_WORKDIR missing;exit 1;fi
24
+
if [[-z"$GEN_TOPO_STDERR_LOGGING"]];thenecho\$GEN_TOPO_STDERR_LOGGING missing;exit 1;fi
25
+
if [[-z"$IS_SIMULATED_DATA"]];thenecho\$IS_SIMULATED_DATA missing;exit 1;fi
26
+
if [[-z"$GEN_TOPO_ODC_EPN_TOPO_ARGS"]];thenecho\$GEN_TOPO_ODC_EPN_TOPO_ARGS missing;exit 1;fi
27
+
if [[-z"$GEN_TOPO_EPN_CCDB_SERVER"]];thenecho\$GEN_TOPO_EPN_CCDB_SERVER missing;exit 1;fi
0 commit comments