|
13 | 13 |
|
14 | 14 | #include "IOTOFWorkflow/DigitWriterSpec.h" |
15 | 15 | #include "DPLUtils/MakeRootTreeWriterSpec.h" |
16 | | -#include "DataFormatsITSMFT/Digit.h" |
| 16 | +#include "DataFormatsIOTOF/Digit.h" |
17 | 17 | #include "DataFormatsITSMFT/GBTCalibData.h" |
18 | 18 | #include "Headers/DataHeader.h" |
19 | 19 | #include "DetectorsCommonDataFormats/DetID.h" |
@@ -45,7 +45,7 @@ DataProcessorSpec getDigitWriterSpec(bool mctruth, bool dec, bool calib, o2::hea |
45 | 45 | std::string detStrL = dec ? "o2_" : ""; // for decoded digits prepend by o2 |
46 | 46 | detStrL += detStr; |
47 | 47 | std::transform(detStrL.begin(), detStrL.end(), detStrL.begin(), ::tolower); |
48 | | - auto logger = [](std::vector<o2::itsmft::Digit> const& inDigits) { |
| 48 | + auto logger = [](std::vector<o2::iotof::Digit> const& inDigits) { |
49 | 49 | LOG(info) << "RECEIVED DIGITS SIZE " << inDigits.size(); |
50 | 50 | }; |
51 | 51 |
|
@@ -85,20 +85,21 @@ DataProcessorSpec getDigitWriterSpec(bool mctruth, bool dec, bool calib, o2::hea |
85 | 85 | MakeRootTreeWriterSpec::TreeAttributes{"o2sim", "Digits tree"}, |
86 | 86 | MakeRootTreeWriterSpec::CustomClose(finishWriting), |
87 | 87 | // in case of labels we first read them as std::vector<char> and process them correctly in the fillLabels hook |
88 | | - BranchDefinition<std::vector<char>>{InputSpec{"digitsMCTR", detOrig, "DIGITSMCTR", 0}, |
89 | | - (detStr + "DigitMCTruth").c_str(), |
90 | | - (mctruth ? 1 : 0), fillLabels}, |
91 | | - BranchDefinition<std::vector<itsmft::MC2ROFRecord>>{InputSpec{"digitsMC2ROF", detOrig, "DIGITSMC2ROF", 0}, |
92 | | - (detStr + "DigitMC2ROF").c_str(), |
93 | | - (mctruth ? 1 : 0)}, |
94 | | - BranchDefinition<std::vector<itsmft::Digit>>{InputSpec{"digits", detOrig, "DIGITS", 0}, |
| 88 | + //BranchDefinition<std::vector<char>>{InputSpec{"digitsMCTR", detOrig, "DIGITSMCTR", 0}, |
| 89 | + // (detStr + "DigitMCTruth").c_str(), |
| 90 | + // (mctruth ? 1 : 0), fillLabels}, |
| 91 | + //BranchDefinition<std::vector<itsmft::MC2ROFRecord>>{InputSpec{"digitsMC2ROF", detOrig, "DIGITSMC2ROF", 0}, |
| 92 | + // (detStr + "DigitMC2ROF").c_str(), |
| 93 | + // (mctruth ? 1 : 0)}, |
| 94 | + BranchDefinition<std::vector<iotof::Digit>>{InputSpec{"digits", detOrig, "DIGITS", 0}, |
95 | 95 | (detStr + "Digit").c_str(), |
96 | | - logger}, |
| 96 | + logger} //, |
97 | 97 | // BranchDefinition<std::vector<itsmft::GBTCalibData>>{InputSpec{"calib", detOrig, "GBTCALIB", 0}, |
98 | 98 | // (detStr + "Calib").c_str(), |
99 | 99 | // (calib ? 1 : 0)}, |
100 | | - BranchDefinition<std::vector<itsmft::ROFRecord>>{InputSpec{"digitsROF", detOrig, "DIGITSROF", 0}, |
101 | | - (detStr + "DigitROF").c_str()})(); |
| 100 | + //BranchDefinition<std::vector<itsmft::ROFRecord>>{InputSpec{"digitsROF", detOrig, "DIGITSROF", 0}, |
| 101 | + // (detStr + "DigitROF").c_str()} |
| 102 | + )(); |
102 | 103 | } |
103 | 104 |
|
104 | 105 | DataProcessorSpec getIOTOFDigitWriterSpec(bool mctruth, bool dec, bool calib) |
|
0 commit comments