Skip to content

fix missing cellID encoding error#93

Open
giovannimarchiori wants to merge 1 commit intokey4hep:mainfrom
giovannimarchiori:gmarchio-main-20260407-addencoding
Open

fix missing cellID encoding error#93
giovannimarchiori wants to merge 1 commit intokey4hep:mainfrom
giovannimarchiori:gmarchio-main-20260407-addencoding

Conversation

@giovannimarchiori
Copy link
Copy Markdown
Contributor

When trying to revive the FCC-hh digitisation scripts, I encountered an error when using the MergeLayers algorithm, related to the fact that its output cells, later used by other algorithms, lack a Cell ID encoding. This MR fixes that error
BEGINRELEASENOTES

  • declare cellID encoding of cells output by MergeLayers
    ENDRELEASENOTES

@giovannimarchiori
Copy link
Copy Markdown
Contributor Author

Tagging @BrieucF @scott-snyder

return StatusCode::FAILURE;
}
auto cellIDEncodingName = podio::collMetadataParamName(m_outHits.objKey(), edm4hep::labels::CellIDEncoding);
k4FWCore::putParameter(cellIDEncodingName, m_descriptor.fieldDescription(), this);
Copy link
Copy Markdown
Member

@jmcarcell jmcarcell Apr 7, 2026

Choose a reason for hiding this comment

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

Suggested change
k4FWCore::putParameter(cellIDEncodingName, m_descriptor.fieldDescription(), this);
k4FWCore::putCellIdEncoding(m_outHits.objKey(), m_descriptor.fieldDescription(), this);

This will be possible after key4hep/k4FWCore#391 is merged. I suggest waiting.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jmcarcell do you know when that MR will be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants