Skip to content

Conversation

idkakorin
Copy link
Contributor

@idkakorin idkakorin commented Feb 8, 2025

All current work.

Copy link
Member

@nusense nusense left a comment

Choose a reason for hiding this comment

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

Just some comments about the changes to GHepParticle polarization representation

TLorentzVector * fX4; ///< position 4-vector (in the target nucleus coordinate system / x,y,z in fm / t from the moment of the primary interaction in ys(yocto second = 10^-24 s)
double fPolzTheta; ///< polar polarization angle (rad)
double fPolzPhi; ///< azimuthal polarization angle (rad)
TVector3 fPolarization; ///< polarization vector of final lepton
Copy link
Member

Choose a reason for hiding this comment

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

This change in the representation of the polarization would make files incompatible across GENIE versions. This might or might not be a problem, and possibly can be mitigated using a ROOT I/O rule for converting from one representation to the other, but it needs consideration.

A less intrusive, but less satisfying, alternative might be to add a magnitude data member.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

While adding a magnitude member might seem like a less intrusive modification, does introducing an additional double really create fewer compatibility issues than replacing the existing members with a TVector3? Either way, older versions would lack the new parameter, leading to incompatibility. If backward compatibility is a major concern, perhaps a ROOT I/O rule could be explored to facilitate the transition smoothly.

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