Skip to content

Commit 5d1f51b

Browse files
committed
Event display: Mask sources not processed by the event display
1 parent 2017ccf commit 5d1f51b

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void customize(std::vector<ConfigParamSpec>& workflowOptions)
5252

5353
WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
5454
{
55-
GID::mask_t alowedSources = GID::getSourcesMask("ITS,ITS-TPC,TPC-TRD,TPC-TOF,ITS-TPC-TRD,ITS-TPC-TOF");
55+
GID::mask_t allowedSources = GID::getSourcesMask("ITS,ITS-TPC,TPC-TRD,TPC-TOF,ITS-TPC-TRD,ITS-TPC-TOF");
5656

5757
// Update the (declared) parameters if changed from the command line
5858
o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues"));
@@ -62,7 +62,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
6262
auto disableRootOut = configcontext.options().get<bool>("disable-root-output");
6363
auto enableCasc = !configcontext.options().get<bool>("disable-cascade-finder");
6464

65-
GID::mask_t src = alowedSources & GID::getSourcesMask(configcontext.options().get<std::string>("vertexing-sources"));
65+
GID::mask_t src = allowedSources & GID::getSourcesMask(configcontext.options().get<std::string>("vertexing-sources"));
6666
GID::mask_t dummy, srcClus = GID::includesDet(DetID::TOF, src) ? GID::getSourceMask(GID::TOF) : dummy;
6767

6868
WorkflowSpec specs;

EventVisualisation/Workflow/src/O2DPLDisplay.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,11 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
174174
int numberOfFiles = cfgc.options().get<int>("number-of_files");
175175
int numberOfTracks = cfgc.options().get<int>("number-of_tracks");
176176

177-
GlobalTrackID::mask_t srcTrk = GlobalTrackID::getSourcesMask(cfgc.options().get<std::string>("display-tracks"));
178-
GlobalTrackID::mask_t srcCl = GlobalTrackID::getSourcesMask(cfgc.options().get<std::string>("display-clusters"));
177+
GID::mask_t allowedTracks = GID::getSourcesMask("ITS,TPC,MFT,MCH,ITS-TPC,ITS-TPC-TOF");
178+
GID::mask_t allowedClusters = GID::getSourcesMask("ITS,TPC,MFT,MCH");
179+
180+
GlobalTrackID::mask_t srcTrk = GlobalTrackID::getSourcesMask(cfgc.options().get<std::string>("display-tracks")) & allowedTracks;
181+
GlobalTrackID::mask_t srcCl = GlobalTrackID::getSourcesMask(cfgc.options().get<std::string>("display-clusters")) & allowedClusters;
179182
if (!srcTrk.any() && !srcCl.any()) {
180183
throw std::runtime_error("No input configured");
181184
}

0 commit comments

Comments
 (0)