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
EvtAmpSubIndex.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
//
3
// Environment:
4
// This software is part of the EvtGen package developed jointly
5
// for the BaBar and CLEO collaborations. If you use all or part
6
// of it, please give an appropriate acknowledgement.
7
//
8
// Copyright Information: See EvtGen/COPYRIGHT
9
// Copyright (C) 2002 Caltech
10
//
11
// Module: EvtAmpSubIndex.cc
12
//
13
// Description: Class to manipulate the amplitudes in the decays.
14
//
15
// Modification history:
16
//
17
// RYD Nov 22, 2002 Module created
18
//
19
//------------------------------------------------------------------------
20
//
21
#include "
EvtGenBase/EvtPatches.hh
"
22
#include "
EvtGenBase/EvtAmpIndex.hh
"
23
#include "
EvtGenBase/EvtAmpSubIndex.hh
"
24
#include <vector>
25
using
std::vector;
26
27
28
EvtAmpSubIndex::EvtAmpSubIndex
(
EvtAmpIndex
* ind,std::vector<int> sub):
29
_ind(ind),
30
_sub(sub),
31
_size(sub.size()),
32
_nstate(sub.size())
33
{
34
int
i;
35
36
for
(i=0;i<_size;i++) {
37
if
(i==0){
38
_nstate[i]=1;
39
}
40
else
{
41
_nstate[i]=_nstate[i-1]*_ind->_ind[sub[i-1]];
42
}
43
}
44
}
45
46
47
int
EvtAmpSubIndex::index
(){
48
49
int
i;
50
int
ind=0;
51
52
for
(i=0;i<_size;i++) {
53
ind+=_ind->_state[_ind->_ind[i]]*_nstate[i];
54
}
55
56
return
ind;
57
58
}
59
60
61
62
63
64
65
66
67
68
69
EvtAmpIndex.hh
EvtAmpSubIndex.hh
EvtPatches.hh
EvtAmpIndex
Definition:
EvtAmpIndex.hh:26
EvtAmpSubIndex::EvtAmpSubIndex
EvtAmpSubIndex(EvtAmpIndex *ind, std::vector< int > sub)
Definition:
EvtAmpSubIndex.cc:28
EvtAmpSubIndex::index
int index()
Definition:
EvtAmpSubIndex.cc:47
source
Generator
BesEvtGen
BesEvtGen-00-03-98
src
EvtGen
EvtGenBase
EvtAmpSubIndex.cc
Generated by
1.9.6