Skip to content

Commit

Permalink
Merge pull request #41717 from mmusich/fixSiPixelCompareTrackSoA_post…
Browse files Browse the repository at this point in the history
…Migration_13_0_X

[13.0.X] fix `SiPixelCompareTrackSoA` after portable data-format migration
  • Loading branch information
cmsbuild authored May 20, 2023
2 parents 8499afb + ad96c18 commit 999e535
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions DQM/SiPixelHeterogeneous/plugins/SiPixelCompareTrackSoA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -221,17 +221,17 @@ void SiPixelCompareTrackSoA<T>::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
Expand Down

0 comments on commit 999e535

Please sign in to comment.