BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtMParticle.cc
Go to the documentation of this file.
1
#include "
EvtMParticle.hh
"
2
#include "
EvtPatches.hh
"
3
#include "
EvtSpinType.hh
"
4
5
EvtMParticle::EvtMParticle
(
int
label,
const
EvtId
&
id
) {
6
_id
= id;
7
_twospin
=
EvtSpinType::getSpin2
(
EvtPDL::getSpinType
(
id
) );
8
_resonance
.push_back( label );
9
}
10
11
EvtSpinAmp
EvtMParticle::amplitude
(
const
vector<EvtVector4R>& product )
const
{
12
vector<EvtSpinType::spintype> types( 2,
getspintype
() );
13
EvtSpinAmp
amp( types,
EvtComplex
( 0.0, 0.0 ) );
14
15
for
(
int
i = -
_twospin
; i <=
_twospin
; i += 2 ) amp( i, i ) =
EvtComplex
( 1.0, 0.0 );
16
17
return
amp;
18
}
19
20
EvtMNode
*
EvtMParticle::duplicate
()
const
{
return
new
EvtMParticle
(
_resonance
[0],
_id
); }
EvtMParticle.hh
EvtPatches.hh
EvtSpinType.hh
EvtComplex
Definition
EvtComplex.hh:28
EvtId
Definition
EvtId.hh:27
EvtMNode::_twospin
int _twospin
Definition
EvtMNode.hh:59
EvtMNode::_id
EvtId _id
Definition
EvtMNode.hh:56
EvtMNode::EvtMNode
EvtMNode()
Definition
EvtMNode.hh:20
EvtMNode::_resonance
vector< int > _resonance
Definition
EvtMNode.hh:63
EvtMNode::getspintype
EvtSpinType::spintype getspintype() const
Definition
EvtMNode.hh:33
EvtMParticle::amplitude
EvtSpinAmp amplitude(const vector< EvtVector4R > &product) const
Definition
EvtMParticle.cc:11
EvtMParticle::duplicate
EvtMNode * duplicate() const
Definition
EvtMParticle.cc:20
EvtMParticle::EvtMParticle
EvtMParticle(int label, const EvtId &id)
Definition
EvtMParticle.cc:5
EvtPDL::getSpinType
static EvtSpinType::spintype getSpinType(EvtId i)
Definition
EvtPDL.hh:66
EvtSpinAmp
Definition
EvtSpinAmp.hh:17
EvtSpinType::getSpin2
static int getSpin2(spintype stype)
Definition
EvtSpinType.hh:45
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenBase
EvtMParticle.cc
Generated by
1.16.1