Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtAmp.hh
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | public: | ||||
EvtAmp contract( int i, const EvtAmp& a1, const EvtAmp& a2 ); | EvtAmp contract( int i, const EvtAmp& a1, const EvtAmp& a2 ); | ||||
EvtSpinDensity getForwardSpinDensity( EvtSpinDensity* rho_list, int k ); | EvtSpinDensity getForwardSpinDensity( EvtSpinDensity* rho_list, int k ); | ||||
EvtSpinDensity getBackwardSpinDensity( EvtSpinDensity* rho_list ); | EvtSpinDensity getBackwardSpinDensity( EvtSpinDensity* rho_list ); | ||||
EvtAmp& operator=( const EvtAmp& amp ); | EvtAmp& operator=( const EvtAmp& amp ); | ||||
/** | /** | ||||
* sets the amplitudes calculated in the decay objects | * sets the amplitudes calculated in the decay objects | ||||
*/ | */ | ||||
void vertex( const EvtComplex& amp ); | void vertex( const EvtComplex& amp ) { _amp[0] = amp; } | ||||
/** | /** | ||||
* sets the amplitudes calculated in the decay objects | * sets the amplitudes calculated in the decay objects | ||||
*/ | */ | ||||
void vertex( int i1, const EvtComplex& amp ); | void vertex( int i1, const EvtComplex& amp ) { _amp[i1] = amp; } | ||||
/** | /** | ||||
* sets the amplitudes calculated in the decay objects | * sets the amplitudes calculated in the decay objects | ||||
*/ | */ | ||||
void vertex( int i1, int i2, const EvtComplex& amp ); | void vertex( int i1, int i2, const EvtComplex& amp ) | ||||
{ | |||||
_amp[i1 + i2 * _nstate[0]] = amp; | |||||
} | |||||
/** | /** | ||||
* sets the amplitudes calculated in the decay objects | * sets the amplitudes calculated in the decay objects | ||||
*/ | */ | ||||
void vertex( int i1, int i2, int i3, const EvtComplex& amp ); | void vertex( int i1, int i2, int i3, const EvtComplex& amp ) | ||||
{ | |||||
_amp[i1 + ( i2 + i3 * _nstate[1] ) * _nstate[0]] = amp; | |||||
} | |||||
/** | /** | ||||
* sets the amplitudes calculated in the decay objects | * sets the amplitudes calculated in the decay objects | ||||
*/ | */ | ||||
void vertex( int* i1, const EvtComplex& amp ); | void vertex( int* i1, const EvtComplex& amp ) { setAmp( i1, amp ); } | ||||
void dump(); | void dump(); | ||||
private: | private: | ||||
friend class EvtDecayAmp; | friend class EvtDecayAmp; | ||||
friend class EvtKstarstargamma; | friend class EvtKstarstargamma; | ||||
void setNDaug( int n ); | void setNDaug( int n ); | ||||
void setNState( int parent_states, int* daug_states ); | void setNState( int parent_states, int* daug_states ); | ||||
// the amplitudes | // the amplitudes | ||||
union { | |||||
double _dummybuf[125 * 2]; | |||||
EvtComplex _amp[125]; | EvtComplex _amp[125]; | ||||
}; | |||||
// the number of daughters | // the number of daughters | ||||
int _ndaug; | int _ndaug; | ||||
// the number of states of the parent | // the number of states of the parent | ||||
int _pstates; | int _pstates; | ||||
// number of states of the daughter | // number of states of the daughter | ||||
int dstates[10]; | int dstates[10]; | ||||
Show All 12 Lines |