Skip to content

Commit b3ec620

Browse files
noferinishahor02
authored andcommitted
complete TOF digit reader with DIAFREQ object (dummy) to be consisten with what provided by reco
1 parent 2da1d8b commit b3ec620

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Detectors/TOF/workflowIO/include/TOFWorkflowIO/DigitReaderSpec.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "TOFBase/Digit.h"
2222
#include "SimulationDataFormat/MCCompLabel.h"
2323
#include "SimulationDataFormat/MCTruthContainer.h"
24+
#include "DataFormatsTOF/Diagnostic.h"
2425

2526
using namespace o2::framework;
2627

@@ -46,6 +47,7 @@ class DigitReader : public Task
4647
std::vector<o2::tof::ReadoutWindowData> mRow, *mProw = &mRow;
4748
std::vector<o2::dataformats::MCTruthContainer<o2::MCCompLabel>> mLabels, *mPlabels = &mLabels;
4849
std::vector<uint8_t> mPatterns, *mPpatterns = &mPatterns;
50+
Diagnostic mDiagnostic;
4951
};
5052

5153
/// create a processor spec

Detectors/TOF/workflowIO/src/DigitReaderSpec.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ void DigitReader::run(ProcessingContext& pc)
6767
pc.outputs().snapshot(Output{o2::header::gDataOriginTOF, "DIGITS", 0, Lifetime::Timeframe}, mDigits);
6868
pc.outputs().snapshot(Output{o2::header::gDataOriginTOF, "READOUTWINDOW", 0, Lifetime::Timeframe}, mRow);
6969
pc.outputs().snapshot(Output{o2::header::gDataOriginTOF, "PATTERNS", 0, Lifetime::Timeframe}, mPatterns);
70+
pc.outputs().snapshot(Output{o2::header::gDataOriginTOF, "DIAFREQ", 0, Lifetime::Timeframe}, mDiagnostic);
7071
if (mUseMC) {
7172
pc.outputs().snapshot(Output{o2::header::gDataOriginTOF, "DIGITSMCTR", 0, Lifetime::Timeframe}, mLabels);
7273
}
@@ -94,6 +95,7 @@ DataProcessorSpec getDigitReaderSpec(bool useMC)
9495
std::vector<OutputSpec> outputs;
9596
outputs.emplace_back(o2::header::gDataOriginTOF, "DIGITS", 0, Lifetime::Timeframe);
9697
outputs.emplace_back(o2::header::gDataOriginTOF, "READOUTWINDOW", 0, Lifetime::Timeframe);
98+
outputs.emplace_back(o2::header::gDataOriginTOF, "DIAFREQ", 0, Lifetime::Timeframe);
9799
if (useMC) {
98100
outputs.emplace_back(o2::header::gDataOriginTOF, "DIGITSMCTR", 0, Lifetime::Timeframe);
99101
}

0 commit comments

Comments
 (0)