92 {
93
94 vector<double> pD;pD.clear();
95 if(k0l.size()!=4||pip.size()!=4||pim.size()!=4)cout<<"ERROR in KSPIPI daughter 4 momentum"<<endl;
96 for(int i=0;i<k0l.size();i++){
97 pD.push_back(k0l[i] + pip[i] + pim[i]);
98 }
99
100
101
102
103
104
105
106
107
108
109
110
111 complex<double> DK2piRes0 = Resonance2(pD, pip, pim, ar[0], phir[0], width_R[0], mass_R[0], spin_R[0]);
112 complex<double> DK2piRes1 = Resonance2(pD, pip, pim, ar[1], phir[1], width_R[1], mass_R[1], spin_R[1]);
113 complex<double> DK2piRes2 = Resonance2(pD, pip, pim, ar[2], phir[2], width_R[2], mass_R[2], spin_R[2]);
114 complex<double> DK2piRes3 = Resonance2(pD, pip, pim, ar[3], phir[3], width_R[3], mass_R[3], spin_R[3]);
115 complex<double> DK2piRes4 = Resonance2(pD, k0l, pim, ar[4], phir[4], width_R[4], mass_R[4], spin_R[4]);
116 complex<double> DK2piRes5 = Resonance2(pD, k0l, pim, ar[5], phir[5], width_R[5], mass_R[5], spin_R[5]);
117 complex<double> DK2piRes6 = Resonance2(pD, k0l, pim, ar[6], phir[6], width_R[6], mass_R[6], spin_R[6]);
118 complex<double> DK2piRes7 = Resonance2(pD, k0l, pim, ar[7], phir[7], width_R[7], mass_R[7], spin_R[7]);
119 complex<double> DK2piRes8 = Resonance2(pD, k0l, pip, ar[8], phir[8], width_R[8], mass_R[8], spin_R[8]);
120 complex<double> DK2piRes9 = Resonance2(pD, k0l, pip, ar[9], phir[9], width_R[9], mass_R[9], spin_R[9]);
121 complex<double> DK2piRes10 = Resonance2(pD, k0l, pip, ar[10], phir[10], width_R[10], mass_R[10], spin_R[10]);
122
125
126 complex<double> kpi_s_wave = amplitude_LASS(k0l, pip, pim,
"k0lpim", ar[11], phir[11]*pi180inv) ;
127
128
130 + DK2piRes1 * CP_mult[1]
131 + DK2piRes2 * CP_mult[2]
132 + DK2piRes3 * CP_mult[3]
133 + DK2piRes4
134 + DK2piRes5
135 + DK2piRes6
136 + DK2piRes7
137 + DK2piRes8 * (-1.)
138 + DK2piRes9 * (-1.)
139 + DK2piRes10* (-1.)
140 + pipi_s_wave * CP_mult[4]
141 + kpi_s_wave ;
142
143
144 return TOT_PFT_AMP;
145
146}