Skip to content

Commit c4ed885

Browse files
committed
ITS3: propagating split dict to external code
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 4d5a07f commit c4ed885

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Detectors/GlobalTracking/src/MatchTPCITS.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,8 @@ bool MatchTPCITS::prepareITSData()
661661
auto pattID = clus.getPatternID();
662662
unsigned int npix;
663663
#ifdef ENABLE_UPGRADES
664-
if ((pattID == o2::itsmft::CompCluster::InvalidPatternID) || ((withITS3) ? mIT3Dict->isGroup(pattID) : mITSDict->isGroup(pattID))) { // braces guarantee evaluation order
664+
auto ib = o2::its3::constants::detID::isDetITS3(clus.getChipID());
665+
if ((pattID == o2::itsmft::CompCluster::InvalidPatternID) || ((withITS3) ? mIT3Dict->isGroup(pattID, ib) : mITSDict->isGroup(pattID))) { // braces guarantee evaluation order
665666
#else
666667
if (pattID == o2::itsmft::CompCluster::InvalidPatternID || mITSDict->isGroup(pattID)) {
667668
#endif
@@ -671,7 +672,7 @@ bool MatchTPCITS::prepareITSData()
671672
} else {
672673
#ifdef ENABLE_UPGRADES
673674
if (withITS3) {
674-
npix = mIT3Dict->getNpixels(pattID);
675+
npix = mIT3Dict->getNpixels(pattID, ib);
675676
} else {
676677
npix = mITSDict->getNpixels(pattID);
677678
}
@@ -1434,8 +1435,7 @@ void MatchTPCITS::refitWinners(pmr::vector<o2::dataformats::TrackTPCITS>& matche
14341435

14351436
#ifdef WITH_OPENMP
14361437
#pragma omp parallel for schedule(dynamic) num_threads(mNThreads) \
1437-
reduction(+ \
1438-
: nFailedRefit)
1438+
reduction(+ : nFailedRefit)
14391439
#endif
14401440
for (int ifit = 0; ifit < nToFit; ifit++) {
14411441
int iTPC = tpcToFit[ifit], iITS;

Detectors/Vertexing/StrangenessTracking/include/StrangenessTracking/StrangenessTracker.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,20 +279,20 @@ class StrangenessTracker
279279
for (unsigned int iClus{0}; iClus < ITSclus.size(); ++iClus) {
280280
auto& clus = ITSclus[iClus];
281281
auto pattID = clus.getPatternID();
282+
auto ib = o2::its3::constants::detID::isDetITS3(clus.getChipID());
282283
int npix;
283284
o2::itsmft::ClusterPattern patt;
284285

285-
if (pattID == o2::itsmft::CompCluster::InvalidPatternID || mdict->isGroup(pattID)) {
286+
if (pattID == o2::itsmft::CompCluster::InvalidPatternID || mdict->isGroup(pattID, ib)) {
286287
patt.acquirePattern(pattIt);
287288
npix = patt.getNPixels();
288289
} else {
289290

290-
npix = mdict->getNpixels(pattID);
291-
patt = mdict->getPattern(pattID);
291+
npix = mdict->getNpixels(pattID, ib);
292+
patt = mdict->getPattern(pattID, ib);
292293
}
293294
clusSizeVec[iClus] = npix;
294295
}
295-
// LOG(info) << " Patt Npixel: " << pattVec[0].getNPixels();
296296
}
297297
#endif
298298

0 commit comments

Comments
 (0)