key4hep / key4hep/k4GeneratorsConfig

Spin/Polarization per particle in HepMC

Open
#12 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Whizard running pol (DiFermion_Polarized, but turning off Beamstrahlung) results in the following hepmc output:
[WhizardPolarized.txt](https://github.com/key4hep/k4GeneratorsConfig/files/15065370/WhizardPolarized.txt)

From the description of HepMC I would have expected two attributes per polarized particle:
theta and phi, but from the file I see no information.

In the Whizard converter to HepMC the theta and phi attributes are filled here:
https://gitlab.tp.nt.uni-siegen.de/whizard/public/-/blob/master/src/hepmc/HepMC3Wrap.cpp?ref_type=heads#L383
but it's not in the output? Never called/filled?

Contributor guide

Open the contributing guide

Research direction

Start with the attached WhizardPolarized.txt output and the linked Whizard converter entry point, HepMC3Wrap.cpp around line 383. Trace whether the theta and phi attributes are reached and preserved in the HepMC output; done means the expected per-particle polarization information appears in the generated file.

Written by the indexing model from the issue text.

Assessment

Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.