Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ecal Uncalibrated RecHit GPU format convertor to CPU format #361

Conversation

vkhristenko
Copy link

Added EDM Producer to convert from the GPU data format to CPU.

@vkhristenko
Copy link
Author

@amassiro

@fwyzard
Copy link

fwyzard commented Jun 26, 2019

remove unneeded comments

...I actually like comments...

@fwyzard fwyzard merged commit f340840 into cms-patatrack:CMSSW_10_6_X_Patatrack Jun 26, 2019
@fwyzard
Copy link

fwyzard commented Jun 26, 2019

As expected, comparing the GPU results in SoA format with the same results converted to legacy format yields identical results.

@vkhristenko vkhristenko deleted the ecal_patatrack_convplugin branch June 26, 2019 07:16
, recHitsLabelCPUEE_{ps.getParameter<std::string>("recHitsLabelCPUEE")}
{
produces<EBUncalibratedRecHitCollection>(recHitsLabelCPUEB_);
produces<EEUncalibratedRecHitCollection>(recHitsLabelCPUEE_);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EDPutTokens would allow avoiding string members.

{
edm::Handle<ecal::SoAUncalibratedRecHitCollection> hRecHitsGPUEB, hRecHitsGPUEE;
event.getByToken(recHitsGPUEB_, hRecHitsGPUEB);
event.getByToken(recHitsGPUEE_, hRecHitsGPUEE);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The handles can be avoided with

auto const& recHitsGPUEB = event.get(recHitsGPUEB_);
auto const& recHitsGPUEE = event.get(recHitsGPUEE_);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ECAL ECAL-related developments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants