From 9bd6d41ff6894b5df1b48bdfaacde2f631b52d8e Mon Sep 17 00:00:00 2001 From: shahoian Date: Wed, 2 Jun 2021 00:15:46 +0200 Subject: [PATCH] Fix in requesting FT0 data for PVertex validation --- .../src/primary-vertexing-workflow.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Detectors/GlobalTrackingWorkflow/src/primary-vertexing-workflow.cxx b/Detectors/GlobalTrackingWorkflow/src/primary-vertexing-workflow.cxx index ccf85691b521d..7d4f427e3c10a 100644 --- a/Detectors/GlobalTrackingWorkflow/src/primary-vertexing-workflow.cxx +++ b/Detectors/GlobalTrackingWorkflow/src/primary-vertexing-workflow.cxx @@ -56,8 +56,8 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext) { WorkflowSpec specs; - GID::mask_t alowedSourcesPV = GID::getSourcesMask("ITS,ITS-TPC,ITS-TPC-TOF"); - GID::mask_t alowedSourcesVT = GID::getSourcesMask("ITS,MFT,ITS-TPC,ITS-TPC-TOF,TPC,TPC-TOF"); + GID::mask_t allowedSourcesPV = GID::getSourcesMask("ITS,ITS-TPC,ITS-TPC-TOF"); + GID::mask_t allowedSourcesVT = GID::getSourcesMask("ITS,MFT,ITS-TPC,ITS-TPC-TOF,TPC,TPC-TOF"); // Update the (declared) parameters if changed from the command line o2::conf::ConfigurableParam::updateFromString(configcontext.options().get("configKeyValues")); @@ -69,8 +69,11 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext) auto disableRootOut = configcontext.options().get("disable-root-output"); auto validateWithFT0 = configcontext.options().get("validate-with-ft0"); - GID::mask_t srcPV = alowedSourcesPV & GID::getSourcesMask(configcontext.options().get("vertexing-sources")); - GID::mask_t srcVT = alowedSourcesVT & GID::getSourcesMask(configcontext.options().get("vetex-track-matching-sources")); + GID::mask_t srcPV = allowedSourcesPV & GID::getSourcesMask(configcontext.options().get("vertexing-sources")); + GID::mask_t srcVT = allowedSourcesVT & GID::getSourcesMask(configcontext.options().get("vetex-track-matching-sources")); + if (validateWithFT0) { + srcPV |= GID::getSourceMask(GID::FT0); + } GID::mask_t srcComb = srcPV | srcVT; GID::mask_t dummy, srcClus = GID::includesDet(DetID::TOF, srcComb) ? GID::getSourceMask(GID::TOF) : dummy;