Skip to content

Commit

Permalink
Move ITSAB check before mMapLabels validation
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 authored Mar 1, 2024
1 parent 000f6f7 commit 8455328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Detectors/GlobalTracking/src/MatchITSTPCQC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,9 @@ void MatchITSTPCQC::run(o2::framework::ProcessingContext& ctx)
for (int itrk = 0; itrk < static_cast<int>(mITSTPCTracks.size()); ++itrk) {
auto const& trk = mITSTPCTracks[itrk];
auto idxTrkTpc = trk.getRefTPC().getIndex();
if (trk.getRefITS().getSource() != GID::ITS) {
continue;
}
if (isTPCTrackSelectedEntry[idxTrkTpc] == true) {
auto lbl = mRecoCont.getTrackMCLabel({(unsigned int)(itrk), GID::Source::ITSTPC});
if (!lbl.isValid()) {
Expand Down Expand Up @@ -518,9 +521,6 @@ void MatchITSTPCQC::run(o2::framework::ProcessingContext& ctx)
if (i == matchType::TPC) {
trkDen = mTPCTracks[trk.getRefTPC()];
} else {
if (trk.getRefITS().getSource() != GID::ITS) {
continue;
}
trkDen = mITSTracks[trk.getRefITS()];
if (std::abs(trkDen.getEta()) > 0.9) {
// ITS track outside |eta | < 0.9, we don't fill pt, nor phi , nor phi vs pt histos
Expand Down

0 comments on commit 8455328

Please sign in to comment.