Skip to content

Commit b07dc8d

Browse files
Forcing the original TPC lane configuration for input type digitizer
The digitizer workflow is still using the original lane configuration which distributes data of multiple TPC sectors among subsequent time slices. This will be changed in the future when the work on staggereing is completed, but for the moment this needs to be forced in `tpc-reco-workflow`.
1 parent df53ba4 commit b07dc8d

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

Detectors/TPC/workflow/src/tpc-reco-workflow.cxx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,23 @@ using namespace o2::framework;
5757
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
5858
{
5959
auto tpcSectors = o2::RangeTokenizer::tokenize<int>(cfgc.options().get<std::string>("tpc-sectors"));
60-
// the lane configuration defines the subspecification ids to be distributes
61-
// among the lanes.
60+
// the lane configuration defines the subspecification ids to be distributed among the lanes.
61+
std::vector<int> laneConfiguration;
62+
auto nLanes = cfgc.options().get<int>("tpc-lanes");
63+
auto inputType = cfgc.options().get<std::string>("input-type");
64+
if (inputType == "digitizer") {
65+
// the digitizer is using a different lane setup so we have to force this for the moment
66+
laneConfiguration.resize(nLanes);
67+
std::iota(laneConfiguration.begin(), laneConfiguration.end(), 0);
68+
} else {
69+
laneConfiguration = tpcSectors;
70+
}
71+
6272
return o2::TPC::RecoWorkflow::getWorkflow(tpcSectors, // sector configuration
63-
tpcSectors, // lane configuration
73+
laneConfiguration, // lane configuration
6474
not cfgc.options().get<bool>("disable-mc"), //
65-
cfgc.options().get<int>("tpc-lanes"), //
66-
cfgc.options().get<std::string>("input-type"), //
75+
nLanes, //
76+
inputType, //
6777
cfgc.options().get<std::string>("output-type") //
68-
);
78+
);
6979
}

0 commit comments

Comments
 (0)