From ad96c18861a590e839687e53dafc2dade2fa16e3 Mon Sep 17 00:00:00 2001 From: mmusich Date: Thu, 18 May 2023 11:06:44 +0200 Subject: [PATCH] fix SiPixelCompareTrackSoA after portable data-format migration --- .../plugins/SiPixelCompareTrackSoA.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DQM/SiPixelHeterogeneous/plugins/SiPixelCompareTrackSoA.cc b/DQM/SiPixelHeterogeneous/plugins/SiPixelCompareTrackSoA.cc index ecac8989df441..3f5e3c6f6bc21 100644 --- a/DQM/SiPixelHeterogeneous/plugins/SiPixelCompareTrackSoA.cc +++ b/DQM/SiPixelHeterogeneous/plugins/SiPixelCompareTrackSoA.cc @@ -221,17 +221,17 @@ void SiPixelCompareTrackSoA::analyze(const edm::Event& iEvent, const edm::Eve hCharge_->Fill(helper::charge(tsoaCPU.view(), it), helper::charge(tsoaGPU.view(), closestTkidx)); hnHits_->Fill(helper::nHits(tsoaCPU.view(), it), helper::nHits(tsoaGPU.view(), closestTkidx)); hnLayers_->Fill(tsoaCPU.view()[it].nLayers(), tsoaGPU.view()[closestTkidx].nLayers()); - hpt_->Fill(tsoaCPU.view()[it].pt(), tsoaGPU.view()[closestTkidx].pt()); - hptLogLog_->Fill(tsoaCPU.view()[it].pt(), tsoaGPU.view()[closestTkidx].pt()); + hpt_->Fill(ptCPU, tsoaGPU.view()[closestTkidx].pt()); + hptLogLog_->Fill(ptCPU, tsoaGPU.view()[closestTkidx].pt()); heta_->Fill(etaCPU, tsoaGPU.view()[closestTkidx].eta()); - hphi_->Fill(etaCPU, helper::phi(tsoaGPU.view(), closestTkidx)); + hphi_->Fill(phiCPU, helper::phi(tsoaGPU.view(), closestTkidx)); hz_->Fill(zipCPU, helper::zip(tsoaGPU.view(), closestTkidx)); htip_->Fill(tipCPU, helper::tip(tsoaGPU.view(), closestTkidx)); - hptdiffMatched_->Fill(tsoaCPU.view()[it].pt() - tsoaGPU.view()[closestTkidx].pt()); + hptdiffMatched_->Fill(ptCPU - tsoaGPU.view()[closestTkidx].pt()); hCurvdiffMatched_->Fill((helper::charge(tsoaCPU.view(), it) / tsoaCPU.view()[it].pt()) - (helper::charge(tsoaGPU.view(), closestTkidx) / tsoaGPU.view()[closestTkidx].pt())); hetadiffMatched_->Fill(etaCPU - tsoaGPU.view()[closestTkidx].eta()); - hphidiffMatched_->Fill(reco::deltaPhi(etaCPU, helper::phi(tsoaGPU.view(), closestTkidx))); + hphidiffMatched_->Fill(reco::deltaPhi(phiCPU, helper::phi(tsoaGPU.view(), closestTkidx))); hzdiffMatched_->Fill(zipCPU - helper::zip(tsoaGPU.view(), closestTkidx)); htipdiffMatched_->Fill(tipCPU - helper::tip(tsoaGPU.view(), closestTkidx)); hpt_eta_tkAllCPUMatched_->Fill(etaCPU, tsoaCPU.view()[it].pt()); //matched to gpu