9 #include "Pythia8/HelicityMatrixElements.h"
21 void HelicityMatrixElement::initPointers(ParticleData* particleDataPtrIn,
22 Couplings* couplingsPtrIn) {
24 particleDataPtr = particleDataPtrIn;
25 couplingsPtr = couplingsPtrIn;
26 for(
int i = 0; i <= 5; i++)
27 gamma.push_back(GammaMatrix(i));
35 HelicityMatrixElement* HelicityMatrixElement::initChannel(
36 vector<HelicityParticle>& p) {
40 for(
int i = 0; i < static_cast<int>(p.size()); i++) {
41 pID.push_back(p[i].
id());
42 pM.push_back(p[i].m());
53 void HelicityMatrixElement::calculateD(vector<HelicityParticle>& p) {
56 for (
int i = 0; i < p[0].spinStates(); i++) {
57 for (
int j = 0; j < p[0].spinStates(); j++) {
66 vector<int> h1(p.size(),0);
67 vector<int> h2(p.size(),0);
70 calculateD(p, h1, h2, 0);
73 p[0].normalize(p[0].D);
81 void HelicityMatrixElement::calculateD(vector<HelicityParticle>& p,
82 vector<int>& h1, vector<int>& h2,
unsigned int i) {
85 for (h1[i] = 0; h1[i] < p[i].spinStates(); h1[i]++) {
86 for (h2[i] = 0; h2[i] < p[i].spinStates(); h2[i]++) {
87 calculateD(p, h1, h2, i+1);
92 p[0].D[h1[0]][h2[0]] += calculateME(h1) * conj(calculateME(h2)) *
93 calculateProductD(p, h1, h2);
102 void HelicityMatrixElement::calculateRho(
unsigned int idx,
103 vector<HelicityParticle>& p) {
106 for (
int i = 0; i < p[idx].spinStates(); i++) {
107 for (
int j = 0; j < p[idx].spinStates(); j++) {
108 p[idx].rho[i][j] = 0;
116 vector<int> h1(p.size(),0);
117 vector<int> h2(p.size(),0);
120 calculateRho(idx, p, h1, h2, 0);
123 p[idx].normalize(p[idx].rho);
131 void HelicityMatrixElement::calculateRho(
unsigned int idx,
132 vector<HelicityParticle>& p, vector<int>& h1, vector<int>& h2,
136 for (h1[i] = 0; h1[i] < p[i].spinStates(); h1[i]++) {
137 for (h2[i] = 0; h2[i] < p[i].spinStates(); h2[i]++) {
138 calculateRho(idx, p, h1, h2, i+1);
144 if (p[1].direction < 0)
145 p[idx].rho[h1[idx]][h2[idx]] += p[0].rho[h1[0]][h2[0]] *
146 p[1].rho[h1[1]][h2[1]] * calculateME(h1)*conj(calculateME(h2)) *
147 calculateProductD(idx, 2, p, h1, h2);
150 p[idx].rho[h1[idx]][h2[idx]] += p[0].rho[h1[0]][h2[0]] *
151 calculateME(h1)*conj(calculateME(h2)) *
152 calculateProductD(idx, 1, p, h1, h2);
162 double HelicityMatrixElement::decayWeight(vector<HelicityParticle>& p) {
164 complex weight = complex(0,0);
170 vector<int> h1(p.size(),0);
171 vector<int> h2(p.size(),0);
174 decayWeight(p, h1, h2, weight, 0);
184 void HelicityMatrixElement::decayWeight(vector<HelicityParticle>& p,
185 vector<int>& h1, vector<int>& h2, complex& weight,
unsigned int i) {
188 for (h1[i] = 0; h1[i] < p[i].spinStates(); h1[i]++) {
189 for (h2[i] = 0; h2[i] < p[i].spinStates(); h2[i]++) {
190 decayWeight(p, h1, h2, weight, i+1);
195 weight += p[0].rho[h1[0]][h2[0]] * calculateME(h1) *
196 conj(calculateME(h2)) * calculateProductD(p, h1, h2);
205 complex HelicityMatrixElement::calculateProductD(
unsigned int idx,
206 unsigned int start, vector<HelicityParticle>& p,
207 vector<int>& h1, vector<int>& h2) {
210 for (
unsigned int i = start; i < p.size(); i++) {
212 answer *= p[i].D[h1[i]][h2[i]];
223 complex HelicityMatrixElement::calculateProductD(
224 vector<HelicityParticle>& p, vector<int>& h1, vector<int>& h2) {
227 for (
unsigned int i = 1; i < p.size(); i++) {
228 answer *= p[i].D[h1[i]][h2[i]];
238 void HelicityMatrixElement::setFermionLine(
int position,
239 HelicityParticle& p0, HelicityParticle& p1) {
241 vector< Wave4 > u0, u1;
244 if (p0.id()*p0.direction < 0) {
245 pMap[position] = position; pMap[position+1] = position+1;
246 for (
int h = 0; h < p0.spinStates(); h++) u0.push_back(p0.wave(h));
247 for (
int h = 0; h < p1.spinStates(); h++) u1.push_back(p1.waveBar(h));
251 pMap[position] = position+1; pMap[position+1] = position;
252 for (
int h = 0; h < p0.spinStates(); h++) u1.push_back(p0.waveBar(h));
253 for (
int h = 0; h < p1.spinStates(); h++) u0.push_back(p1.wave(h));
255 u.push_back(u0); u.push_back(u1);
263 complex HelicityMatrixElement::breitWigner(
double s,
double M,
double G) {
265 return (-M*M + complex(0, 1) * M * G) / (s - M*M + complex(0, 1) * M * G);
273 complex HelicityMatrixElement::sBreitWigner(
double m0,
double m1,
double s,
274 double M,
double G) {
276 double gs = sqrtpos((s - pow2(m0+m1)) * (s - pow2(m0-m1))) / (2*sqrtpos(s));
277 double gM = sqrtpos((M*M - pow2(m0+m1)) * (M*M - pow2(m0-m1))) / (2*M);
278 return M*M / (M*M - s - complex(0,1)*G*M*M/sqrtpos(s)*(gs/gM));
286 complex HelicityMatrixElement::pBreitWigner(
double m0,
double m1,
double s,
287 double M,
double G) {
289 double gs = sqrtpos((s - pow2(m0+m1)) * (s - pow2(m0-m1))) / (2*sqrtpos(s));
290 double gM = sqrtpos((M*M - pow2(m0+m1)) * (M*M - pow2(m0-m1))) / (2*M);
291 return M*M / (M*M - s - complex(0,1)*G*M*M/sqrtpos(s)*pow3(gs/gM));
299 complex HelicityMatrixElement::dBreitWigner(
double m0,
double m1,
double s,
300 double M,
double G) {
302 double gs = sqrtpos((s - pow2(m0+m1)) * (s - pow2(m0-m1))) / (2*sqrtpos(s));
303 double gM = sqrtpos((M*M - pow2(m0+m1)) * (M*M - pow2(m0-m1))) / (2*M);
304 return M*M / (M*M - s - complex(0,1)*G*M*M/sqrtpos(s)*pow5(gs/gM));
321 void HMETwoFermions2W2TwoFermions::initWaves(vector<HelicityParticle>& p) {
325 setFermionLine(0,p[0],p[1]);
326 setFermionLine(2,p[2],p[3]);
334 complex HMETwoFermions2W2TwoFermions::calculateME(vector<int> h) {
337 for (
int mu = 0; mu <= 3; mu++) {
338 answer += (u[1][h[pMap[1]]] * gamma[mu] * (1 - gamma[5])
339 * u[0][h[pMap[0]]]) * gamma[4](mu,mu) * (u[3][h[pMap[3]]]
340 * gamma[mu] * (1 - gamma[5]) * u[2][h[pMap[2]]]);
360 void HMETwoFermions2Gamma2TwoFermions::initWaves(
361 vector<HelicityParticle>& p) {
365 setFermionLine(0, p[0], p[1]);
366 setFermionLine(2, p[2], p[3]);
367 s = max( 1., pow2(p[4].m()));
368 p0Q = p[0].charge(); p2Q = p[2].charge();
377 complex HMETwoFermions2Gamma2TwoFermions::calculateME(vector<int> h) {
380 for (
int mu = 0; mu <= 3; mu++) {
381 answer += (u[1][h[pMap[1]]] * gamma[mu] * u[0][h[pMap[0]]])
382 * gamma[4](mu,mu) * (u[3][h[pMap[3]]] * gamma[mu] * u[2][h[pMap[2]]]);
384 return p0Q*p2Q * answer / s;
413 void HMETwoFermions2Z2TwoFermions::initConstants() {
416 sin2W = couplingsPtr->sin2thetaW();
417 cos2W = couplingsPtr->cos2thetaW();
419 zG = particleDataPtr->mWidth(23);
420 zM = particleDataPtr->m0(23);
422 p0CA = couplingsPtr->af(abs(pID[0]));
423 p2CA = couplingsPtr->af(abs(pID[2]));
424 p0CV = couplingsPtr->vf(abs(pID[0]));
425 p2CV = couplingsPtr->vf(abs(pID[2]));
433 void HMETwoFermions2Z2TwoFermions::initWaves(vector<HelicityParticle>& p) {
438 setFermionLine(0, p[0], p[1]);
439 setFermionLine(2, p[2], p[3]);
440 u4.push_back(Wave4(p[2].p() + p[3].p()));
443 s = max( 1., pow2(p[4].m()));
445 zaxis = (p[0].pAbs() == fabs(p[0].pz())) &&
446 (p[1].pAbs() == fabs(p[1].pz()));
454 complex HMETwoFermions2Z2TwoFermions::calculateME(vector<int> h) {
458 if (h[0] == h[1] && zaxis)
return answer;
459 for (
int mu = 0; mu <= 3; mu++) {
460 for (
int nu = 0; nu <= 3; nu++) {
462 (u[1][h[pMap[1]]] * gamma[mu] * (p0CV - p0CA * gamma[5]) *
464 (gamma[4](mu,nu) - gamma[4](mu,mu)*u[4][0](mu) *
465 gamma[4](nu,nu) * u[4][0](nu) / (zM*zM)) *
466 (u[3][h[pMap[3]]] * gamma[nu] * (p2CV - p2CA * gamma[5]) *
470 return answer / (16 * pow2(sin2W * cos2W) *
471 (s - zM*zM + complex(0, s*zG/zM)));
488 void HMETwoFermions2GammaZ2TwoFermions::initPointers(
489 ParticleData* particleDataPtrIn, Couplings* couplingsPtrIn) {
491 zHME.initPointers(particleDataPtrIn, couplingsPtrIn);
492 gHME.initPointers(particleDataPtrIn, couplingsPtrIn);
500 HelicityMatrixElement* HMETwoFermions2GammaZ2TwoFermions::initChannel(
501 vector<HelicityParticle>& p) {
513 void HMETwoFermions2GammaZ2TwoFermions::initWaves(
514 vector<HelicityParticle>& p) {
525 complex HMETwoFermions2GammaZ2TwoFermions::calculateME(vector<int> h) {
527 return zHME.calculateME(h) + gHME.calculateME(h);
545 void HMEZ2TwoFermions::initConstants() {
548 p2CA = couplingsPtr->af(abs(pID[2]));
549 p2CV = couplingsPtr->vf(abs(pID[2]));
557 void HMEZ2TwoFermions::initWaves(vector<HelicityParticle>& p) {
564 for (
int h = 0; h < p[pMap[1]].spinStates(); h++)
565 u1.push_back(p[pMap[1]].wave(h));
568 setFermionLine(2, p[2], p[3]);
576 complex HMEZ2TwoFermions::calculateME(vector<int> h) {
579 for (
int mu = 0; mu <= 3; mu++) {
581 u[0][h[pMap[1]]](mu) * (u[2][h[pMap[3]]] * gamma[mu]
582 * (p2CV - p2CA * gamma[5]) * u[1][h[pMap[2]]]);
609 void HMEHiggsEven2TwoFermions::initWaves(vector<HelicityParticle>& p) {
614 setFermionLine(2, p[2], p[3]);
622 complex HMEHiggsEven2TwoFermions::calculateME(vector<int> h) {
624 return (u[1][h[pMap[3]]] * (p2CV - p2CA * gamma[5]) * u[0][h[pMap[2]]]);
644 void HMEHiggsOdd2TwoFermions::initWaves(vector<HelicityParticle>& p) {
649 setFermionLine(2, p[2], p[3]);
657 complex HMEHiggsOdd2TwoFermions::calculateME(vector<int> h) {
659 return (u[1][h[pMap[3]]] * (p2CV - p2CA * gamma[5]) * u[0][h[pMap[2]]]);
678 void HMEHiggsCharged2TwoFermions::initWaves(vector<HelicityParticle>& p) {
683 if (pID[3] == 15 || pID[3] == -16) p2CA = 1;
685 setFermionLine(2, p[2], p[3]);
693 complex HMEHiggsCharged2TwoFermions::calculateME(vector<int> h) {
695 return (u[1][h[pMap[3]]] * (p2CV - p2CA * gamma[5]) * u[0][h[pMap[2]]]);
711 void HMEUnpolarized::calculateRho(
unsigned int idx,
712 vector<HelicityParticle>& p) {
714 for (
int i = 0; i < p[idx].spinStates(); i++ ) {
715 for (
int j = 1; j < p[idx].spinStates(); j++) {
716 if (i == j) p[idx].rho[i][j] = 1.0 /
717 static_cast<double>(p[idx].spinStates());
718 else p[idx].rho[i][j] = 0;
737 void HMETauDecay::initWaves(vector<HelicityParticle>& p) {
740 pMap.resize(p.size());
741 setFermionLine(0, p[0], p[1]);
742 initHadronicCurrent(p);
749 complex HMETauDecay::calculateME(vector<int> h) {
752 for (
int mu = 0; mu <= 3; mu++) {
754 (u[1][h[pMap[1]]] * gamma[mu] * (1 - gamma[5]) * u[0][h[pMap[0]]])
755 * gamma[4](mu,mu) * u[2][0](mu);
765 double HMETauDecay::decayWeightMax(vector<HelicityParticle>& p) {
768 double on = real(p[0].rho[0][0]) > real(p[0].rho[1][1]) ?
769 real(p[0].rho[0][0]) : real(p[0].rho[1][1]);
771 double off = fabs(real(p[0].rho[0][1])) + fabs(imag(p[0].rho[0][1]));
772 return DECAYWEIGHTMAX * (on + off);
780 void HMETauDecay::calculateResonanceWeights(vector<double>& phase,
781 vector<double>& amplitude, vector<complex>& weight) {
783 for (
unsigned int i = 0; i < phase.size(); i++)
784 weight.push_back(amplitude[i] * (cos(phase[i]) +
785 complex(0,1) * sin(phase[i])));
802 void HMETau2Meson::initConstants() {
804 DECAYWEIGHTMAX = 4*pow4(pM[0]);
812 void HMETau2Meson::initHadronicCurrent(vector<HelicityParticle>& p) {
816 u2.push_back(Wave4(p[2].p()));
831 void HMETau2TwoLeptons::initConstants() {
833 DECAYWEIGHTMAX = 16*pow4(pM[0]);
841 void HMETau2TwoLeptons::initWaves(vector<HelicityParticle>& p) {
845 setFermionLine(0,p[0],p[1]);
846 setFermionLine(2,p[2],p[3]);
854 complex HMETau2TwoLeptons::calculateME(vector<int> h) {
857 for (
int mu = 0; mu <= 3; mu++) {
858 answer += (u[1][h[pMap[1]]] * gamma[mu] * (1 - gamma[5])
859 * u[0][h[pMap[0]]]) * gamma[4](mu,mu) * (u[3][h[pMap[3]]]
860 * gamma[mu] * (1 - gamma[5]) * u[2][h[pMap[2]]]);
885 void HMETau2TwoMesonsViaVector::initConstants() {
888 vecM.clear(); vecG.clear(); vecP.clear(); vecA.clear(); vecW.clear();
891 if (abs(pID[2]) == 221) {
893 pM[2] = particleDataPtr->m0(211); pM[3] = particleDataPtr->m0(311);
894 vecM.push_back(0.8921); vecM.push_back(1.700);
895 vecG.push_back(0.0513); vecG.push_back(0.235);
896 vecP.push_back(0); vecP.push_back(M_PI);
897 vecA.push_back(1); vecA.push_back(0.038);
902 if (abs(pID[2]) == 111) DECAYWEIGHTMAX = 800;
903 else if (abs(pID[2]) == 311) DECAYWEIGHTMAX = 6;
904 pM[2] = particleDataPtr->m0(111); pM[3] = particleDataPtr->m0(211);
905 vecM.push_back(0.7746); vecM.push_back(1.4080); vecM.push_back(1.700);
906 vecG.push_back(0.1490); vecG.push_back(0.5020); vecG.push_back(0.235);
907 vecP.push_back(0); vecP.push_back(M_PI); vecP.push_back(0);
908 vecA.push_back(1.0); vecA.push_back(0.167); vecA.push_back(0.050);
910 calculateResonanceWeights(vecP, vecA, vecW);
918 void HMETau2TwoMesonsViaVector::initHadronicCurrent(
919 vector<HelicityParticle>& p) {
922 Wave4 u3(p[3].p() - p[2].p());
923 Wave4 u4(p[2].p() + p[3].p());
924 double s1 = m2(u3, u4);
927 for (
unsigned int i = 0; i < vecW.size(); i++)
928 sumBW += vecW[i] * pBreitWigner(pM[2], pM[3], s2, vecM[i], vecG[i]);
929 u2.push_back((u3 - s1 / s2 * u4) * sumBW);
956 void HMETau2TwoMesonsViaVectorScalar::initConstants() {
958 DECAYWEIGHTMAX = 5400;
960 scaM.clear(); scaG.clear(); scaP.clear(); scaA.clear(); scaW.clear();
961 vecM.clear(); vecG.clear(); vecP.clear(); vecA.clear(); vecW.clear();
964 scaM.push_back(0.878);
965 scaG.push_back(0.499);
968 calculateResonanceWeights(scaP, scaA, scaW);
971 vecM.push_back(0.89547); vecM.push_back(1.414);
972 vecG.push_back(0.04619); vecG.push_back(0.232);
973 vecP.push_back(0); vecP.push_back(1.4399);
974 vecA.push_back(1); vecA.push_back(0.075);
975 calculateResonanceWeights(vecP, vecA, vecW);
983 void HMETau2TwoMesonsViaVectorScalar::initHadronicCurrent(
984 vector<HelicityParticle>& p) {
987 Wave4 u3(p[3].p() - p[2].p());
988 Wave4 u4(p[2].p() + p[3].p());
989 double s1 = m2(u3,u4);
991 complex scaSumBW = 0; complex scaSumW = 0;
992 complex vecSumBW = 0; complex vecSumW = 0; complex vecSumBWM = 0;
993 for (
unsigned int i = 0; i < scaW.size(); i++) {
994 scaSumBW += scaW[i] * sBreitWigner(pM[2], pM[3], s2, scaM[i], scaG[i]);
997 for (
unsigned int i = 0; i < vecW.size(); i++) {
998 vecSumBW += vecW[i] * pBreitWigner(pM[2], pM[3], s2, vecM[i], vecG[i]);
999 vecSumBWM += vecW[i] * pBreitWigner(pM[2], pM[3], s2, vecM[i], vecG[i]) /
1003 u2.push_back(vecC * (vecSumBW * u3 - s1 * vecSumBWM * u4) / vecSumW +
1004 scaC * u4 * scaSumBW / scaSumW);
1030 void HMETau2ThreeMesons::initConstants() {
1041 void HMETau2ThreeMesons::initHadronicCurrent(vector<HelicityParticle>& p) {
1055 a1BW = a1BreitWigner(s1);
1062 Wave4 u3 = (f3 - f2) * q2 + (f1 - f3) * q3 + (f2 - f1) * q4;
1063 u3 = u3 - (u3 * gamma[4] * q / s1) * q;
1064 if (f4 != complex(0, 0))
1065 u3 = u3 + complex(0, 1) * f4 * epsilon(q2, q3, q4);
1075 void HMETau2ThreeMesons::initMode() {
1077 if (abs(pID[2]) == 111 && abs(pID[3]) == 111 && abs(pID[4]) == 211)
1079 else if (abs(pID[2]) == 211 && abs(pID[3]) == 211 && abs(pID[4]) == 211)
1081 else if (abs(pID[2]) == 111 && abs(pID[3]) == 211 && abs(pID[4]) == 311)
1083 else if (abs(pID[2]) == 211 && abs(pID[3]) == 211 && abs(pID[4]) == 321)
1085 else if (abs(pID[2]) == 111 && abs(pID[3]) == 211 && abs(pID[4]) == 221)
1087 else if (abs(pID[2]) == 211 && abs(pID[3]) == 321 && abs(pID[4]) == 321)
1089 else if (abs(pID[2]) == 111 && abs(pID[3]) == 311 && abs(pID[4]) == 321)
1091 else if (abs(pID[2]) == 130 && abs(pID[3]) == 211 && abs(pID[4]) == 310)
1093 else if (abs(pID[2]) == 111 && abs(pID[3]) == 111 && abs(pID[4]) == 321)
1095 else if (abs(pID[2]) == 130 && abs(pID[3]) == 130 && abs(pID[4]) == 211)
1097 else if (abs(pID[2]) == 211 && abs(pID[3]) == 310 && abs(pID[4]) == 310)
1099 else if (abs(pID[2]) == 211 && abs(pID[3]) == 311 && abs(pID[4]) == 311)
1109 void HMETau2ThreeMesons::initMomenta(vector<HelicityParticle>& p) {
1111 q = Wave4(p[2].p() + p[3].p() + p[4].p());
1113 if (mode == PimPimPip || mode == Pi0Pi0Pim) {
1114 q2 = Wave4(p[2].p()); q3 = Wave4(p[3].p()); q4 = Wave4(p[4].p());
1116 }
else if (mode == PimKmKp) {
1117 q2 = Wave4(p[3].p()); q3 = Wave4(p[2].p()); q4 = Wave4(p[4].p());
1119 }
else if (mode == PimK0bK0) {
1120 q2 = Wave4(p[3].p()); q3 = Wave4(p[2].p()); q4 = Wave4(p[4].p());
1122 }
else if (mode == PimKsKs) {
1123 q2 = Wave4(p[3].p()); q3 = Wave4(p[2].p()); q4 = Wave4(p[4].p());
1125 }
else if (mode == KlKlPim) {
1126 q2 = Wave4(p[2].p()); q3 = Wave4(p[4].p()); q4 = Wave4(p[3].p());
1128 }
else if (mode == KlPimKs) {
1129 q2 = Wave4(p[4].p()); q3 = Wave4(p[3].p()); q4 = Wave4(p[2].p());
1131 else if (mode == Pi0K0Km) {
1132 q2 = Wave4(p[4].p()); q3 = Wave4(p[2].p()); q4 = Wave4(p[3].p());
1134 else if (mode == Pi0Pi0Km) {
1135 q2 = Wave4(p[2].p()); q3 = Wave4(p[3].p()); q4 = Wave4(p[4].p());
1137 else if (mode == PimPipKm) {
1138 q2 = Wave4(p[4].p()); q3 = Wave4(p[2].p()); q4 = Wave4(p[3].p());
1140 else if (mode == Pi0PimK0b) {
1141 q2 = Wave4(p[3].p()); q3 = Wave4(p[4].p()); q4 = Wave4(p[2].p());
1143 else if (mode == Pi0PimEta) {
1144 q2 = Wave4(p[3].p()); q3 = Wave4(p[2].p()); q4 = Wave4(p[4].p());
1154 double HMETau2ThreeMesons::a1PhaseSpace(
double s) {
1156 double piM = 0.13957;
1157 double rhoM = 0.773;
1158 if (s < pow2(3 * piM))
1160 else if (s < pow2(rhoM + piM)) {
1161 double sum = (s - 9 * piM * piM);
1162 return 4.1 * sum * sum * sum * (1 - 3.3 * sum + 5.8 * sum * sum);
1165 return s * (1.623 + 10.38 / s - 9.32 / (s * s) + 0.65 / (s * s * s));
1174 complex HMETau2ThreeMesons::a1BreitWigner(
double s) {
1178 return a1M * a1M / (a1M * a1M - s - complex(0,1) * a1M * a1G
1179 * a1PhaseSpace(s) / a1PhaseSpace(a1M * a1M));
1187 complex HMETau2ThreeMesons::T(
double m0,
double m1,
double s,
1188 vector<double> &M, vector<double> &G, vector<double> &W) {
1192 for (
unsigned int i = 0; i < M.size(); i++) {
1193 num += W[i] * pBreitWigner(m0, m1, s, M[i], G[i]);
1204 complex HMETau2ThreeMesons::T(
double s, vector<double> &M,
1205 vector<double> &G, vector<double> &W) {
1209 for (
unsigned int i = 0; i < M.size(); i++) {
1210 num += W[i] * breitWigner(s, M[i], G[i]);
1245 void HMETau2ThreePions::initResonances() {
1248 if (mode == PimPimPip) DECAYWEIGHTMAX = 6000;
1251 else DECAYWEIGHTMAX = 3000;
1254 rhoM.clear(); rhoG.clear();
1255 rhoPp.clear(); rhoAp.clear(); rhoWp.clear();
1256 rhoPd.clear(); rhoAd.clear(); rhoWd.clear();
1259 rhoM.push_back(.7743); rhoM.push_back(1.370); rhoM.push_back(1.720);
1260 rhoG.push_back(.1491); rhoG.push_back(.386); rhoG.push_back(.250);
1261 rhoPp.push_back(0); rhoPp.push_back(3.11018); rhoPp.push_back(0);
1262 rhoAp.push_back(1); rhoAp.push_back(0.12); rhoAp.push_back(0);
1263 rhoPd.push_back(-0.471239); rhoPd.push_back(1.66504); rhoPd.push_back(0);
1264 rhoAd.push_back(3.7e-07); rhoAd.push_back(8.7e-07); rhoAd.push_back(0);
1267 f0M = 1.186; f2M = 1.275; sigM = 0.860;
1268 f0G = 0.350; f2G = 0.185; sigG = 0.880;
1269 f0P = -1.69646; f2P = 1.75929; sigP = 0.722566;
1270 f0A = 0.77; f2A = 7.1e-07; sigA = 2.1;
1273 calculateResonanceWeights(rhoPp, rhoAp, rhoWp);
1274 calculateResonanceWeights(rhoPd, rhoAd, rhoWd);
1275 f0W = f0A * (cos(f0P) + complex(0,1) * sin(f0P));
1276 f2W = f2A * (cos(f2P) + complex(0,1) * sin(f2P));
1277 sigW = sigA * (cos(sigP) + complex(0,1) * sin(sigP));
1285 complex HMETau2ThreePions::F1() {
1287 complex answer(0,0);
1290 if (mode == PimPimPip) {
1291 for (
unsigned int i = 0; i < rhoM.size(); i++) {
1292 answer += - rhoWp[i] * pBreitWigner(pM[3], pM[4], s2, rhoM[i], rhoG[i])
1293 - rhoWd[i] / 3.0 * pBreitWigner(pM[2], pM[4], s3, rhoM[i], rhoG[i])
1296 answer += -2.0 / 3.0 * (sigW * sBreitWigner(pM[2], pM[4], s3, sigM, sigG)
1297 + f0W * sBreitWigner(pM[2], pM[4], s3, f0M, f0G));
1298 answer += f2W * (0.5 * (s4 - s3)
1299 * dBreitWigner(pM[3], pM[4], s2, f2M, f2G)
1300 - 1.0 / (18 * s3) * (4 * pow2(pM[2]) - s3)
1301 * (s1 + s3 - pow2(pM[2]))
1302 * dBreitWigner(pM[2], pM[4], s3, f2M, f2G));
1307 for (
unsigned int i = 0; i < rhoM.size(); i++) {
1308 answer += rhoWp[i] * pBreitWigner(pM[3], pM[4], s2, rhoM[i], rhoG[i])
1309 - rhoWd[i] / 3.0 * pBreitWigner(pM[2], pM[4], s3, rhoM[i], rhoG[i])
1310 * (s4 - s2 - pow2(pM[4]) + pow2(pM[2]));
1312 answer += 2.0 / 3.0 * (sigW * sBreitWigner(pM[2], pM[3], s4, sigM, sigG)
1313 + f0W * sBreitWigner(pM[2], pM[3], s4, f0M, f0G));
1314 answer += f2W / (18 * s4) * (s1 - pow2(pM[4]) + s4)
1315 * (4 * pow2(pM[2]) - s4) * dBreitWigner(pM[2], pM[3], s4, f2M, f2G);
1317 return a1BW * answer;
1325 complex HMETau2ThreePions::F2() {
1327 complex answer(0,0);
1330 if (mode == PimPimPip) {
1331 for (
unsigned int i = 0; i < rhoM.size(); i++) {
1332 answer += -rhoWp[i] * pBreitWigner(pM[2], pM[4], s3, rhoM[i], rhoG[i])
1333 - rhoWd[i] / 3.0 * pBreitWigner(pM[3], pM[4], s2, rhoM[i], rhoG[i])
1336 answer += -2.0 / 3.0 * (sigW * sBreitWigner(pM[3], pM[4], s2, sigM, sigG)
1337 + f0W * sBreitWigner(pM[3], pM[4], s2, f0M, f0G));
1338 answer += f2W * (0.5 * (s4 - s2)
1339 * dBreitWigner(pM[2], pM[4], s3, f2M, f2G)
1340 - 1.0 / (18 * s2) * (4 * pow2(pM[2]) - s2) * (s1 + s2 - pow2(pM[2]))
1341 * dBreitWigner(pM[3], pM[4], s2, f2M, f2G));
1346 for (
unsigned int i = 0; i < rhoM.size(); i++) {
1347 answer += -rhoWp[i] / 3.0 *
1348 pBreitWigner(pM[2], pM[4], s3, rhoM[i], rhoG[i]) -
1349 rhoWd[i] * pBreitWigner(pM[3], pM[4], s2, rhoM[i], rhoG[i]) *
1350 (s4 - s3 - pow2(pM[4]) + pow2(pM[3]));
1352 answer += 2.0 / 3.0 * (sigW * sBreitWigner(pM[2], pM[3], s4, sigM, sigG)
1353 + f0W * sBreitWigner(pM[2], pM[3], s4, f0M, f0G));
1354 answer += f2W / (18 * s4) * (s1 - pow2(pM[4]) + s4) *
1355 (4 * pow2(pM[2]) - s4) * dBreitWigner(pM[2], pM[3], s4, f2M, f2G);
1357 return -a1BW * answer;
1365 complex HMETau2ThreePions::F3() {
1367 complex answer(0,0);
1370 if (mode == PimPimPip) {
1371 for (
unsigned int i = 0; i < rhoM.size(); i++) {
1372 answer += -rhoWd[i] * (1.0 / 3.0 * (s3 - s4)
1373 * pBreitWigner(pM[3], pM[4], s2, rhoM[i], rhoG[i]) - 1.0 / 3.0
1374 * (s2 - s4) * pBreitWigner(pM[2], pM[4], s3, rhoM[i], rhoG[i]));
1376 answer += -2.0 / 3.0 * (sigW * sBreitWigner(pM[3], pM[4], s2, sigM, sigG)
1377 + f0W * sBreitWigner(pM[3], pM[4], s2, f0M, f0G));
1378 answer += 2.0 / 3.0 * (sigW * sBreitWigner(pM[2], pM[4], s3, sigM, sigG)
1379 + f0W * sBreitWigner(pM[2], pM[4], s3, f0M, f0G));
1380 answer += f2W * (-1.0 / (18 * s2) * (4 * pow2(pM[2]) - s2)
1381 * (s1 + s2 - pow2(pM[2])) * dBreitWigner(pM[3], pM[4], s2, f2M, f2G)
1382 + 1.0 / (18 * s3) * (4 * pow2(pM[2]) - s3) * (s1 + s3 - pow2(pM[2]))
1383 * dBreitWigner(pM[2], pM[4], s3, f2M, f2G));
1388 for (
unsigned int i = 0; i < rhoM.size(); i++) {
1389 answer += rhoWd[i] * (-1.0 / 3.0 * (s4 - s3 - pow2(pM[4]) + pow2(pM[3]))
1390 * pBreitWigner(pM[3], pM[4], s2, rhoM[i], rhoG[i])
1391 + 1.0 / 3.0 * (s4 - s2 - pow2(pM[4]) + pow2(pM[2]))
1392 * pBreitWigner(pM[2], pM[4], s3, rhoM[i], rhoG[i]));
1394 answer += -f2W / 2.0 * (s2 - s3)
1395 * dBreitWigner(pM[2], pM[3], s4, f2M, f2G);
1397 return a1BW * answer;
1405 double HMETau2ThreePions::a1PhaseSpace(
double s) {
1407 double picM = 0.1753;
1408 double pinM = 0.1676;
1414 double piW = pow2(0.2384)/1.0252088;
1415 double kW = pow2(4.7621);
1421 picG = 5.80900 * pow3(s - picM) * (1.0 - 3.00980 * (s - picM) +
1422 4.5792 * pow2(s - picM));
1424 picG = -13.91400 + 27.67900 * s - 13.39300 * pow2(s) + 3.19240 * pow3(s)
1425 - 0.10487 * pow4(s);
1431 pinG = 6.28450 * pow3(s - pinM) * (1.0 - 2.95950 * (s - pinM) +
1432 4.33550 * pow2(s - pinM));
1434 pinG = -15.41100 + 32.08800 * s - 17.66600 * pow2(s) + 4.93550 * pow3(s)
1435 - 0.37498 * pow4(s);
1438 if (s > pow2(ksM + kM))
1439 kG = 0.5 * sqrt((s - pow2(ksM + kM)) * (s - pow2(ksM - kM))) / s;
1440 return piW*(picG + pinG + kW*kG);
1448 complex HMETau2ThreePions::a1BreitWigner(
double s) {
1451 return a1M*a1M/(a1M*a1M - s - complex(0,1)*a1PhaseSpace(s));
1476 void HMETau2ThreeMesonsWithKaons::initResonances() {
1479 if (mode == PimKmKp) DECAYWEIGHTMAX = 130;
1481 else if (mode == PimK0bK0) DECAYWEIGHTMAX = 115;
1483 else if (mode == PimKsKs || mode == KlKlPim) DECAYWEIGHTMAX = 230;
1485 else if (mode == KlPimKs) DECAYWEIGHTMAX = 230;
1487 else if (mode == Pi0K0Km) DECAYWEIGHTMAX = 125;
1489 else if (mode == Pi0Pi0Km) DECAYWEIGHTMAX = 2.5e4;
1491 else if (mode == PimPipKm) DECAYWEIGHTMAX = 1.8e4;
1493 else if (mode == Pi0PimK0b) DECAYWEIGHTMAX = 3.9e4;
1496 rhoMa.clear(); rhoGa.clear(); rhoWa.clear();
1497 rhoMv.clear(); rhoGv.clear(); rhoWv.clear();
1498 kstarMa.clear(); kstarGa.clear(); kstarWa.clear();
1499 kstarMv.clear(); kstarGv.clear(); kstarWv.clear();
1500 k1Ma.clear(); k1Ga.clear(); k1Wa.clear();
1501 k1Mb.clear(); k1Gb.clear(); k1Wb.clear();
1502 omegaM.clear(); omegaG.clear(); omegaW.clear();
1505 rhoMa.push_back(0.773); rhoGa.push_back(0.145); rhoWa.push_back(1);
1506 rhoMa.push_back(1.370); rhoGa.push_back(0.510); rhoWa.push_back(-0.145);
1507 rhoMv.push_back(0.773); rhoGv.push_back(0.145); rhoWv.push_back(1);
1508 rhoMv.push_back(1.500); rhoGv.push_back(0.220); rhoWv.push_back(-6.5 / 26.0);
1509 rhoMv.push_back(1.750); rhoGv.push_back(0.120); rhoWv.push_back(-1.0 / 26.0);
1512 kstarMa.push_back(0.892); kstarGa.push_back(0.050);
1513 kstarMa.push_back(1.412); kstarGa.push_back(0.227);
1514 kstarWa.push_back(1);
1515 kstarWa.push_back(-0.135);
1516 kstarMv.push_back(0.892); kstarGv.push_back(0.050);
1517 kstarMv.push_back(1.412); kstarGv.push_back(0.227);
1518 kstarMv.push_back(1.714); kstarGv.push_back(0.323);
1519 kstarWv.push_back(1);
1520 kstarWv.push_back(-6.5 / 26.0);
1521 kstarWv.push_back(-1.0 / 26.0);
1524 k1Ma.push_back(1.270); k1Ga.push_back(0.090); k1Wa.push_back(0.33);
1525 k1Ma.push_back(1.402); k1Ga.push_back(0.174); k1Wa.push_back(1);
1526 k1Mb.push_back(1.270); k1Gb.push_back(0.090); k1Wb.push_back(1);
1529 omegaM.push_back(0.782); omegaG.push_back(0.00843); omegaW.push_back(1);
1530 omegaM.push_back(1.020); omegaG.push_back(0.00443); omegaW.push_back(0.05);
1533 kM = 0.49765; piM = 0.13957; piW = 0.0942;
1541 complex HMETau2ThreeMesonsWithKaons::F1() {
1545 if (mode == PimKmKp)
1546 answer = a1BW * T(piM, kM, s2, kstarMa, kstarGa, kstarWa) / 2.0;
1548 else if (mode == PimK0bK0)
1549 answer = a1BW * T(piM, kM, s2, kstarMa, kstarGa, kstarWa) / 2.0;
1551 else if (mode == PimKsKs || mode == KlKlPim)
1552 answer = -a1BW * (T(piM, kM, s2, kstarMa, kstarGa, kstarWa)
1553 + T(piM, kM, s4, kstarMa, kstarGa, kstarWa)) / 2.0;
1555 else if (mode == KlPimKs)
1556 answer = a1BW * (T(piM, kM, s2, kstarMa, kstarGa, kstarWa)
1557 - T(piM, kM, s4, kstarMa, kstarGa, kstarWa)) / 2.0;
1559 else if (mode == Pi0K0Km)
1560 answer = a1BW * (T(piM, kM, s2, kstarMa, kstarGa, kstarWa)
1561 - T(piM, kM, s4, kstarMa, kstarGa, kstarWa)) / 2.0;
1563 else if (mode == Pi0Pi0Km)
1564 answer = T(s1, k1Ma, k1Ga, k1Wa)
1565 * T(piM, kM, s2, kstarMa, kstarGa, kstarWa);
1567 else if (mode == PimPipKm)
1568 answer = T(s1, k1Mb, k1Gb, k1Wb)
1569 * T(piM, piM, s2, rhoMa, rhoGa, rhoWa);
1571 else if (mode == Pi0PimK0b)
1572 answer = T(s1, k1Ma, k1Ga, k1Wa)
1573 * (T(piM, kM, s2, kstarMa, kstarGa, kstarWa)
1574 - T(piM, kM, s4, kstarMa, kstarGa, kstarWa));
1575 return -1.0 / 3.0 * answer;
1582 complex HMETau2ThreeMesonsWithKaons::F2() {
1586 if (mode == PimKmKp)
1587 answer = a1BW * T(piM, piM, s3, rhoMa, rhoGa, rhoWa) / 2.0;
1589 else if (mode == PimK0bK0)
1590 answer = a1BW * T(piM, piM, s3, rhoMa, rhoGa, rhoWa) / 2.0;
1592 else if (mode == PimKsKs || mode == KlKlPim)
1593 answer = a1BW * T(piM, kM, s4, kstarMa, kstarGa, kstarWa) / 2.0;
1595 else if (mode == KlPimKs)
1596 answer = a1BW * (2.0 * T(piM, piM, s3, rhoMa, rhoGa, rhoWa)
1597 + T(piM, kM, s4, kstarMa, kstarGa, kstarWa)) / 2.0;
1599 else if (mode == Pi0K0Km)
1600 answer = a1BW * (2.0 * T(piM, piM, s3, rhoMa, rhoGa, rhoWa)
1601 + T(piM, kM, s4, kstarMa, kstarGa, kstarWa)) / 2.0;
1603 else if (mode == Pi0Pi0Km)
1604 answer = T(s1, k1Ma, k1Ga, k1Wa)
1605 * T(piM, kM, s3, kstarMa, kstarGa, kstarWa);
1607 else if (mode == PimPipKm)
1608 answer = T(s1, k1Ma, k1Ga, k1Wa)
1609 * T(piM, kM, s3, kstarMa, kstarGa, kstarWa);
1611 else if (mode == Pi0PimK0b)
1612 answer = 2.0 * T(s1, k1Mb, k1Gb, k1Wb)
1613 * T(piM, piM, s3, rhoMa, rhoGa, rhoWa)
1614 + T(s1, k1Ma, k1Ga, k1Wa) * T(piM, kM, s4, kstarMa, kstarGa, kstarWa);
1615 return 1.0 / 3.0 * answer;
1623 complex HMETau2ThreeMesonsWithKaons::F4() {
1627 if (mode == PimKmKp)
1628 answer = (sqrt(2.) - 1) * T(piM, piM, s1, rhoMv, rhoGv, rhoWv)
1629 * (sqrt(2.) * T(s3, omegaM, omegaG, omegaW)
1630 + T(piM, kM, s2, kstarMa, kstarGa, kstarWa));
1632 else if (mode == PimK0bK0)
1633 answer = -(sqrt(2.) - 1) * T(piM, piM, s1, rhoMv, rhoGv, rhoWv)
1634 * (sqrt(2.) * T(s3, omegaM, omegaG, omegaW)
1635 + T(piM, kM, s2, kstarMa, kstarGa, kstarWa));
1637 else if (mode == PimKsKs || mode == KlKlPim)
1638 answer = (sqrt(2.) - 1) * T(piM, piM, s1, rhoMv, rhoGv, rhoWv)
1639 * (T(piM, kM, s2, kstarMa, kstarGa, kstarWa)
1640 - T(piM, kM, s4, kstarMa, kstarGa, kstarWa));
1642 else if (mode == KlPimKs)
1643 answer = -(sqrt(2.) - 1) * T(piM, piM, s1, rhoMv, rhoGv, rhoWv)
1644 * (2 * sqrt(2.) * T(s3, omegaM, omegaG, omegaW)
1645 + T(piM, kM, s2, kstarMa, kstarGa, kstarWa)
1646 + T(piM, kM, s4, kstarMa, kstarGa, kstarWa));
1648 else if (mode == Pi0K0Km)
1649 answer = -(sqrt(2.) - 1) * T(piM, piM, s1, rhoMv, rhoGv, rhoWv)
1650 * (T(piM, kM, s4, kstarMa, kstarGa, kstarWa)
1651 - T(piM, kM, s2, kstarMa, kstarGa, kstarWa));
1653 else if (mode == Pi0Pi0Km)
1654 answer = T(piM, kM, s1, kstarMv, kstarGv, kstarWv)
1655 * (T(piM, kM, s2, kstarMa, kstarGa, kstarWa)
1656 - T(piM, kM, s3, kstarMa, kstarGa, kstarWa));
1658 else if (mode == PimPipKm)
1659 answer = -T(piM, kM, s1, kstarMv, kstarGv, kstarWv)
1660 * (T(piM, piM, s2, rhoMa, rhoGa, rhoWa)
1661 + T(piM, kM, s3, kstarMa, kstarGa, kstarWa));
1663 else if (mode == Pi0PimK0b)
1664 answer = T(piM, kM, s1, kstarMv, kstarGv, kstarWv)
1665 * (2.0 * T(piM, piM, s3, rhoMa, rhoGa, rhoWa)
1666 + T(piM, kM, s2, kstarMa, kstarGa, kstarWa)
1667 + T(piM, kM, s4, kstarMa, kstarGa, kstarWa));
1668 return 1.0 / (8.0 * M_PI * M_PI * piW * piW) * answer;
1690 void HMETau2ThreeMesonsGeneric::initResonances() {
1693 if (mode == PimPimPip || mode == Pi0Pi0Pim) DECAYWEIGHTMAX = 1.3e4;
1695 else if (mode == PimKmKp) DECAYWEIGHTMAX = 330;
1697 else if (mode == PimK0bK0) DECAYWEIGHTMAX = 300;
1699 else if (mode == Pi0K0Km) DECAYWEIGHTMAX = 40;
1701 else if (mode == Pi0Pi0Km) DECAYWEIGHTMAX = 9.4e4;
1703 else if (mode == PimPipKm) DECAYWEIGHTMAX = 9.0e3;
1705 else if (mode == Pi0PimK0b) DECAYWEIGHTMAX = 1.2e4;
1707 else if (mode == Pi0PimEta) DECAYWEIGHTMAX = 360;
1710 rhoMa.clear(); rhoGa.clear(); rhoWa.clear();
1711 rhoMv.clear(); rhoGv.clear(); rhoWv.clear();
1712 kstarM.clear(); kstarG.clear(); kstarW.clear();
1713 k1M.clear(); k1G.clear(); k1W.clear();
1716 rhoMa.push_back(0.773); rhoGa.push_back(0.145); rhoWa.push_back(1);
1717 rhoMa.push_back(1.370); rhoGa.push_back(0.510); rhoWa.push_back(-0.145);
1718 rhoMv.push_back(0.773); rhoGv.push_back(0.145); rhoWv.push_back(-26);
1719 rhoMv.push_back(1.5); rhoGv.push_back(0.220); rhoWv.push_back(6.5);
1720 rhoMv.push_back(1.75); rhoGv.push_back(0.120); rhoWv.push_back(1);
1723 kstarM.push_back(0.892); kstarG.push_back(0.0513); kstarW.push_back(1);
1724 k1M.push_back(1.402); k1G.push_back(0.174); k1W.push_back(1);
1727 kM = 0.49765; piM = 0.13957; piW = 0.0942;
1735 complex HMETau2ThreeMesonsGeneric::F1() {
1739 if (mode == PimPimPip || mode == Pi0Pi0Pim)
1740 answer = a1BW * T(piM, piM, s2, rhoMa, rhoGa, rhoWa);
1742 else if (mode == PimKmKp)
1743 answer = -a1BW * T(piM, kM, s2, kstarM, kstarG, kstarW) / 3.0;
1745 else if (mode == PimK0bK0)
1746 answer = -a1BW * T(piM, kM, s2, kstarM, kstarG, kstarW) / 3.0;
1748 else if (mode == Pi0K0Km)
1751 else if (mode == Pi0Pi0Km)
1752 answer = T(s1, k1M, k1G, k1W) * T(piM, kM, s2, kstarM, kstarG, kstarW);
1754 else if (mode == PimPipKm)
1755 answer = -T(s1, k1M, k1G, k1W) * T(piM, piM, s2, rhoMa, rhoGa, rhoWa)
1758 else if (mode == Pi0PimK0b)
1761 else if (mode == Pi0PimEta)
1771 complex HMETau2ThreeMesonsGeneric::F2() {
1775 if (mode == PimPimPip || mode == Pi0Pi0Pim)
1776 answer = -a1BW * T(piM, piM, s3, rhoMa, rhoGa, rhoWa);
1778 else if (mode == PimKmKp)
1779 answer = a1BW * T(piM, piM, s3, rhoMa, rhoGa, rhoWa) / 3.0;
1781 else if (mode == PimK0bK0)
1782 answer = a1BW * T(piM, piM, s3, rhoMa, rhoGa, rhoWa) / 3.0;
1784 else if (mode == Pi0K0Km)
1785 answer = a1BW * T(piM, piM, s3, rhoMa, rhoGa, rhoWa);
1787 else if (mode == Pi0Pi0Km)
1788 answer = -T(s1, k1M, k1G, k1W) * T(piM, kM, s3, kstarM, kstarG, kstarW);
1790 else if (mode == PimPipKm)
1791 answer = T(s1, k1M, k1G, k1W)
1792 * T(piM, kM, s3, kstarM, kstarG, kstarW) / 3.0;
1794 else if (mode == Pi0PimK0b)
1795 answer = T(s1, k1M, k1G, k1W) * T(piM, piM, s3, rhoMa, rhoGa, rhoWa);
1797 else if (mode == Pi0PimEta)
1807 complex HMETau2ThreeMesonsGeneric::F4() {
1811 if (mode == PimPimPip || mode == Pi0Pi0Pim)
1814 else if (mode == PimKmKp)
1815 answer = T(piM, piM, s1, rhoMv, rhoGv, rhoWv)
1816 * (T(piM, piM, s3, rhoMa, rhoGa, rhoWa)
1817 - 0.2 * T(piM, kM, s2, kstarM, kstarG, kstarW)) * (1.25);
1819 else if (mode == PimK0bK0)
1820 answer = -T(piM, piM, s1, rhoMv, rhoGv, rhoWv)
1821 * (T(piM, piM, s3, rhoMa, rhoGa, rhoWa)
1822 - 0.2 * T(piM, kM, s2, kstarM, kstarG, kstarW)) * (1.25);
1824 else if (mode == Pi0K0Km)
1827 else if (mode == Pi0Pi0Km)
1830 else if (mode == PimPipKm)
1831 answer = -T(piM, kM, s1, kstarM, kstarG, kstarW)
1832 * (T(piM, piM, s2, rhoMa, rhoGa, rhoWa)
1833 - 0.2 * T(piM, kM, s3, kstarM, kstarG, kstarW)) * (1.25);
1835 else if (mode == Pi0PimK0b)
1836 answer = 2.0 * T(piM, kM, s1, kstarM, kstarG, kstarW)
1837 * (T(piM, piM, s3, rhoMa, rhoGa, rhoWa)
1838 - 0.2 * T(piM, kM, s2, kstarM, kstarG, kstarW)) * (1.25);
1840 else if (mode == Pi0PimEta)
1841 answer = T(piM, piM, s1, rhoMv, rhoGv, rhoWv)
1842 * T(piM, piM, s4, rhoMa, rhoGa, rhoWa);
1843 return 1.0 / (4.0 * M_PI * M_PI * piW * piW) * answer;
1864 void HMETau2TwoPionsGamma::initConstants() {
1866 DECAYWEIGHTMAX = 4e4;
1869 rhoM.clear(); rhoG.clear(); rhoW.clear();
1870 omegaM.clear(); omegaG.clear(); omegaW.clear();
1873 rhoM.push_back(0.773); rhoG.push_back(0.145); rhoW.push_back(1);
1874 rhoM.push_back(1.7); rhoG.push_back(0.26); rhoW.push_back(-0.1);
1875 omegaM.push_back(0.782); omegaG.push_back(0.0085); omegaW.push_back(1);
1883 void HMETau2TwoPionsGamma::initWaves(vector<HelicityParticle>& p) {
1887 pMap.resize(p.size());
1888 setFermionLine(0, p[0], p[1]);
1892 Wave4 q(p[2].p() + p[3].p() + p[4].p());
1893 Wave4 q2(p[2].p()), q3(p[3].p()), q4(p[4].p());
1895 double s2 = m2(q3 + q2);
1896 complex f = F(s1, rhoM, rhoG, rhoW) * F(0, rhoM, rhoG, rhoW)
1897 * F(s2, omegaM, omegaG, omegaW);
1898 double q4q2 = m2(q4, q2);
1899 double q4q3 = m2(q4, q3);
1900 double q3q2 = m2(q3, q2);
1901 for (
int h = 0; h < 2; h++) {
1902 Wave4 e = p[2].wave(h);
1903 complex q4e = q4*gamma[4]*e;
1904 complex q3e = q3*gamma[4]*e;
1905 u2.push_back(f * (e * (piM*piM*q4q2 - q3q2*(q4q3 - q4q2))
1906 - q3 * (q3e*q4q2 - q4e*q3q2)
1907 + q2 * (q3e*q4q3 - q4e*(piM*piM + q3q2))));
1916 complex HMETau2TwoPionsGamma::calculateME(vector<int> h) {
1918 complex answer(0,0);
1919 for (
int mu = 0; mu <= 3; mu++) {
1921 (u[1][h[pMap[1]]] * gamma[mu] * (1 - gamma[5]) * u[0][h[pMap[0]]])
1922 * gamma[4](mu,mu) * u[2][h[2]](mu);
1931 complex HMETau2TwoPionsGamma::F(
double s, vector<double> M, vector<double> G,
1934 complex answer(0, 0);
1935 for (
unsigned int i = 0; i < M.size(); i++)
1936 answer += W[i] / (M[i]*M[i] - s - complex(0, 1) * M[i] * G[i]);
1971 void HMETau2FourPions::initConstants() {
1973 if (abs(pID[3]) == 111) DECAYWEIGHTMAX = 5e8;
1974 else DECAYWEIGHTMAX = 5e9;
1975 pinM = particleDataPtr->m0(111);
1976 picM = particleDataPtr->m0(211);
1977 sigM = 0.8; omeM = 0.782; a1M = 1.23; rhoM = 0.7761;
1978 sigG = 0.8; omeG = 0.00841; a1G = 0.45; rhoG = 0.1445;
1979 sigP = 0.43585; omeP = 0.0;
1980 sigA = 1.39987; omeA = 1.0;
1981 sigW = sigA*(cos(sigP)+complex(0,1)*sin(sigP));
1982 omeW = omeA*(cos(omeP)+complex(0,1)*sin(omeP));
1991 void HMETau2FourPions::initHadronicCurrent(vector<HelicityParticle>& p) {
1996 Wave4 q(p[2].p() + p[3].p() + p[4].p()+ p[5].p());
1997 Wave4 q2(p[2].p()), q3(p[3].p()), q4(p[4].p()), q5(p[5].p());
2003 if (abs(pID[3]) == 111)
2004 u2.push_back(G(1,s)*(t1(q,q3,q4,q5,q2) + t1(q,q3,q2,q5,q4) +
2005 t1(q,q4,q3,q5,q2) + t1(q,q4,q2,q5,q3) +
2006 t1(q,q2,q3,q5,q4) + t1(q,q2,q4,q5,q3) +
2007 t2(q,q3,q5,q4,q2) + t2(q,q4,q5,q3,q2) +
2008 t2(q,q2,q5,q4,q3) - t2(q,q5,q3,q4,q2) -
2009 t2(q,q5,q4,q3,q2) - t2(q,q5,q2,q4,q3)));
2012 else if (abs(pID[3]) == 211)
2013 u2.push_back(G(2,s)*(t1(q,q3,q5,q4,q2) + t1(q,q4,q5,q3,q2) +
2014 t1(q,q3,q4,q5,q2) + t1(q,q4,q3,q5,q2) +
2015 t1(q,q2,q4,q3,q5) + t1(q,q2,q3,q4,q5) +
2016 t2(q,q2,q4,q3,q5) + t2(q,q2,q3,q4,q5) -
2017 t2(q,q3,q2,q4,q5) - t2(q,q4,q2,q3,q5)) +
2018 G(3,s)*(t3(q,q3,q5,q4,q2) + t3(q,q4,q5,q3,q2) -
2019 t3(q,q3,q4,q5,q2) - t3(q,q4,q3,q5,q2) -
2020 t3(q,q3,q2,q4,q5) - t3(q,q4,q2,q3,q5)));
2029 Wave4 HMETau2FourPions::t1(Wave4 &q, Wave4 &q1, Wave4 &q2,
2030 Wave4 &q3, Wave4 &q4) {
2032 Wave4 a1Q(q2 + q3 + q4);
2033 Wave4 rhoQ(q3 + q4);
2034 double a1S = m2(a1Q);
2035 double rhoS = m2(rhoQ);
2038 double gM = sqrtpos(rhoM*rhoM - 4*picM*picM) * (rhoM*rhoM - 4*picM*picM)
2040 double dm = (rhoFormFactor1(0) - rhoFormFactor1(rhoM*rhoM) +
2041 rhoM*rhoM * rhoFormFactor2(rhoM*rhoM)) / gM;
2042 return - a1FormFactor(a1S) / (a1D(a1S) * rhoD(rhoS)) * pow2(a1M) *
2043 (rhoM*rhoM + rhoM*rhoG*dm) *
2044 (m2(q,a1Q) * (m2(q3,a1Q) * q4 - m2(q4,a1Q) * q3) +
2045 (m2(q,q4) * m2(q1,q3) - m2(q,q3) * m2(q1,q4)) * a1Q);
2053 Wave4 HMETau2FourPions::t2(Wave4 &q, Wave4 &, Wave4 &q2,
2054 Wave4 &q3, Wave4 &q4) {
2056 Wave4 a1Q(q2 + q3 + q4);
2057 Wave4 sigQ(q3 + q4);
2058 double a1S = m2(a1Q);
2059 double sigS = m2(sigQ);
2060 return sigW * a1FormFactor(a1S) / (a1D(a1S) * sigD(sigS)) *
2061 pow2(a1M) * pow2(sigM) * (m2(q,a1Q) * a1S * q2 - m2(q,q2) * a1S * a1Q);
2069 Wave4 HMETau2FourPions::t3(Wave4 &q, Wave4 &q1, Wave4 &q2,
2070 Wave4 &q3, Wave4 &q4) {
2071 Wave4 omeQ(q2 + q3 + q4);
2072 Wave4 rhoQ(q3 + q4);
2073 double omeS = m2(omeQ);
2074 double rhoS = m2(rhoQ);
2077 double gM = sqrtpos(rhoM*rhoM - 4*picM*picM) * (rhoM*rhoM - 4*picM*picM)
2079 double dm = (rhoFormFactor1(0) - rhoFormFactor1(rhoM*rhoM) +
2080 rhoM*rhoM * rhoFormFactor2(rhoM*rhoM)) / gM;
2081 return omeW * omeFormFactor(omeS) / (omeD(omeS) * rhoD(rhoS)) *
2082 pow2(omeM) * (rhoM*rhoM + rhoM*rhoG*dm) *
2083 ((m2(q,q3) * m2(q1,q4) - m2(q,q4) * m2(q1,q3)) * q2 +
2084 (m2(q,q4) * m2(q1,q2) - m2(q,q2) * m2(q1,q4)) * q3 +
2085 (m2(q,q2) * m2(q1,q3) - m2(q,q3) * m2(q1,q2)) * q4);
2093 complex HMETau2FourPions::a1D(
double s) {
2099 double piM = 0.16960;
2100 double rM = 0.83425;
2108 rG = 0.003052*pow3(s - piM)*(1.0 + 151.088*(s - piM) +
2109 174.495*pow2(s - piM));
2113 rG = 2.60817 - 2.47790*s + 0.66539*pow2(s) - 0.0678183*pow3(s) +
2114 1.66577*(s-1.23701)/s;
2115 return s - a1M*a1M + complex(0,1) * sqrtpos(s) * rG;
2123 complex HMETau2FourPions::rhoD(
double s) {
2125 double gQ = sqrtpos(s - 4*picM*picM) * (s - 4*picM*picM) / sqrtpos(s);
2126 double gM = sqrtpos(rhoM*rhoM - 4*picM*picM) * (rhoM*rhoM - 4*picM*picM)
2128 double dm = (rhoFormFactor1(s) - rhoFormFactor1(rhoM*rhoM) -
2129 (s - rhoM*rhoM) * rhoFormFactor2(rhoM*rhoM)) / gM;
2132 if (s < 4*picM*picM) gQ = 0;
2133 return s - rhoM*rhoM - rhoM*rhoG*dm + complex(0,1)*rhoM*rhoG*(gQ/gM);
2141 complex HMETau2FourPions::sigD(
double s) {
2144 double piM = abs(pID[3]) == 111 ? pinM : picM;
2145 double gQ = sqrtpos(1.0 - 4*piM*piM/s);
2146 double gM = sqrtpos(1.0 - 4*piM*piM/(sigM*sigM));
2147 return s - sigM*sigM + complex(0,1)*sigM*sigG*gQ/gM;
2155 complex HMETau2FourPions::omeD(
double s) {
2158 double q = sqrtpos(s);
2159 double x = q - omeM;
2163 g = 1 + 17.560*x + 141.110*pow2(x) + 894.884*pow3(x) + 4977.35*pow4(x) +
2164 7610.66*pow5(x) - 42524.4*pow6(x);
2166 g = -1333.26 + 4860*q - 6000.81*pow2(q) + 2504.97*pow3(q);
2168 return s - omeM*omeM + complex(0,1)*omeM*omeG*g;
2176 double HMETau2FourPions::a1FormFactor(
double s) {
2178 return pow2((1.0 + a1M*a1M/lambda2) / (1.0 + s/lambda2));
2186 double HMETau2FourPions::rhoFormFactor1(
double s) {
2189 if (s > 4. * picM * picM) {
2190 double thr = sqrtpos(1 - 4. * picM * picM / s);
2191 f = thr * log((1. + thr) / (1. - thr)) * (s - 4. * picM * picM) / M_PI;
2192 }
else if (s < 0.0000001) f = -8. * picM * picM / M_PI;
2201 double HMETau2FourPions::rhoFormFactor2(
double s) {
2203 double f = sqrtpos(1 - 4*picM*picM/s);
2204 if (s > 4*picM*picM)
2205 f = f / (M_PI * s) * (s*f + (2*picM*picM + s)*log((1 + f) / (1 - f)));
2216 double HMETau2FourPions::omeFormFactor(
double ) {
2226 double HMETau2FourPions::G(
int i,
double s) {
2229 double s0(0), s1(0), s2(0), s3(0), s4(0), s5(0);
2232 double a1(0), b1(0);
2233 double a2(0), b2(0), c2(0), d2(0), e2(0);
2234 double a3(0), b3(0), c3(0), d3(0), e3(0);
2235 double a4(0), b4(0);
2236 double a5(0), b5(0);
2240 s0 = 0.614403; s1 = 0.656264; s2 = 1.57896;
2241 s3 = 3.08198; s4 = 3.12825; s5 = 3.17488;
2242 a1 = -23383.7; b1 = 38059.2;
2243 a2 = 230.368; b2 = -4.39368; c2 = 687.002;
2244 d2 = -732.581; e2 = 207.087;
2245 a3 = 1633.92; b3 = -2596.21; c3 = 1703.08;
2246 d3 = -501.407; e3 = 54.5919;
2247 a4 = -2982.44; b4 = 986.009;
2248 a5 = 6948.99; b5 = -2188.74;
2253 s0 = 0.614403; s1 = 0.635161; s2 = 2.30794;
2254 s3 = 3.08198; s4 = 3.12825; s5 = 3.17488;
2255 a1 = -54171.5; b1 = 88169.3;
2256 a2 = 454.638; b2 = -3.07152; c2 = -48.7086;
2257 d2 = 81.9702; e2 = -24.0564;
2258 a3 = -162.421; b3 = 308.977; c3 = -27.7887;
2259 d3 = -48.5957; e3 = 10.6168;
2260 a4 = -2650.29; b4 = 879.776;
2261 a5 = 6936.99; b5 = -2184.97;
2266 s0 = 0.81364; s1 = 0.861709; s2 = 1.92621;
2267 s3 = 3.08198; s4 = 3.12825; s5 = 3.17488;
2268 a1 = -84888.9; b1 = 104332;
2269 a2 = 2698.15; b2 = -3.08302; c2 = 1936.11;
2270 d2 = -1254.59; e2 = 201.291;
2271 a3 = 7171.65; b3 = -6387.9; c3 = 3056.27;
2272 d3 = -888.63; e3 = 108.632;
2273 a4 = -5607.48; b4 = 1917.27;
2274 a5 = 26573; b5 = -8369.76;
2283 return a2*pow(s,b2) + c2*pow2(s) + d2*pow3(s) + e2*pow4(s);
2285 return a3 + b3*s + c3*pow2(s) + d3*pow3(s) + e3*pow4(s);
2313 void HMETau2FivePions::initConstants() {
2316 if (abs(pID[2]) == 211 && abs(pID[3]) == 211 && abs(pID[4]) == 211 &&
2317 abs(pID[5]) == 211 && abs(pID[6]) == 211)
2318 DECAYWEIGHTMAX = 4e4;
2320 else if (abs(pID[2]) == 111 && abs(pID[3]) == 111 && abs(pID[4]) == 211 &&
2321 abs(pID[5]) == 211 && abs(pID[6]) == 211)
2322 DECAYWEIGHTMAX = 1e7;
2324 else if (abs(pID[2]) == 111 && abs(pID[3]) == 111 && abs(pID[4]) == 111 &&
2325 abs(pID[5]) == 111 && abs(pID[6]) == 211)
2326 DECAYWEIGHTMAX = 1e5;
2329 a1M = 1.260; a1G = 0.400;
2330 rhoM = 0.776; rhoG = 0.150;
2331 omegaM = 0.782; omegaG = 0.0085; omegaW = 11.5;
2332 sigmaM = 0.800; sigmaG = 0.600; sigmaW = 1;
2340 void HMETau2FivePions::initHadronicCurrent(vector<HelicityParticle>& p) {
2344 Wave4 q(p[2].p() + p[3].p() + p[4].p() + p[5].p() + p[6].p());
2345 Wave4 q2(p[2].p()), q3(p[3].p()), q4(p[4].p()), q5(p[5].p()), q6(p[6].p());
2347 if (abs(pID[2]) == 211 && abs(pID[3]) == 211 && abs(pID[4]) == 211 &&
2348 abs(pID[5]) == 211 && abs(pID[6]) == 211)
2349 u2.push_back(Jb(q, q2, q3, q5, q6, q4) + Jb(q, q4, q3, q5, q6, q2)
2350 + Jb(q, q2, q4, q5, q6, q3) + Jb(q, q2, q3, q6, q5, q4)
2351 + Jb(q, q4, q3, q6, q5, q2) + Jb(q, q2, q4, q6, q5, q3));
2353 else if (abs(pID[2]) == 111 && abs(pID[3]) == 111 && abs(pID[4]) == 211 &&
2354 abs(pID[5]) == 211 && abs(pID[6]) == 211)
2355 u2.push_back(Ja(q, q6, q4, q2, q5, q3) + Ja(q, q6, q5, q2, q4, q3)
2356 + Ja(q, q6, q4, q3, q5, q2) + Ja(q, q6, q5, q3, q4, q2)
2357 + Jb(q, q4, q5, q6, q2, q3) + Jb(q, q2, q3, q4, q6, q5)
2358 + Jb(q, q2, q3, q5, q6, q4));
2360 else if (abs(pID[2]) == 111 && abs(pID[3]) == 111 && abs(pID[4]) == 111 &&
2361 abs(pID[5]) == 111 && abs(pID[6]) == 211)
2362 u2.push_back(Jb(q, q2, q3, q6, q4, q5) + Jb(q, q5, q3, q6, q4, q2)
2363 + Jb(q, q3, q4, q6, q2, q5) + Jb(q, q2, q4, q6, q3, q5)
2364 + Jb(q, q2, q5, q6, q4, q3) + Jb(q, q4, q5, q6, q2, q3));
2374 Wave4 HMETau2FivePions::Ja(Wave4 &q, Wave4 &q1, Wave4 &q2,
2375 Wave4 &q3, Wave4 &q4, Wave4 &q5) {
2377 Wave4 j = epsilon(q1, q2, q3);
2378 return omegaW * (breitWigner(m2(q), a1M, a1G)
2379 * breitWigner(m2(q1 + q2 + q3), omegaM, omegaG)
2380 * breitWigner(m2(q4 + q5), rhoM, rhoG)
2381 * epsilon(q4 - q5, j, q)
2382 * (breitWigner(m2(q2 + q3), rhoM, rhoG)
2383 + breitWigner(m2(q1 + q3), rhoM, rhoG)
2384 + breitWigner(m2(q1 + q2), rhoM, rhoG)));
2392 Wave4 HMETau2FivePions::Jb(Wave4 &q, Wave4 &q1, Wave4 &q2,
2393 Wave4 &q3, Wave4 &q4, Wave4 &q5) {
2396 Wave4 a1Q = q1 + q2 + q3;
2397 double a1S = m2(a1Q);
2398 Wave4 j = (m2(q2, q1 - q3) / a1S * a1Q - q1 + q3)
2399 * breitWigner(m2(q1 + q3), rhoM, rhoG)
2400 + (m2(q1, q2 - q3) / a1S * a1Q - q2 + q3)
2401 * breitWigner(m2(q2 + q3), rhoM, rhoG);
2402 j = (j * gamma[4] * q / s) * q - j;
2403 return sigmaW * (breitWigner(s, a1M, a1G) * breitWigner(a1S, a1M, a1G)
2404 * breitWigner(m2(q4 + q5), sigmaM, sigmaG) * j);
2408 complex HMETau2FivePions::breitWigner(
double s,
double M,
double G) {
2410 return M * M / (M * M - s - complex(0, 1) * M * G);