Skip to content

Commit b33925b

Browse files
committed
GPU: ITS fix MC label output
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent cadc5fa commit b33925b

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Detectors/ITSMFT/ITS/workflow/src/RecoWorkflow.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ framework::WorkflowSpec getWorkflow(bool useMC,
6363
cfg.runITSTracking = true;
6464
cfg.itsTriggerType = useTrig;
6565
cfg.itsOverrBeamEst = overrideBeamPosition;
66+
cfg.processITSMC = useMC;
6667

6768
Inputs ggInputs;
6869
auto ggRequest = std::make_shared<o2::base::GRPGeomRequest>(false, true, false, true, true,

GPU/Workflow/include/GPUWorkflow/GPUWorkflowSpec.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class GPURecoWorkflowSpec : public o2::framework::Task
128128
int32_t lumiScaleType = 0; // 0=off, 1=CTP, 2=TPC scalers
129129
bool outputErrorQA = false;
130130
bool runITSTracking = false;
131+
bool processITSMC = false;
131132
bool itsOverrBeamEst = false;
132133
bool tpcTriggerHandling = false;
133134
};

GPU/Workflow/src/GPUWorkflowSpec.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ Inputs GPURecoWorkflowSpec::inputs()
11801180
if (mSpecConfig.itsOverrBeamEst) {
11811181
inputs.emplace_back("meanvtx", "GLO", "MEANVERTEX", 0, Lifetime::Condition, ccdbParamSpec("GLO/Calib/MeanVertex", {}, 1));
11821182
}
1183-
if (mSpecConfig.processMC) {
1183+
if (mSpecConfig.processITSMC) {
11841184
inputs.emplace_back("itsmclabels", "ITS", "CLUSTERSMCTR", 0, Lifetime::Timeframe);
11851185
inputs.emplace_back("ITSMC2ROframes", "ITS", "CLUSTERSMC2ROF", 0, Lifetime::Timeframe);
11861186
}
@@ -1254,8 +1254,9 @@ Outputs GPURecoWorkflowSpec::outputs()
12541254
outputSpecs.emplace_back(gDataOriginITS, "VERTICESROF", 0, Lifetime::Timeframe);
12551255
outputSpecs.emplace_back(gDataOriginITS, "IRFRAMES", 0, Lifetime::Timeframe);
12561256

1257-
if (mSpecConfig.processMC) {
1257+
if (mSpecConfig.processITSMC) {
12581258
outputSpecs.emplace_back(gDataOriginITS, "VERTICESMCTR", 0, Lifetime::Timeframe);
1259+
outputSpecs.emplace_back(gDataOriginITS, "VERTICESMCPUR", 0, Lifetime::Timeframe);
12591260
outputSpecs.emplace_back(gDataOriginITS, "TRACKSMCTR", 0, Lifetime::Timeframe);
12601261
outputSpecs.emplace_back(gDataOriginITS, "ITSTrackMC2ROF", 0, Lifetime::Timeframe);
12611262
}

GPU/Workflow/src/gpu-reco-workflow.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
179179
cfg.outputErrorQA = isEnabled(outputTypes, ioType::ErrorQA);
180180
cfg.outputSharedClusterMap = (cfg.outputCAClusters || cfg.caClusterer || isEnabled(inputTypes, ioType::Clusters)) && cfg.outputTracks && !isEnabled(outputTypes, ioType::NoSharedMap);
181181
cfg.processMC = doMC;
182+
cfg.processITSMC = doMC;
182183
cfg.sendClustersPerSector = isEnabled(outputTypes, ioType::SendClustersPerSector);
183184
cfg.askDISTSTF = !cfgc.options().get<bool>("ignore-dist-stf");
184185
cfg.readTRDtracklets = isEnabled(inputTypes, ioType::TRDTracklets);

0 commit comments

Comments
 (0)