@@ -235,22 +235,34 @@ o2::framework::WorkflowSpec getWorkflow(bool propagateMC,
235235 " digitmc-branch-name" })());
236236 }
237237
238- if (isEnabled (OutputType::Cells) && inputType == InputType::Digits) {
239- using DigitOutputType = std::vector<o2::emcal::Cell>;
240- using TriggerOutputType = std::vector<o2::emcal::TriggerRecord>;
241- using MCLabelContainer = o2::dataformats::MCTruthContainer<o2::MCCompLabel>;
242- specs.push_back (makeWriterSpec (" emcal-cells-writer" ,
243- inputType == InputType::Cells ? " emc-filtered-cells.root" : " emccells.root" ,
244- " o2sim" ,
245- BranchDefinition<DigitOutputType>{o2::framework::InputSpec{" data" , " EMC" , " CELLS" , 0 },
246- " EMCCell" ,
247- " cell-branch-name" },
248- BranchDefinition<TriggerOutputType>{o2::framework::InputSpec{" trigger" , " EMC" , " CELLSTRGR" , 0 },
249- " EMCACellTRGR" ,
250- " celltrigger-branch-name" },
251- BranchDefinition<MCLabelContainer>{o2::framework::InputSpec{" mc" , " EMC" , " CELLSMCTR" , 0 },
252- " EMCCellMCTruth" ,
253- " cellmc-branch-name" })());
238+ if (isEnabled (OutputType::Cells) && !disableRootOutput) {
239+ if (inputType == InputType::Digits) {
240+ using DigitOutputType = std::vector<o2::emcal::Cell>;
241+ using TriggerOutputType = std::vector<o2::emcal::TriggerRecord>;
242+ using MCLabelContainer = o2::dataformats::MCTruthContainer<o2::MCCompLabel>;
243+ specs.push_back (makeWriterSpec (" emcal-cells-writer" , " emccells.root" , " o2sim" ,
244+ BranchDefinition<DigitOutputType>{o2::framework::InputSpec{" data" , " EMC" , " CELLS" , 0 },
245+ " EMCALCell" ,
246+ " cell-branch-name" },
247+ BranchDefinition<TriggerOutputType>{o2::framework::InputSpec{" trigger" , " EMC" , " CELLSTRGR" , 0 },
248+ " EMCALCellTRGR" ,
249+ " celltrigger-branch-name" },
250+ BranchDefinition<MCLabelContainer>{o2::framework::InputSpec{" mc" , " EMC" , " CELLSMCTR" , 0 },
251+ " EMCALCellMCTruth" ,
252+ " cellmc-branch-name" })());
253+ } else {
254+ using CellsDataType = std::vector<o2::emcal::Cell>;
255+ using TriggerRecordDataType = std::vector<o2::emcal::TriggerRecord>;
256+ specs.push_back (makeWriterSpec_CellsTR (" emcal-cells-writer" ,
257+ " emccells.root" ,
258+ " o2sim" ,
259+ BranchDefinition<CellsDataType>{o2::framework::InputSpec{" data" , " EMC" , " CELLS" , 0 },
260+ " EMCALCell" ,
261+ " cell-branch-name" },
262+ BranchDefinition<TriggerRecordDataType>{o2::framework::InputSpec{" trigger" , " EMC" , " CELLSTRGR" , 0 },
263+ " EMCALCellTRGR" ,
264+ " celltrigger-branch-name" })());
265+ }
254266 }
255267
256268 if (isEnabled (OutputType::Clusters)) {
0 commit comments