ROOTPWA-Maintainers / ROOTPWA

ROOTPWA is a toolkit for partial-wave analysis of multi-particle final states produced in high-energy particle reactions. It is used to determine hadron spectra from experimental data.
Other
8 stars 14 forks source link

Split 'nBodyPhaseSpaceGen' class #163

Closed suhlatwork closed 8 years ago

suhlatwork commented 8 years ago

Move those parts of nBodyPhaseSpaceGen that calculate weights and kinematic variables into a new class nBodyPhaseSpaceKinematics. Rename nBodyPhaseSpaceGen to nBodyPhaseSpaceGenerator, which now inherits from nBodyPhaseSpaceKinematics and still generates the intermediate two-body masses and decay angles. Usage of nBodyPhaseSpaceGen can simply be replaced by using nBodyPhaseSpaceGenerator.

This should allow to use use the calculation of weight and momenta more simply with other sources for intermediate masses and angles. This commit is the first part of an attempt to reduce the code duplication of #139.

legordian commented 8 years ago

Merged, thank you!