Skip to content

Commit cff8511

Browse files
committed
Consistently use o2::emcal::MCLabel rather than o2::MCCompLabel
1 parent a00aeb4 commit cff8511

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Detectors/EMCAL/workflow/src/CellConverterSpec.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "DataFormatsEMCAL/EMCALBlockHeader.h"
1515
#include "EMCALWorkflow/CellConverterSpec.h"
1616
#include "Framework/ControlService.h"
17-
#include "SimulationDataFormat/MCCompLabel.h"
17+
#include "DataFormatsEMCAL/MCLabel.h"
1818
#include "SimulationDataFormat/MCTruthContainer.h"
1919

2020
using namespace o2::emcal::reco_workflow;
@@ -62,7 +62,7 @@ void CellConverterSpec::run(framework::ProcessingContext& ctx)
6262
if (mPropagateMC) {
6363
// copy mc truth container without modification
6464
// as indexing doesn't change
65-
auto truthcont = ctx.inputs().get<o2::dataformats::MCTruthContainer<o2::MCCompLabel>*>("digitsmctr");
65+
auto truthcont = ctx.inputs().get<o2::dataformats::MCTruthContainer<o2::emcal::MCLabel>*>("digitsmctr");
6666
ctx.outputs().snapshot(o2::framework::Output{"EMC", "CELLSMCTR", 0, o2::framework::Lifetime::Timeframe}, *truthcont);
6767
}
6868
}

Detectors/EMCAL/workflow/src/RecoWorkflow.cxx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "EMCALWorkflow/PublisherSpec.h"
2929
#include "EMCALWorkflow/RawToCellConverterSpec.h"
3030
#include "Framework/DataSpecUtils.h"
31-
#include "SimulationDataFormat/MCCompLabel.h"
31+
#include "DataFormatsEMCAL/MCLabel.h"
3232
#include "SimulationDataFormat/MCTruthContainer.h"
3333

3434
namespace o2
@@ -243,11 +243,12 @@ o2::framework::WorkflowSpec getWorkflow(bool propagateMC,
243243
std::move(CellsBranch),
244244
std::move(TriggerRecordBranch)));
245245
};
246-
246+
/*
247+
// RS getting input digits and outputing them under the same outputspec will create dependency loop when piping the workflows
247248
if (isEnabled(OutputType::Digits) && !disableRootOutput) {
248249
using DigitOutputType = std::vector<o2::emcal::Digit>;
249250
using TriggerOutputType = std::vector<o2::emcal::TriggerRecord>;
250-
using MCLabelContainer = o2::dataformats::MCTruthContainer<o2::MCCompLabel>;
251+
using MCLabelContainer = o2::dataformats::MCTruthContainer<o2::emcal::MCLabel>;
251252
specs.push_back(makeWriterSpec("emcal-digits-writer",
252253
inputType == InputType::Digits ? "emc-filtered-digits.root" : "emcdigits.root",
253254
"o2sim",
@@ -261,12 +262,12 @@ o2::framework::WorkflowSpec getWorkflow(bool propagateMC,
261262
"EMCDigitMCTruth",
262263
"digitmc-branch-name"})());
263264
}
264-
265+
*/
265266
if (isEnabled(OutputType::Cells) && !disableRootOutput) {
266267
if (inputType == InputType::Digits) {
267268
using DigitOutputType = std::vector<o2::emcal::Cell>;
268269
using TriggerOutputType = std::vector<o2::emcal::TriggerRecord>;
269-
using MCLabelContainer = o2::dataformats::MCTruthContainer<o2::MCCompLabel>;
270+
using MCLabelContainer = o2::dataformats::MCTruthContainer<o2::emcal::MCLabel>;
270271
specs.push_back(makeWriterSpec("emcal-cells-writer", "emccells.root", "o2sim",
271272
BranchDefinition<DigitOutputType>{o2::framework::InputSpec{"data", "EMC", "CELLS", 0},
272273
"EMCALCell",

0 commit comments

Comments
 (0)