Skip to content

Commit dc60e35

Browse files
committed
By default process K0s only in the sync. svertexer
To rever to the full mode use define SECVTXK0ONLY=0
1 parent 64315ad commit dc60e35

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Detectors/Vertexing/include/DetectorsVertexing/SVertexHypothesis.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class SVertexHypothesis
6060

6161
bool check(float p2Pos, float p2Neg, float p2V0, float ptV0) const
6262
{ // check if given mass and pt is matching to hypothesis
63-
return check(calcMass(p2Pos, p2Neg, p2V0), ptV0);
63+
return mPars[SigmaM] > 0 && check(calcMass(p2Pos, p2Neg, p2V0), ptV0);
6464
}
6565
bool check(float mass, float pt) const
6666
{ // check if given mass and pt is matching to hypothesis
@@ -151,7 +151,7 @@ class SVertex3Hypothesis
151151

152152
bool check(float p2Pos, float p2Neg, float p2Bach, float p2Tot, float ptV0) const
153153
{ // check if given mass and pt is matching to hypothesis
154-
return check(calcMass(p2Pos, p2Neg, p2Bach, p2Tot), ptV0);
154+
return mPars[SigmaM] > 0 && check(calcMass(p2Pos, p2Neg, p2Bach, p2Tot), ptV0);
155155
}
156156

157157
bool check(float mass, float pt) const

prodtests/full-system-test/dpl-workflow.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ TPC_CORR_OPT=
9494
TPC_CORR_KEY=
9595
INTERACTION_TAG_CONFIG_KEY=
9696
EVE_OPT=" --jsons-folder $EDJSONS_DIR"
97+
: ${SECVTXK0ONLY:=}
9798
: ${EVE_CONFIG:=}
9899
: ${STRTRACKING:=}
99100
: ${ITSEXTRAERR:=}
@@ -591,7 +592,14 @@ has_detector_reco ITS && has_detector_gpu ITS TPC && [[ -z "$DISABLE_ROOT_OUTPUT
591592
has_detector_matching PRIMVTX && [[ ! -z "$VERTEXING_SOURCES" ]] && [[ $GLOBAL_READER_NEEDS_PV != 1 ]] && add_W o2-primary-vertexing-workflow "$DISABLE_MC $DISABLE_ROOT_INPUT $DISABLE_ROOT_OUTPUT $PVERTEX_CONFIG --pipeline $(get_N primary-vertexing MATCH REST 1 PRIMVTX),$(get_N pvertex-track-matching MATCH REST 1 PRIMVTXMATCH)" "${PVERTEXING_CONFIG_KEY};${INTERACTION_TAG_CONFIG_KEY};"
592593

593594
if [[ $BEAMTYPE != "cosmic" ]] && has_detectors_reco ITS && has_detector_matching SECVTX && [[ ! -z "$SVERTEXING_SOURCES" ]]; then
594-
[[ $GLOBAL_READER_NEEDS_SV != 1 ]] && add_W o2-secondary-vertexing-workflow "$DISABLE_MC $STRTRACKING $DISABLE_ROOT_INPUT $DISABLE_ROOT_OUTPUT $TPC_CORR_OPT --vertexing-sources $SVERTEXING_SOURCES --threads $SVERTEX_THREADS --pipeline $(get_N secondary-vertexing MATCH REST $SVERTEX_THREADS SECVTX)" "$TPC_CORR_KEY"
595+
: ${REDUCESV_OPT:=}
596+
: ${REDUCESV_CONF:=}
597+
if [[ $SYNCMODE == 1 ]] && [[ $SECVTXK0ONLY != 0 ]] ; then
598+
: ${STRTRACKING:=" --disable-strangeness-tracker "}
599+
: ${REDUCESV_OPT:=" --disable-cascade-finder --disable-3body-finder "}
600+
: ${REDUCESV_CONF:="svertexer.pidCutsPhoton[0]=-1;svertexer.pidCutsLambda[0]=-1;svertexer.pidCutsHTriton[0]=-1;svertexer.pidCutsHhydrog4[0]=-1;"}
601+
fi
602+
[[ $GLOBAL_READER_NEEDS_SV != 1 ]] && add_W o2-secondary-vertexing-workflow "$DISABLE_MC $STRTRACKING $REDUCESV_OPT $DISABLE_ROOT_INPUT $DISABLE_ROOT_OUTPUT $TPC_CORR_OPT --vertexing-sources $SVERTEXING_SOURCES --threads $SVERTEX_THREADS --pipeline $(get_N secondary-vertexing MATCH REST $SVERTEX_THREADS SECVTX)" "$TPC_CORR_KEY;$REDUCESV_CONF"
595603
SECTVTX_ON="1"
596604
else
597605
SECTVTX_ON="0"

0 commit comments

Comments
 (0)