KaiHabermann / decayangle

https://kaihabermann.github.io/decayangle/
MIT License
1 stars 1 forks source link

[Test] No ordering applied #25

Closed mmikhasenko closed 6 months ago

mmikhasenko commented 6 months ago
topologies = [
    Topology(root, decay_topology=((1, 2), 3)),
    Topology(root, decay_topology=((3, 1), 2)), 
    Topology(root, decay_topology=((2, 3), 1)) 
]

assert topologies[0].daughters == (1, 2)
assert topologies[1].daughters == (3, 1)
assert topologies[2].daughters == (2, 3)

assert (1,2) in topologies[0].helicity_angles(momenta)
assert (3,1) in topologies[1].helicity_angles(momenta)
assert (2,3) in topologies[2].helicity_angles(momenta)

sorting is disabled by default

KaiHabermann commented 6 months ago

I made it a config thing. I still beliefe the ordering should be on by default. It is highighted quite clearly in the config now