Skip to content

Commit eab3a01

Browse files
committed
Temporary fix for MCTR problem
1 parent f6abaed commit eab3a01

7 files changed

Lines changed: 13 additions & 9 deletions

File tree

DataFormats/Detectors/Upgrades/ALICE3/FD3/src/DataFormatsFD3LinkDef.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#pragma link C++ class o2::fd3::Hit + ;
1919
#pragma link C++ class vector < o2::fd3::Hit> + ;
20+
#pragma link C++ class o2::fd3::MCLabel + ;
2021
#include "SimulationDataFormat/MCTruthContainer.h"
2122
#pragma link C++ class o2::dataformats::MCTruthContainer < o2::fd3::MCLabel> + ;
2223

Detectors/Upgrades/ALICE3/FD3/workflow/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# or submit itself to any jurisdiction.
1111

1212
o2_add_library(FD3Workflow
13-
SOURCES src/FD3DigitReaderSpec.cxx
13+
SOURCES src/DigitReaderSpec.cxx
1414
src/FD3DigitWriterSpec.cxx
1515
PUBLIC_LINK_LIBRARIES O2::DataFormatsFD3
1616
O2::DetectorsCommonDataFormats

Detectors/Upgrades/ALICE3/FD3/workflow/include/FD3Workflow/FD3DigitReaderSpec.h renamed to Detectors/Upgrades/ALICE3/FD3/workflow/include/FD3Workflow/DigitReaderSpec.h

File renamed without changes.

Detectors/Upgrades/ALICE3/FD3/workflow/src/FD3DigitReaderSpec.cxx renamed to Detectors/Upgrades/ALICE3/FD3/workflow/src/DigitReaderSpec.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "Framework/ConfigParamRegistry.h"
1717
#include "Framework/ControlService.h"
1818
#include "Framework/Logger.h"
19-
#include "FD3Workflow/FD3DigitReaderSpec.h"
19+
#include "FD3Workflow/DigitReaderSpec.h"
2020
#include "DataFormatsFD3/Digit.h"
2121
#include "DataFormatsFD3/ChannelData.h"
2222
#include "DataFormatsFD3/MCLabel.h"

Detectors/Upgrades/ALICE3/FD3/workflow/src/digits-reader-workflow.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "Framework/ControlService.h"
2020
#include "Framework/ConfigParamRegistry.h"
2121
#include "Framework/Task.h"
22-
#include "FD3Workflow/FD3DigitReaderSpec.h"
22+
#include "FD3Workflow/DigitReaderSpec.h"
2323
#include "DetectorsRaw/HBFUtilsInitializer.h"
2424
#include "CommonUtils/ConfigurableParam.h"
2525

Steer/DigitizerWorkflow/src/FD3DigitWriterSpec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ o2::framework::DataProcessorSpec getFD3DigitWriterSpec(bool mctruth = true)
4040
BranchDefinition<std::vector<o2::fd3::Digit>>{InputSpec{"fd3digitBCinput", "FD3", "DIGITSBC"}, "FD3DigitBC"},
4141
BranchDefinition<std::vector<o2::fd3::ChannelData>>{InputSpec{"fd3digitChinput", "FD3", "DIGITSCH"}, "FD3DigitCh"},
4242
BranchDefinition<std::vector<o2::fd3::DetTrigInput>>{InputSpec{"fd3digitTrinput", "FD3", "TRIGGERINPUT"}, "TRIGGERINPUT"},
43-
BranchDefinition<o2::dataformats::MCTruthContainer<o2::ft0::MCLabel>>{InputSpec{"FT0labelinput", "FT0", "DIGITSMCTR"}, "FT0DIGITSMCTR", mctruth ? 1 : 0},
44-
BranchDefinition<o2::dataformats::MCTruthContainer<o2::fd3::MCLabel>>{InputSpec{"fd3labelinput", "FD3", "DIGITLBL"}, "FD3DigitLabels", mctruth ? 1 : 0})();
43+
// BranchDefinition<o2::dataformats::MCTruthContainer<o2::fd3::MCLabel>>{InputSpec{"fd3labelinput", "FD3", "DIGITLBL"}, "FD3DigitLabels", mctruth ? 1 : 0})();
44+
BranchDefinition<o2::dataformats::MCTruthContainer<o2::fd3::MCLabel>>{InputSpec{"fd3labelinput", "FD3", "DIGITSMCTR"}, "FD3DigitLabels", mctruth ? 1 : 0})();
4545
}
4646

4747
} // namespace fd3

Steer/DigitizerWorkflow/src/FD3DigitizerSpec.cxx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,11 @@ class FD3DPLDigitizerTask : public o2::base::BaseDPLDigitizer
118118
pc.outputs().snapshot(Output{"FD3", "DIGITSBC", 0}, mDigitsBC);
119119
pc.outputs().snapshot(Output{"FD3", "DIGITSCH", 0}, mDigitsCh);
120120
pc.outputs().snapshot(Output{"FD3", "TRIGGERINPUT", 0}, mDigitsTrig);
121-
if (pc.outputs().isAllowed({"FD3", "DIGITLBL", 0})) {
122-
pc.outputs().snapshot(Output{"FD3", "DIGITLBL", 0}, mLabels);
121+
// if (pc.outputs().isAllowed({"FD3", "DIGITLBL", 0})) {
122+
// pc.outputs().snapshot(Output{"FD3", "DIGITLBL", 0}, mLabels);
123+
// }
124+
if (pc.outputs().isAllowed({"FD3", "DIGITSMCTR", 0})) {
125+
pc.outputs().snapshot(Output{"FD3", "DIGITSMCTR", 0}, mLabels);
123126
}
124127
LOG(info) << "FD3: Sending ROMode= " << mROMode << " to GRPUpdater";
125128
pc.outputs().snapshot(Output{"FD3", "ROMode", 0}, mROMode);
@@ -155,10 +158,10 @@ o2::framework::DataProcessorSpec getFD3DigitizerSpec(int channel, bool mctruth)
155158
outputs.emplace_back("FD3", "DIGITSCH", 0, Lifetime::Timeframe);
156159
outputs.emplace_back("FD3", "TRIGGERINPUT", 0, Lifetime::Timeframe);
157160
if (mctruth) {
158-
outputs.emplace_back("FD3", "DIGITLBL", 0, Lifetime::Timeframe);
161+
// outputs.emplace_back("FD3", "DIGITLBL", 0, Lifetime::Timeframe);
162+
outputs.emplace_back("FD3", "DIGITSMCTR", 0, Lifetime::Timeframe);
159163
}
160164
outputs.emplace_back("FD3", "ROMode", 0, Lifetime::Timeframe);
161-
outputs.emplace_back("FD3", "DIGITSMCTR", 0, Lifetime::Timeframe);
162165

163166
return DataProcessorSpec{
164167
"FD3Digitizer",

0 commit comments

Comments
 (0)