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

genParticle vertex coordinates always zero even for particles which should have some displacement #405

Open
donalhill opened this issue Sep 29, 2020 · 3 comments

Comments

@donalhill
Copy link

I have run a test where I filter genParticles to keep only D0 mesons according to genParticles.core.pdgId. I have plotted the genParticles.core.vertex.{x,y,z} values, and find them to be zero in all cases. Some of the D0's in my sample should be produced in the decays of B-hadrons, in other words produced at displaced vertices. Thus, there should be some distribution of the true vertex.{x,y,z} values.

The test is here:

https://github.com/donalrinho/fcc_python_tools/blob/master/examples/genParticles_vertex_test.ipynb

@vvolkl
Copy link
Member

vvolkl commented Sep 29, 2020

This is most likely just due to a flaw in the design of the data model - see HEP-FCC/fcc-edm#60
the vertex positions are most likely actually set in genVertices/genVertices.position.{x,y,z} -- could you check that?

(Since we are moving to the new event data model edm4hep as part of key4hep and backward compatibility is tricky, we won't fix that, even though it definitely confusing.)

@donalhill
Copy link
Author

Hi @vvolkl

Thanks for the input! The values in genVertices.position{x,y,z} are indeed non-zero. I haven't figured out how to apply a cut to genVertices using genParticles.core.pdgId, as they come from different arrays (the number of genParticles and genVertices isn't the same). But if edm4hep will have all of this info in one container, then it's not something to worry about.

@donalhill
Copy link
Author

donalhill commented Sep 29, 2020

How can I get the genVertex for a given genParticle? Is there an index perhaps that I can use? I am able to pair up the genParticles and genVertices, and then keep only the pairs with a D0 pdgId. But this leaves me with D0's paired with all of the vertices, rather than just their own vertices.

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

No branches or pull requests

2 participants