35 model_name=
"DTopiEtaEta";
65 const double mk0 = 0.497614;
66 const double mass_Kaon = 0.49368;
68 const double mass_Pi0 = 0.1349766;
69 const double meta = 0.547862;
75 sck = mass_Kaon*mass_Kaon;
77 snpi = mass_Pi0*mass_Pi0;
85 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
86 for (
int i=0; i<4; i++) {
87 for (
int j=0; j<4; j++) {
131 double P1[4], P2[4], P3[4];
132 P1[0] = D1.
get(0); P1[1] = D1.
get(1); P1[2] = D1.
get(2); P1[3] = D1.
get(3);
133 P2[0] = D2.
get(0); P2[1] = D2.
get(1); P2[2] = D2.
get(2); P2[3] = D2.
get(3);
134 P3[0] = D3.
get(0); P3[1] = D3.
get(1); P3[2] = D3.
get(2); P3[3] = D3.
get(3);
137 value = calDalEva(P1, P2, P3);
142double EvtDTopiEtaEta::calDalEva(
double P1[],
double P2[],
double P3[])
153 PDF[0] = Spin_factor(P1, P2, P3, 0, 30, ma0, Ga0);
154 PDF[1] = Spin_factor(P1, P3, P2, 0, 30, ma0, Ga0);
157 for(
int i=0; i<2; i++){
159 pdf = pdf + cof*PDF[i];
161 module =
conj(pdf)*pdf;
162 value =
real(module);
163 return (value <= 0) ? 1e-20 : value;
166EvtComplex EvtDTopiEtaEta::Spin_factor(
double P1[],
double P2[],
double P3[],
int spin,
int flag,
double mass_R,
double width_R)
169 double R[4],
s[3], sp2,
B[2];
171 for(
int i=0; i<4; i++){
172 R[i] = P1[i] + P2[i];
184 if(
flag == 0) prop = one;
185 if(
flag == 1) prop = propagatorRBW(mass_R,width_R,
s[0],
s[1],
s[2],3.0,0);
187 rhokk = Flatte_rhoab(
s[0],snk,sck);
188 rhopieta = Flatte_rhoab(
s[0],scpi,seta);
189 prop = 1.0/(mass_R*mass_R -
s[0] - ci*(0.341*rhopieta+0.341*0.892*rhokk));
193 qKsK = 0.25*(
s[0] + 3.899750596e-03)*(
s[0] + 3.899750596e-03)/
s[0] - 0.497614*0.497614;
194 if(qKsK > 0) rhokk = 2.0*sqrt(qKsK/
s[0])*one;
195 if(qKsK < 0) rhokk = 2.0*sqrt(qKsK/
s[0])*ci;
196 rhopieta = Flatte_rhoab(
s[0],snpi,seta);
197 prop = 1.0/(mass_R*mass_R -
s[0] - ci*(0.341*rhopieta+0.341*0.892*rhokk));
206 prop = propagatorRBW(mass_R,width_R,
s[0],
s[1],
s[2],3.0,1);
209 prop = propagatorGS(mass_R, width_R,
s[0],
s[1],
s[2],3.0,1);
212 prop1 = propagatorGS(mass_R, width_R,
s[0],
s[1],
s[2],3.0,1);
213 prop2 = propagatorRBW(0.78266,0.01358,
s[0],
s[1],
s[2],3.0,1);
219 B[0] = barrier(1,
s[0],
s[1],
s[2],3.0,mass_R);
220 B[1] = barrier(1,sD,
s[0],sp2, 5.0,mD);
222 for(
int i=0; i<4; i++){
223 tmp += T1[i]*t1[i]*G[i][i];
225 amp = tmp*prop*
B[0]*
B[1];
228 double T2[4][4], t2[4][4];
231 B[0] = barrier(2,
s[0],
s[1],
s[2],3.0,mass_R);
232 B[1] = barrier(2,sD,
s[0],sp2, 5.0,mD);
234 for(
int i=0; i<4; i++){
235 for(
int j=0; j<4; j++){
236 tmp += T2[i][j]*t2[j][i]*G[j][j]*G[i][i];
239 if(
flag == 0) prop = one;
240 if(
flag == 1) prop = propagatorRBW(mass_R,width_R,
s[0],
s[1],
s[2],3.0,2);
241 amp = tmp*prop*
B[0]*
B[1];
244 cout<<
"Only S, P, D wave allowed"<<endl;
249double EvtDTopiEtaEta::dot(
double *a1,
double *a2)
252 for(
int i=0; i!=4; i++){
253 Dot += a1[i]*a2[i]*G[i][i];
258double EvtDTopiEtaEta::Qabcs(
double sa,
double sb,
double sc)
260 double Qabcs = (sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb;
261 if(Qabcs < 0) Qabcs = 1e-16;
265double EvtDTopiEtaEta::barrier(
double l,
double sa,
double sb,
double sc,
double r,
double mass)
268 double q0 = Qabcs(sa0,sb,sc);
270 double q = Qabcs(sa,sb,sc);
277 if(l == 1) F = sqrt((1+z0)/(1+z));
278 if(l == 2) F = sqrt((9+3*z0+z0*z0)/(9+3*z+z*z));
282void EvtDTopiEtaEta::calt1(
double daug1[],
double daug2[],
double t1[])
286 for(
int i=0; i!=4; i++){
287 pa[i] = daug1[i] + daug2[i];
288 qa[i] = daug1[i] - daug2[i];
292 for(
int i=0; i!=4; i++){
293 t1[i] = qa[i] - pq/p*pa[i];
297void EvtDTopiEtaEta::calt2(
double daug1[],
double daug2[],
double t2[][4])
301 calt1(daug1,daug2,t1);
303 for(
int i=0; i!=4; i++){
304 pa[i] = daug1[i] + daug2[i];
307 for(
int i=0; i!=4; i++){
308 for(
int j=0; j!=4; j++){
309 t2[i][j] = t1[i]*t1[j] - 1.0/3*r*(G[i][j]-pa[i]*pa[j]/p);
314double EvtDTopiEtaEta::wid(
double mass,
double sa,
double sb,
double sc,
double r,
int l)
316 double widm(0.),
q(0.), q0(0.);
320 q0 = Qabcs(sa0,sb,sc);
327 if(l == 1) F = sqrt((1+z0)/(1+z));
328 if(l == 2) F = sqrt((9+3*z0+z0*z0)/(9+3*z+z*z));
329 widm = pow(
t,l+0.5)*
mass/m*F*F;
333EvtComplex EvtDTopiEtaEta::propagatorRBW(
double mass,
double width,
double sa,
double sb,
double sc,
double r,
int l)
339double EvtDTopiEtaEta::h(
double m,
double q)
341 double h = 2.0/pi*
q/m*log((m+2*
q)/(0.13957 + 0.134976));
345double EvtDTopiEtaEta::dh(
double mass,
double q0)
351double EvtDTopiEtaEta::f(
double mass,
double sx,
double q0,
double q)
358double EvtDTopiEtaEta::d(
double mass,
double q0)
360 double cmpi = 0.5*(0.13957 + 0.134976);
361 double mpi2 = cmpi*cmpi;
362 double d = 3.0/pi*
mpi2/(q0*q0)*log((
mass+2*q0)/(2*cmpi))+
mass/(2*pi*q0) - (mpi2*
mass)/(pi*pow(q0,3));
366EvtComplex EvtDTopiEtaEta::propagatorGS(
double mass,
double width,
double sa,
double sb,
double sc,
double r,
int l)
368 double q = Qabcs(sa,sb,sc);
370 double q0 = Qabcs(sa0,sb,sc);
377EvtComplex EvtDTopiEtaEta::Flatte_rhoab(
double sa,
double sb,
double sc)
379 double q = (sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb;
382 rho = 2.0*sqrt(
q/sa)*one;
385 rho = 2.0*sqrt(-
q/sa)*ci;
390EvtComplex EvtDTopiEtaEta::propagatorFlatte(
double mass,
double width,
double sx,
double *sb,
double *sc)
392 const double g1sq = 0.5468*0.5468;
393 const double g2sq = 0.23*0.23;
394 EvtComplex rho1 = Flatte_rhoab(sx,sb[0],sc[0]);
395 EvtComplex rho2 = Flatte_rhoab(sx,sb[1],sc[1]);
double sin(const BesAngle a)
double cos(const BesAngle a)
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
Evt3Rank3C conj(const Evt3Rank3C &t2)
****INTEGER imax DOUBLE PRECISION m_pi *DOUBLE PRECISION m_amfin DOUBLE PRECISION m_Chfin DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_sinw2 DOUBLE PRECISION m_GFermi DOUBLE PRECISION m_MfinMin DOUBLE PRECISION m_ta2 INTEGER m_out INTEGER m_KeyFSR INTEGER m_KeyQCD *COMMON c_Semalib $ !copy of input $ !CMS energy $ !beam mass $ !final mass $ !beam charge $ !final charge $ !smallest final mass $ !Z mass $ !Z width $ !EW mixing angle $ !Gmu Fermi $ alphaQED at q
virtual ~EvtDTopiEtaEta()
void getName(std::string &name)
void decay(EvtParticle *p)
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
void setProbMax(double prbmx)
void checkNDaug(int d1, int d2=-1)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
void setProb(double prob)
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
complex_t R(double Q2, double M2, double G, double Mp2, double Mm2)
float Dot(vector3 v1, vector3 v2)