Skip to content

Commit 9bd6d41

Browse files
committed
Fix in requesting FT0 data for PVertex validation
1 parent 8d289de commit 9bd6d41

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Detectors/GlobalTrackingWorkflow/src/primary-vertexing-workflow.cxx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
5656
{
5757
WorkflowSpec specs;
5858

59-
GID::mask_t alowedSourcesPV = GID::getSourcesMask("ITS,ITS-TPC,ITS-TPC-TOF");
60-
GID::mask_t alowedSourcesVT = GID::getSourcesMask("ITS,MFT,ITS-TPC,ITS-TPC-TOF,TPC,TPC-TOF");
59+
GID::mask_t allowedSourcesPV = GID::getSourcesMask("ITS,ITS-TPC,ITS-TPC-TOF");
60+
GID::mask_t allowedSourcesVT = GID::getSourcesMask("ITS,MFT,ITS-TPC,ITS-TPC-TOF,TPC,TPC-TOF");
6161

6262
// Update the (declared) parameters if changed from the command line
6363
o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues"));
@@ -69,8 +69,11 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
6969
auto disableRootOut = configcontext.options().get<bool>("disable-root-output");
7070
auto validateWithFT0 = configcontext.options().get<bool>("validate-with-ft0");
7171

72-
GID::mask_t srcPV = alowedSourcesPV & GID::getSourcesMask(configcontext.options().get<std::string>("vertexing-sources"));
73-
GID::mask_t srcVT = alowedSourcesVT & GID::getSourcesMask(configcontext.options().get<std::string>("vetex-track-matching-sources"));
72+
GID::mask_t srcPV = allowedSourcesPV & GID::getSourcesMask(configcontext.options().get<std::string>("vertexing-sources"));
73+
GID::mask_t srcVT = allowedSourcesVT & GID::getSourcesMask(configcontext.options().get<std::string>("vetex-track-matching-sources"));
74+
if (validateWithFT0) {
75+
srcPV |= GID::getSourceMask(GID::FT0);
76+
}
7477
GID::mask_t srcComb = srcPV | srcVT;
7578
GID::mask_t dummy, srcClus = GID::includesDet(DetID::TOF, srcComb) ? GID::getSourceMask(GID::TOF) : dummy;
7679

0 commit comments

Comments
 (0)