Weight classes
This merge request completes review and cleaning of
- DecayWeight
- BalamuthWeight
- BalamuthInterferenceWeight (renamed to BalamuthMultiWaveWeight)
For each class, the following has been done,
-
license text -
doc strings for class and methods -
unit tests
Additionally, the following improvements/changes have been made:
-
Added protected virtual method
CalculateWeightin DecayWeight, which is overwritten in the child classes. With this approach the application of the overall scaling factor can be handled entirely by DecayWeight. -
Renamed
BalamuthInterferenceWeighttoBalamuthMultiWaveWeight(to avoid confusion with intereference due to boson symmetrisation) and fixed a major bug in the coherent summation of amplitudes. -
Generalized
BalamuthMultiWaveWeightto be able to handle superposition of arbitrary number of partial waves and not just two. (I have retained the old constructor interface for instantiating with only two partial waves.) -
Added a second constructor in
BalamuthWeightto simplify the instantiation for 12C->3a decays. -
Added capacity to
Nucleusclass for keeping track of which excitation level the nucleus is currently in.