BOSS
7.0.4
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
Enumerations
_
e
f
g
h
i
l
m
o
p
r
s
t
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
w
x
Files
File List
File Members
All
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
!
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
z
Enumerations
d
e
g
h
p
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
EvtMParticle.cc
Go to the documentation of this file.
1
#include "
EvtGenBase/EvtPatches.hh
"
2
#include "
EvtGenBase/EvtMParticle.hh
"
3
#include "
EvtGenBase/EvtSpinType.hh
"
4
5
EvtMParticle::EvtMParticle
(
int
label,
const
EvtId
&
id
)
6
{
7
_id
= id;
8
_twospin
=
EvtSpinType::getSpin2
(
EvtPDL::getSpinType
(
id
) );
9
_resonance
.push_back( label );
10
}
11
12
EvtSpinAmp
EvtMParticle::amplitude
(
const
vector<EvtVector4R> &product)
const
13
{
14
vector<EvtSpinType::spintype> types( 2,
getspintype
() );
15
EvtSpinAmp
amp( types,
EvtComplex
( 0.0, 0.0 ) );
16
17
for
(
int
i=-
_twospin
; i<=
_twospin
; i+=2 )
18
amp(i, i) =
EvtComplex
( 1.0, 0.0 );
19
20
return
amp;
21
}
22
23
EvtMNode
*
EvtMParticle::duplicate
()
const
24
{
25
return
new
EvtMParticle
(
_resonance
[0],
_id
);
26
}
EvtMParticle.hh
EvtPatches.hh
EvtSpinType.hh
EvtComplex
Definition:
EvtComplex.hh:28
EvtId
Definition:
EvtId.hh:27
EvtMNode
Definition:
EvtMNode.hh:17
EvtMNode::_twospin
int _twospin
Definition:
EvtMNode.hh:61
EvtMNode::_id
EvtId _id
Definition:
EvtMNode.hh:58
EvtMNode::_resonance
vector< int > _resonance
Definition:
EvtMNode.hh:65
EvtMNode::getspintype
EvtSpinType::spintype getspintype() const
Definition:
EvtMNode.hh:35
EvtMParticle
Definition:
EvtMParticle.hh:6
EvtMParticle::amplitude
EvtSpinAmp amplitude(const vector< EvtVector4R > &product) const
Definition:
EvtMParticle.cc:12
EvtMParticle::duplicate
EvtMNode * duplicate() const
Definition:
EvtMParticle.cc:23
EvtMParticle::EvtMParticle
EvtMParticle(int label, const EvtId &id)
Definition:
EvtMParticle.cc:5
EvtPDL::getSpinType
static EvtSpinType::spintype getSpinType(EvtId i)
Definition:
EvtPDL.hh:61
EvtSpinAmp
Definition:
EvtSpinAmp.hh:18
EvtSpinType::getSpin2
static int getSpin2(spintype stype)
Definition:
EvtSpinType.hh:34
source
Generator
BesEvtGen
BesEvtGen-00-03-98
src
EvtGen
EvtGenBase
EvtMParticle.cc
Generated by
1.9.6