Skip to content

Commit 9edc749

Browse files
committed
Fixes in TPC-ITS matching + lost fixes discussed in PR5329
1 parent 48cce5e commit 9edc749

6 files changed

Lines changed: 5 additions & 25 deletions

File tree

DataFormats/Detectors/TPC/include/DataFormatsTPC/WorkflowHelper.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,6 @@ struct getWorkflowTPCInput_ret {
6262
};
6363
} // namespace internal
6464

65-
static auto getWorkflowTPCInputEmpryPtr()
66-
{
67-
/*
68-
In case the need of TPCInput is conditional, this will allow to define an empty unique_ptr to this complex structure outside
69-
of the "if" scope, i.e.
70-
auto inp = getWorkflowTPCInputEmpryPtr();
71-
if (want_TPCInput) {
72-
inp = getWorkflowTPCInput(...);
73-
consumer->setInp(inp);
74-
}
75-
*/
76-
std::unique_ptr<internal::getWorkflowTPCInput_ret> ptr;
77-
return ptr;
78-
}
79-
8065
static auto getWorkflowTPCInput(o2::framework::ProcessingContext& pc, int verbosity = 0, bool do_mcLabels = false, bool do_clusters = true, unsigned long tpcSectorMask = 0xFFFFFFFFF, bool do_digits = false)
8166
{
8267
auto retVal = std::make_unique<internal::getWorkflowTPCInput_ret>();

Detectors/GlobalTracking/src/MatchTPCITS.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ void MatchTPCITS::selectBestMatches()
418418
do {
419419
nValidated = 0;
420420
int ntpc = mTPCWork.size(), nremaining = 0;
421-
;
422421
for (int it = 0; it < ntpc; it++) {
423422
auto& tTPC = mTPCWork[it];
424423
if (isDisabledTPC(tTPC) || isValidatedTPC(tTPC)) {

Detectors/GlobalTrackingWorkflow/include/GlobalTrackingWorkflow/TPCITSMatchingSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class TPCITSMatchingDPL : public Task
4848
};
4949

5050
/// create a processor spec
51-
framework::DataProcessorSpec getTPCITSMatchingSpec(bool useFT0, bool calib, bool useMC, const std::vector<int>& tpcClusLanes);
51+
framework::DataProcessorSpec getTPCITSMatchingSpec(bool useFT0, bool calib, bool useMC);
5252

5353
} // namespace globaltracking
5454
} // namespace o2

Detectors/GlobalTrackingWorkflow/src/MatchTPCITSWorkflow.cxx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,12 @@ framework::WorkflowSpec getMatchTPCITSWorkflow(bool useFT0, bool useMC, bool dis
3232
{
3333
framework::WorkflowSpec specs;
3434

35-
bool passFullITSClusters = false; // temporarily pass full clusters,
36-
bool passCompITSClusters = true; // eventually only compact of recpoints will be passed
37-
bool passITSClusPatterns = true;
38-
3935
std::vector<int> tpcClusSectors = o2::RangeTokenizer::tokenize<int>("0-35");
4036
std::vector<int> tpcClusLanes = tpcClusSectors;
4137

4238
if (!disableRootInp) {
4339
specs.emplace_back(o2::its::getITSTrackReaderSpec(useMC));
44-
specs.emplace_back(o2::itsmft::getITSClusterReaderSpec(useMC, passITSClusPatterns));
40+
specs.emplace_back(o2::itsmft::getITSClusterReaderSpec(useMC, true));
4541
specs.emplace_back(o2::tpc::getTPCTrackReaderSpec(useMC));
4642
specs.emplace_back(o2::tpc::getPublisherSpec(o2::tpc::PublisherConf{
4743
"tpc-native-cluster-reader",
@@ -61,7 +57,7 @@ framework::WorkflowSpec getMatchTPCITSWorkflow(bool useFT0, bool useMC, bool dis
6157
}
6258
}
6359

64-
specs.emplace_back(o2::globaltracking::getTPCITSMatchingSpec(useFT0, calib, useMC, tpcClusLanes));
60+
specs.emplace_back(o2::globaltracking::getTPCITSMatchingSpec(useFT0, calib, useMC));
6561

6662
if (!disableRootOut) {
6763
specs.emplace_back(o2::globaltracking::getTrackWriterTPCITSSpec(useMC));

Detectors/GlobalTrackingWorkflow/src/TPCITSMatchingSpec.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void TPCITSMatchingDPL::endOfStream(EndOfStreamContext& ec)
190190
mTimer.CpuTime(), mTimer.RealTime(), mTimer.Counter() - 1);
191191
}
192192

193-
DataProcessorSpec getTPCITSMatchingSpec(bool useFT0, bool calib, bool useMC, const std::vector<int>& tpcClusLanes)
193+
DataProcessorSpec getTPCITSMatchingSpec(bool useFT0, bool calib, bool useMC)
194194
{
195195

196196
std::vector<InputSpec> inputs;

Detectors/GlobalTrackingWorkflow/tofworkflow/src/RecoWorkflowWithTPCSpec.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class TOFDPLRecoWorkflowWithTPCTask
9797
toflab = std::move(*toflabel);
9898
}
9999

100-
auto inputsTPCclusters = o2::tpc::getWorkflowTPCInputEmpryPtr();
100+
std::decay_t<decltype(o2::tpc::getWorkflowTPCInput(pc))> inputsTPCclusters;
101101
if (mDoTPCRefit) {
102102
mMatcher.setTPCTrackClusIdxInp(pc.inputs().get<gsl::span<o2::tpc::TPCClRefElem>>("trackTPCClRefs"));
103103
mMatcher.setTPCClustersSharingMap(pc.inputs().get<gsl::span<unsigned char>>("clusTPCshmap"));

0 commit comments

Comments
 (0)