35 model_name=
"D0TopipiEta";
51 phi[0] = 0; rho[0] = 1;
52 phi[1] = -0.98109; rho[1] = -0.02447;
53 phi[2] = 0.71358; rho[2] = 1.0848;
54 phi[3] = -0.83115; rho[3] = 2.6444;
55 phi[4] = -0.058521; rho[4] = 7.0274;
66 const double mk0 = 0.497614;
67 const double mass_Kaon = 0.49368;
69 const double mass_Pi0 = 0.1349766;
70 const double meta = 0.547862;
76 sck = mass_Kaon*mass_Kaon;
78 snpi = mass_Pi0*mass_Pi0;
86 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
87 for (
int i=0; i<4; i++) {
88 for (
int j=0; j<4; j++) {
133 double P1[4], P2[4], P3[4];
134 P1[0] = D1.
get(0); P1[1] = D1.
get(1); P1[2] = D1.
get(2); P1[3] = D1.
get(3);
135 P2[0] = D2.
get(0); P2[1] = D2.
get(1); P2[2] = D2.
get(2); P2[3] = D2.
get(3);
136 P3[0] = D3.
get(0); P3[1] = D3.
get(1); P3[2] = D3.
get(2); P3[3] = D3.
get(3);
139 value = calDalEva(P1, P2, P3);
145double EvtD0TopipiEta::calDalEva(
double P1[],
double P2[],
double P3[])
156 PDF[0] = Spin_factor(P1, P2, P3, 1, 2, mrho, Grho);
157 PDF[1] = Spin_factor(P1, P2, P3, 1, 4, mrho, Grho);
158 PDF[2] = Spin_factor(P1, P3, P2, 0, 3, ma0, Ga0);
159 PDF[3] = Spin_factor(P2, P3, P1, 0, 3, ma0, Ga0);
160 PDF[4] = Spin_factor(P2, P3, P1, 2, 0, 1.698, 0.265);
163 for(
int i=0; i<5; i++){
165 pdf = pdf + cof*PDF[i];
167 module = conj(pdf)*pdf;
168 value =
real(module);
169 return (value <= 0) ? 1e-20 : value;
172EvtComplex EvtD0TopipiEta::Spin_factor(
double P1[],
double P2[],
double P3[],
int spin,
int flag,
double mass_R,
double width_R)
175 double R[4],
s[3], sp2,
B[2];
177 for(
int i=0; i<4; i++){
178 R[i] = P1[i] + P2[i];
190 if(
flag == 0) prop = one;
191 if(
flag == 1) prop = propagatorRBW(mass_R,width_R,
s[0],
s[1],
s[2],3.0,0);
193 rhokk = Flatte_rhoab(
s[0],snk,sck);
194 rhopieta = Flatte_rhoab(
s[0],scpi,seta);
195 prop = 1.0/(mass_R*mass_R -
s[0] - ci*(0.341*rhopieta+0.341*0.892*rhokk));
204 prop = propagatorRBW(mass_R,width_R,
s[0],
s[1],
s[2],3.0,1);
207 prop = propagatorGS(mass_R, width_R,
s[0],
s[1],
s[2],3.0,1);
210 prop1 = propagatorGS(mass_R, width_R,
s[0],
s[1],
s[2],3.0,1);
211 prop2 = propagatorRBW(0.78266,0.01358,
s[0],
s[1],
s[2],3.0,1);
217 B[0] = barrier(1,
s[0],
s[1],
s[2],3.0,mass_R);
218 B[1] = barrier(1,sD,
s[0],sp2, 5.0,mD);
220 for(
int i=0; i<4; i++){
221 tmp += T1[i]*t1[i]*G[i][i];
223 amp = tmp*prop*
B[0]*
B[1];
226 double T2[4][4], t2[4][4];
229 B[0] = barrier(2,
s[0],
s[1],
s[2],3.0,mass_R);
230 B[1] = barrier(2,sD,
s[0],sp2, 5.0,mD);
232 for(
int i=0; i<4; i++){
233 for(
int j=0; j<4; j++){
234 tmp += T2[i][j]*t2[j][i]*G[j][j]*G[i][i];
237 if(
flag == 0) prop = one;
238 if(
flag == 1) prop = propagatorRBW(mass_R,width_R,
s[0],
s[1],
s[2],3.0,2);
239 amp = tmp*prop*
B[0]*
B[1];
242 cout<<
"Only S, P, D wave allowed"<<endl;
247double EvtD0TopipiEta::dot(
double *a1,
double *a2)
250 for(
int i=0; i!=4; i++){
251 Dot += a1[i]*a2[i]*G[i][i];
256double EvtD0TopipiEta::Qabcs(
double sa,
double sb,
double sc)
258 double Qabcs = (sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb;
259 if(Qabcs < 0) Qabcs = 1e-16;
263double EvtD0TopipiEta::barrier(
double l,
double sa,
double sb,
double sc,
double r,
double mass)
266 double q0 = Qabcs(sa0,sb,sc);
268 double q = Qabcs(sa,sb,sc);
275 if(l == 1) F = sqrt((1+z0)/(1+z));
276 if(l == 2) F = sqrt((9+3*z0+z0*z0)/(9+3*z+z*z));
280void EvtD0TopipiEta::calt1(
double daug1[],
double daug2[],
double t1[])
284 for(
int i=0; i!=4; i++){
285 pa[i] = daug1[i] + daug2[i];
286 qa[i] = daug1[i] - daug2[i];
290 for(
int i=0; i!=4; i++){
291 t1[i] = qa[i] - pq/p*pa[i];
295void EvtD0TopipiEta::calt2(
double daug1[],
double daug2[],
double t2[][4])
299 calt1(daug1,daug2,t1);
301 for(
int i=0; i!=4; i++){
302 pa[i] = daug1[i] + daug2[i];
305 for(
int i=0; i!=4; i++){
306 for(
int j=0; j!=4; j++){
307 t2[i][j] = t1[i]*t1[j] - 1.0/3*r*(G[i][j]-pa[i]*pa[j]/p);
312double EvtD0TopipiEta::wid(
double mass,
double sa,
double sb,
double sc,
double r,
int l)
314 double widm(0.),
q(0.), q0(0.);
318 q0 = Qabcs(sa0,sb,sc);
325 if(l == 1) F = sqrt((1+z0)/(1+z));
326 if(l == 2) F = sqrt((9+3*z0+z0*z0)/(9+3*z+z*z));
327 widm = pow(
t,l+0.5)*
mass/m*F*F;
331EvtComplex EvtD0TopipiEta::propagatorRBW(
double mass,
double width,
double sa,
double sb,
double sc,
double r,
int l)
337double EvtD0TopipiEta::h(
double m,
double q)
340 h = 2/pi*
q/m*log((m+2*
q)/(2*mpi));
344double EvtD0TopipiEta::dh(
double mass,
double q0)
350double EvtD0TopipiEta::f(
double mass,
double sx,
double q0,
double q)
357double EvtD0TopipiEta::d(
double mass,
double q0)
359 double d = 3.0/pi*spi/(q0*q0)*log((
mass+2*q0)/(2*mpi))+
mass/(2*pi*q0) -(spi*
mass)/(pi*pow(q0,3));
363EvtComplex EvtD0TopipiEta::propagatorGS(
double mass,
double width,
double sa,
double sb,
double sc,
double r,
int l)
365 double q = Qabcs(sa,sb,sc);
367 double q0 = Qabcs(sa0,sb,sc);
374EvtComplex EvtD0TopipiEta::Flatte_rhoab(
double sa,
double sb,
double sc)
376 double q = (sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb;
379 rho = 2.0*sqrt(
q/sa)*one;
382 rho = 2.0*sqrt(-
q/sa)*ci;
387EvtComplex EvtD0TopipiEta::propagatorFlatte(
double mass,
double width,
double sx,
double *sb,
double *sc)
389 const double g1sq = 0.5468*0.5468;
390 const double g2sq = 0.23*0.23;
391 EvtComplex rho1 = Flatte_rhoab(sx,sb[0],sc[0]);
392 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")
****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
void getName(std::string &name)
void decay(EvtParticle *p)
virtual ~EvtD0TopipiEta()
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)