Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtMRes.hh
Show All 23 Lines | |||||
#include "EvtGenBase/EvtMNode.hh" | #include "EvtGenBase/EvtMNode.hh" | ||||
class EvtMRes; | class EvtMRes; | ||||
class EvtMLineShape { | class EvtMLineShape { | ||||
public: | public: | ||||
virtual ~EvtMLineShape(){}; | virtual ~EvtMLineShape(){}; | ||||
void setres( EvtMRes* n ) { _node = n; } | void setres( EvtMRes* n ) { m_node = n; } | ||||
virtual EvtComplex shape( const vector<EvtVector4R>& product ) const = 0; | virtual EvtComplex shape( const vector<EvtVector4R>& product ) const = 0; | ||||
virtual EvtMLineShape* duplicate() const = 0; | virtual EvtMLineShape* duplicate() const = 0; | ||||
protected: | protected: | ||||
EvtMRes* _node; | EvtMRes* m_node; | ||||
}; | }; | ||||
class EvtMRes : public EvtMNode { | class EvtMRes : public EvtMNode { | ||||
public: | public: | ||||
~EvtMRes(); | ~EvtMRes(); | ||||
int getnchild() const override { return _children.size(); } | int getnchild() const override { return m_children.size(); } | ||||
EvtComplex line( const vector<EvtVector4R>& product ) const override | EvtComplex line( const vector<EvtVector4R>& product ) const override | ||||
{ | { | ||||
return _lineshape->shape( product ); | return m_lineshape->shape( product ); | ||||
} | } | ||||
protected: | protected: | ||||
// store the child nodes | // store the child nodes | ||||
vector<EvtMNode*> _children; | vector<EvtMNode*> m_children; | ||||
// store the parametrization amplitudes in some kind | // store the parametrization amplitudes in some kind | ||||
EvtSpinAmp _amp; | EvtSpinAmp m_amp; | ||||
// store the lineshape of the resonance | // store the lineshape of the resonance | ||||
EvtMLineShape* _lineshape; | EvtMLineShape* m_lineshape; | ||||
}; | }; | ||||
#endif | #endif |