Skip to content

Commit

Permalink
Fix in requesting FT0 data for PVertex validation
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Jun 2, 2021
1 parent 8d289de commit 9bd6d41
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string>("configKeyValues"));
Expand All @@ -69,8 +69,11 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
auto disableRootOut = configcontext.options().get<bool>("disable-root-output");
auto validateWithFT0 = configcontext.options().get<bool>("validate-with-ft0");

GID::mask_t srcPV = alowedSourcesPV & GID::getSourcesMask(configcontext.options().get<std::string>("vertexing-sources"));
GID::mask_t srcVT = alowedSourcesVT & GID::getSourcesMask(configcontext.options().get<std::string>("vetex-track-matching-sources"));
GID::mask_t srcPV = allowedSourcesPV & GID::getSourcesMask(configcontext.options().get<std::string>("vertexing-sources"));
GID::mask_t srcVT = allowedSourcesVT & GID::getSourcesMask(configcontext.options().get<std::string>("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;

Expand Down

0 comments on commit 9bd6d41

Please sign in to comment.