Skip to content

Commit 304938e

Browse files
f3schshahor02
authored andcommitted
ITS3: propagating split dict to external
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent fad8881 commit 304938e

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
@@ -671,7 +671,8 @@ bool MatchTPCITS::prepareITSData()
671671
auto pattID = clus.getPatternID();
672672
unsigned int npix;
673673
#ifdef ENABLE_UPGRADES
674-
if ((pattID == o2::itsmft::CompCluster::InvalidPatternID) || ((withITS3) ? mIT3Dict->isGroup(pattID) : mITSDict->isGroup(pattID))) { // braces guarantee evaluation order
674+
auto ib = o2::its3::constants::detID::isDetITS3(clus.getChipID());
675+
if ((pattID == o2::itsmft::CompCluster::InvalidPatternID) || ((withITS3) ? mIT3Dict->isGroup(pattID, ib) : mITSDict->isGroup(pattID))) { // braces guarantee evaluation order
675676
#else
676677
if (pattID == o2::itsmft::CompCluster::InvalidPatternID || mITSDict->isGroup(pattID)) {
677678
#endif
@@ -681,7 +682,7 @@ bool MatchTPCITS::prepareITSData()
681682
} else {
682683
#ifdef ENABLE_UPGRADES
683684
if (withITS3) {
684-
npix = mIT3Dict->getNpixels(pattID);
685+
npix = mIT3Dict->getNpixels(pattID, ib);
685686
} else {
686687
npix = mITSDict->getNpixels(pattID);
687688
}
@@ -1444,8 +1445,7 @@ void MatchTPCITS::refitWinners(pmr::vector<o2::dataformats::TrackTPCITS>& matche
14441445

14451446
#ifdef WITH_OPENMP
14461447
#pragma omp parallel for schedule(dynamic) num_threads(mNThreads) \
1447-
reduction(+ \
1448-
: nFailedRefit)
1448+
reduction(+ : nFailedRefit)
14491449
#endif
14501450
for (int ifit = 0; ifit < nToFit; ifit++) {
14511451
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)