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
get_N() # USAGE: get_N [processor-name] [DETECTOR_NAME] [RAW|CTF|REST] [threads, to be used for process scaling. 0 = do not scale this one process] [optional name [FOO] of variable "$N_[FOO]" with default, default = 1]
172
+
{
173
+
local NAME_FACTOR="N_F_$3"
174
+
local NAME_DET="MULTIPLICITY_FACTOR_DETECTOR_$2"
175
+
local NAME_PROC="MULTIPLICITY_PROCESS_${1//-/_}"
176
+
local NAME_PROC_FACTOR="MULTIPLICITY_FACTOR_PROCESS_${1//-/_}"
177
+
local NAME_DEFAULT="N_${5:-}"
178
+
local MULT=${!NAME_PROC:-$((${!NAME_FACTOR}*${!NAME_DET:-1}*${!NAME_PROC_FACTOR:-1}*${!NAME_DEFAULT:-1}))}
Copy file name to clipboardExpand all lines: DATA/common/setenv.sh
+69-1Lines changed: 69 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ if [[ -z "${TFLOOP:-}" ]]; then export TFLOOP=0; fi #
64
64
if [[ -z"${NTIMEFRAMES:-}" ]];thenexport NTIMEFRAMES=-1;fi# max number of time frames to process, <=0 : unlimited
65
65
if [[ -z"${CTFDICT_NTF:-}" ]];thenexport CTFDICT_NTF=100;fi# auto-save CTF dictionary after each CTFDICT_NTF TFs (if > 0)
66
66
if [[ -z"${CTF_MAXDETEXT:-}" ]];thenexport CTF_MAXDETEXT=0;fi# extend CTF output dir.name by detectors names if their number does not exceed this
67
-
if [[ -z"${TFDELAY:-}" ]];thenexport TFDELAY=100;fi# Delay in seconds between publishing time frames
67
+
if [[ -z"${TFDELAY:-}" ]];thenexport TFDELAY=0;fi# Delay in seconds between publishing time frames
68
68
if [[ -z"${GPUTYPE:-}" ]];thenexport GPUTYPE=CPU;fi# GPU Tracking backend to use, can be CPU / CUDA / HIP / OCL / OCL2
69
69
if [[ -z"${DDSHMSIZE:-}" ]];thenexport DDSHMSIZE=$((8<<10));fi# Size of shared memory for DD Input
70
70
if [[ -z"${DDHDRSIZE:-}" ]];thenexport DDHDRSIZE=$((1<<10));fi# Size of shared memory for DD Input
@@ -133,6 +133,74 @@ if [[ -z "${MULTIPLICITY_FACTOR_REST:-}" ]]; then export MULTIPLICITY_FACTOR_RES
133
133
134
134
if [[ `uname`== Darwin ]];thenexport UDS_PREFIX=;elseexport UDS_PREFIX="@";fi
135
135
136
+
# Env variables required for workflow setup
137
+
if [[ $SYNCMODE== 1 ]];then
138
+
if [[ -z"${WORKFLOW_DETECTORS_MATCHING+x}" ]];thenexport WORKFLOW_DETECTORS_MATCHING="ITSTPC,ITSTPCTRD,ITSTPCTOF,ITSTPCTRDTOF,PRIMVTX";fi# Select matchings that are enabled in sync mode
139
+
else
140
+
if [[ -z"${WORKFLOW_DETECTORS_MATCHING+x}" ]];thenexport WORKFLOW_DETECTORS_MATCHING="ALL";fi# All matching / vertexing enabled in async mode
if [[ $nCTFsFilesInspected!=$((nCTFsFilesFailed + nCTFsFilesOK)) ]];then
16
16
echo"Something went wrong with parsing the log file: CTF files inspected ($nCTFsFilesInspected) is not the sum of those successfully processed ($nCTFsFilesOK) and those that failed ($nCTFsFilesFailed)"
17
-
else
18
-
whileread -r line;do
19
-
currentPVs=`echo $line| sed 's/^.*Found \([0-9]*\) PVs.*/\1/'`
20
-
PVs=$((PVs + currentPVs))
21
-
done<<(grep "Found"$1| grep "PVs")
22
17
fi
18
+
whileread -r line;do
19
+
currentPVs=`echo $line| sed 's/^.*Found \([0-9]*\) PVs.*/\1/'`
0 commit comments