Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenBase/EvtCyclic3.cpp
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | Index EvtCyclic3::permute( Index i, Perm p ) | ||||
} | } | ||||
assert( 0 ); | assert( 0 ); | ||||
return A; | return A; | ||||
} | } | ||||
Perm EvtCyclic3::permutation( Index i1, Index i2, Index i3 ) | Perm EvtCyclic3::permutation( Index i1, Index i2, Index i3 ) | ||||
{ | { | ||||
assert( i1 != i2 && i2 != i3 && i3 != i1 ); | assert( i1 != i2 && i2 != i3 && i3 != i1 ); | ||||
_unused( i3 ); | UNUSED( i3 ); | ||||
if ( i1 == A ) | if ( i1 == A ) | ||||
return ( i2 == B ) ? ABC : ACB; | return ( i2 == B ) ? ABC : ACB; | ||||
if ( i1 == B ) | if ( i1 == B ) | ||||
return ( i2 == C ) ? BCA : BAC; | return ( i2 == C ) ? BCA : BAC; | ||||
if ( i1 == C ) | if ( i1 == C ) | ||||
return ( i2 == A ) ? CAB : CBA; | return ( i2 == A ) ? CAB : CBA; | ||||
assert( 0 ); | assert( 0 ); | ||||
return ABC; | return ABC; | ||||
▲ Show 20 Lines • Show All 333 Lines • Show Last 20 Lines |