|
23 | 23 | #include "Framework/DataProcessorSpec.h" |
24 | 24 | #include "ReconstructionDataFormats/StrangeTrack.h" |
25 | 25 | #include "CommonConstants/GeomConstants.h" |
| 26 | +#include "DataFormatsITSMFT/TrkClusRef.h" |
26 | 27 |
|
27 | 28 | #ifdef WITH_OPENMP |
28 | 29 | #include <omp.h> |
@@ -432,6 +433,7 @@ void SVertexer::buildT2V(const o2::globaltracking::RecoContainer& recoData) // a |
432 | 433 | auto vtxRefs = recoData.getPrimaryVertexMatchedTrackRefs(); // references from vertex to these track IDs |
433 | 434 | bool isTPCloaded = recoData.isTrackSourceLoaded(GIndex::TPC); |
434 | 435 | bool isITSloaded = recoData.isTrackSourceLoaded(GIndex::ITS); |
| 436 | + bool isITSTPCloaded = recoData.isTrackSourceLoaded(GIndex::ITSTPC); |
435 | 437 | if (isTPCloaded && !mSVParams->mExcludeTPCtracks) { |
436 | 438 | mTPCTracksArray = recoData.getTPCTracks(); |
437 | 439 | mTPCTrackClusIdx = recoData.getTPCTracksClusterRefs(); |
@@ -503,11 +505,17 @@ void SVertexer::buildT2V(const o2::globaltracking::RecoContainer& recoData) // a |
503 | 505 | // get Nclusters in the ITS if available |
504 | 506 | uint8_t nITSclu = -1; |
505 | 507 | auto itsGID = recoData.getITSContributorGID(tvid); |
506 | | - if (itsGID.getSource() == GIndex::ITS && isITSloaded) { |
507 | | - auto& itsTrack = recoData.getITSTrack(itsGID); |
508 | | - nITSclu = itsTrack.getNumberOfClusters(); |
| 508 | + if (itsGID.getSource() == GIndex::ITS) { |
| 509 | + if (isITSloaded) { |
| 510 | + auto& itsTrack = recoData.getITSTrack(itsGID); |
| 511 | + nITSclu = itsTrack.getNumberOfClusters(); |
| 512 | + } |
| 513 | + } else if (itsGID.getSource() == GIndex::ITSAB) { |
| 514 | + if (isITSTPCloaded) { |
| 515 | + auto& itsABTracklet = recoData.getITSABRef(itsGID); |
| 516 | + nITSclu = itsABTracklet.getNClusters(); |
| 517 | + } |
509 | 518 | } |
510 | | - |
511 | 519 | if (!acceptTrack(tvid, trc) && !heavyIonisingParticle) { |
512 | 520 | if (tvid.isAmbiguous()) { |
513 | 521 | rejmap[tvid] = true; |
|
0 commit comments