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

[WIP] Replace the spin by a helicity property for the MCParticle #404

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tmadlener
Copy link
Contributor

BEGINRELEASENOTES

  • Replace the spin by helicity in MCParticle as the former is not usable without the full spin-density matrix whereas the latter is always well defined (or unset).
    • Defaults to 9 which is used to signify an unset value. Use hasHelicity to check whether the helicity is set

ENDRELEASENOTES

  • Schema evolution to make this a backwards compatible change, such that spin.z will end up in helicity as that seems to be the main way that spin has been populated in the past in LCIO.

The former is not safely interpretable without the full spin density
matrix from the generator, whereas helicity is always well defined.
::edm4hep::Vector3d momentum{}; ///< particle 3-momentum at the production vertex [GeV]
::edm4hep::Vector3d momentumAtEndpoint{}; ///< particle 3-momentum at the endpoint [GeV]
::edm4hep::Vector3f spin{}; ///< particle spin
Vector2i colorFlow{};
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this still include the colorFlow and Vector2ithat were removed earlier?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I think so, because the decisive factor is the schema version and for schema version 2, these were still there. But I am still debugging why this isn't work as expected yet. I have the feeling we are not tricking ROOT properly yet...

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