eic / epic-analysis

General (SI)DIS analysis framework for the EIC
GNU Lesser General Public License v3.0
3 stars 9 forks source link

Added matched true track kinematics to reconstructed HFS particles to HFSTree #281

Closed cpecar closed 1 year ago

cpecar commented 1 year ago

Briefly, what does this PR introduce?

For ease of SIDIS kinematic reconstruction studies, added the matched true track momentum to the output of HFS tree. This isn't the full true hadronic final state, just the true momenta of reconstructed tracks.

Also added a different function to fill HFSTree variables. Was previously included as part of Kinematics::AddToHFS

What kind of change does this PR introduce?

Please check if this PR fulfills the following:

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

No.

cpecar commented 1 year ago

Changed this to just adding the selected single hadron reconstructed and true four momentum for the selected final state (e.g. pi+ tracks), rather than all the true associations, which should make it more clear.

c-dilks commented 1 year ago

Ready for review?

cpecar commented 1 year ago

Yes, should be ready.

cpecar commented 1 year ago

Sorry, added one more commit to have an example macro if needed.