cmssw icon indicating copy to clipboard operation
cmssw copied to clipboard

Adding HepMC3 products to EDMProduct

Open SiewYan opened this issue 2 years ago • 29 comments

PR description:

This PR trying to address the EDM addition in #37187 , using advises from twiki [*]. The HepMC3 package adapted new strategy to manipulate event records of High Energy Physics Monte Carlo Event Generators (MCEGs) [**], notably:

  1. Particles and vertices are stored separately in an ordered graph structure; all custom iterators were removed.
  2. Extension on the I/O functionality of the library.

[*] https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCreatingNewProducts [**] https://iopscience.iop.org/article/10.1088/1742-6596/1525/1/012017/pdf

The HepMC3 new data format poses challenges on defining the corresponding EDMProduct definition.

This PR depicts partial implementation, due to some technical error:

Error: Class shared_ptr<HepMC3::GenParticle> has been selected but currently the support for its I/O is not yet available. Note that shared_ptr<HepMC3::GenParticle>, even if not selected, will be available for interpreted code.
Error: Class shared_ptr<HepMC3::GenVertex> has been selected but currently the support for its I/O is not yet available. Note that shared_ptr<HepMC3::GenVertex>, even if not selected, will be available for interpreted code.

I am looking for advice(s) on how to solve the error. @smuzaffar, @mkirsano

Note: class version will be done accordingly after a successful compilation with the amended version classes_def.xml.

Related Issue/PR:

  1. Issue #36662
  2. configure pythia8 to use hepmc3: #7677
  3. #37187
  4. #37689
  5. #37753

PR validation:

No validation yet, to be finalized as the PR evolve..

if this PR is a backport please specify the original PR and why you need to backport that PR:

NA

SiewYan avatar May 21 '22 10:05 SiewYan