Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtDecayAmp.hh
Show All 23 Lines | |||||
#include "EvtGenBase/EvtAmp.hh" | #include "EvtGenBase/EvtAmp.hh" | ||||
#include "EvtGenBase/EvtDecayBase.hh" | #include "EvtGenBase/EvtDecayBase.hh" | ||||
// Description: Baseclass for models that calculates amplitudes | // Description: Baseclass for models that calculates amplitudes | ||||
class EvtDecayAmp : public EvtDecayBase { | class EvtDecayAmp : public EvtDecayBase { | ||||
public: | public: | ||||
void makeDecay( EvtParticle* p, bool recursive = true ) override; | void makeDecay( EvtParticle* p, bool recursive = true ) override; | ||||
inline void setWeight( double weight ) { _weight = weight; } | inline void setWeight( double weight ) { m_weight = weight; } | ||||
/** | /** | ||||
* sets the amplitudes calculated in the decay objects | * sets the amplitudes calculated in the decay objects | ||||
*/ | */ | ||||
void vertex( const EvtComplex& amp ) { _amp2.vertex( amp ); } | void vertex( const EvtComplex& amp ) { m_amp2.vertex( amp ); } | ||||
/** | /** | ||||
* sets the amplitudes calculated in the decay objects | * sets the amplitudes calculated in the decay objects | ||||
*/ | */ | ||||
void vertex( int i1, const EvtComplex& amp ) { _amp2.vertex( i1, amp ); } | void vertex( int i1, const EvtComplex& amp ) { m_amp2.vertex( 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 ) | ||||
{ | { | ||||
_amp2.vertex( i1, i2, amp ); | m_amp2.vertex( i1, i2, 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 ) | ||||
{ | { | ||||
_amp2.vertex( i1, i2, i3, amp ); | m_amp2.vertex( i1, i2, i3, amp ); | ||||
} | } | ||||
/** | /** | ||||
* sets the amplitudes calculated in the decay objects | * sets the amplitudes calculated in the decay objects | ||||
*/ | */ | ||||
void vertex( int* i1, const EvtComplex& amp ) { _amp2.vertex( i1, amp ); } | void vertex( int* i1, const EvtComplex& amp ) { m_amp2.vertex( i1, amp ); } | ||||
/** | /** | ||||
* Provide access to the amplitude | * Provide access to the amplitude | ||||
*/ | */ | ||||
const EvtAmp& amplitude() const { return _amp2; } | const EvtAmp& amplitude() const { return m_amp2; } | ||||
virtual ~EvtDecayAmp() {} | virtual ~EvtDecayAmp() {} | ||||
protected: | protected: | ||||
EvtAmp _amp2; | EvtAmp m_amp2; | ||||
private: | private: | ||||
double _weight; | double m_weight; | ||||
}; | }; | ||||
#endif | #endif |