Line data Source code
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 : //
10 : // Module: EvtSVPCP.cc
11 : //
12 : // Description: Routine to decay scalar -> vectors+photon
13 : // including CP violation effects
14 : //
15 : // Modification history:
16 : //
17 : // Maurizio pierini Nov 11, 2003 Module created
18 : //
19 : //------------------------------------------------------------------------
20 : //
21 : #include "EvtGenBase/EvtPatches.hh"
22 : #include <stdlib.h>
23 : #include "EvtGenBase/EvtParticle.hh"
24 : #include "EvtGenBase/EvtGenKine.hh"
25 : #include "EvtGenBase/EvtPDL.hh"
26 : #include "EvtGenBase/EvtVector4R.hh"
27 : #include "EvtGenBase/EvtVector4C.hh"
28 : #include "EvtGenBase/EvtTensor4C.hh"
29 : #include "EvtGenBase/EvtTensor3C.hh"
30 : #include "EvtGenBase/EvtReport.hh"
31 : #include "EvtGenBase/EvtComplex.hh"
32 : #include "EvtGenModels/EvtSVPCP.hh"
33 : #include "EvtGenBase/EvtId.hh"
34 : #include "EvtGenBase/EvtCPUtil.hh"
35 : #include <string>
36 : #include "EvtGenBase/EvtConst.hh"
37 :
38 0 : EvtSVPCP::~EvtSVPCP() {}
39 :
40 : std::string EvtSVPCP::getName(){
41 :
42 0 : return "SVP_CP";
43 :
44 : }
45 :
46 :
47 : EvtDecayBase* EvtSVPCP::clone(){
48 :
49 0 : return new EvtSVPCP;
50 :
51 0 : }
52 :
53 : void EvtSVPCP::initProbMax(){
54 :
55 0 : setProbMax(2*(getArg(3)*getArg(3)+getArg(5)*getArg(5)));
56 :
57 0 : }
58 :
59 :
60 : void EvtSVPCP::init(){
61 :
62 : // check that there are 7 arguments
63 0 : checkNArg(7);
64 0 : checkNDaug(2);
65 :
66 0 : checkSpinParent(EvtSpinType::SCALAR);
67 :
68 0 : checkSpinDaughter(0,EvtSpinType::VECTOR);
69 0 : checkSpinDaughter(1,EvtSpinType::PHOTON);
70 :
71 0 : }
72 :
73 : void EvtSVPCP::decay( EvtParticle *p ){
74 :
75 0 : static EvtId B0=EvtPDL::getId("B0");
76 0 : static EvtId B0B=EvtPDL::getId("anti-B0");
77 :
78 0 : double t;
79 0 : EvtId other_b;
80 :
81 0 : EvtCPUtil::getInstance()->OtherB(p,t,other_b,0.5);
82 :
83 0 : EvtComplex G1P,G1M, G1_T_even, G1_T_odd;
84 :
85 0 : double norm = getArg(3)*getArg(3)+getArg(5)*getArg(5);
86 :
87 0 : G1P=EvtComplex(getArg(3)*cos(getArg(4))/norm,getArg(3)*sin(getArg(4))/norm);
88 0 : G1M=EvtComplex(getArg(5)*cos(getArg(6))/norm,getArg(5)*sin(getArg(6))/norm);
89 :
90 0 : G1_T_even = (G1P+G1M)/sqrt(2.0);
91 0 : G1_T_odd = (G1P-G1M)/sqrt(2.0);
92 :
93 0 : EvtComplex lambda_km =EvtComplex(cos(-2*getArg(0)),sin(-2*getArg(0)));
94 :
95 0 : double cdmt=cos(getArg(1)*t/(2*EvtConst::c));
96 0 : double sdmt=sin(getArg(1)*t/(2*EvtConst::c));
97 :
98 0 : EvtComplex cG1_T_even,cG1_T_odd;
99 :
100 0 : if (other_b==B0B){
101 0 : cG1_T_even = G1_T_even*(cdmt+lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
102 0 : cG1_T_odd = G1_T_odd*(cdmt-lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
103 0 : }
104 0 : if (other_b==B0){
105 0 : cG1_T_even = G1_T_even*(cdmt+(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
106 0 : cG1_T_odd =-G1_T_odd*(cdmt-(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
107 0 : }
108 :
109 0 : EvtComplex hp, hm, h0;
110 :
111 : // This part is adopted from EvtSVVHel and since there is
112 : // a photon that can not have helicity 0 this is put in by
113 : // setting the h0 amplitude to 0.
114 0 : hm=(cG1_T_even-cG1_T_odd)/sqrt(2.0);
115 0 : hp=(cG1_T_even+cG1_T_odd)/sqrt(2.0);
116 0 : h0=EvtComplex(0.0,0.0);
117 :
118 : EvtParticle *v1,*ph;
119 :
120 0 : p->initializePhaseSpace(getNDaug(),getDaugs());
121 0 : v1 = p->getDaug(0);
122 0 : ph = p->getDaug(1);
123 0 : EvtVector4R momv1 = v1->getP4();
124 0 : EvtVector4R momph = ph->getP4();
125 :
126 0 : EvtTensor4C d,g;
127 :
128 0 : g.setdiag(1.0,-1.0,-1.0,-1.0);
129 :
130 0 : EvtVector4R v,vp;
131 :
132 0 : v=momv1/momv1.d3mag();
133 0 : vp=(momv1+momph)/(momv1+momph).mass();
134 :
135 0 : d=((1.0/sqrt(3.0))*(h0-(hp+hm))*(-1.0/sqrt(3.0)))*g+
136 0 : ((1.0/sqrt(2.0))*(hp-hm)*EvtComplex(0.0,1.0)*(sqrt(1.0/2.0)))*dual(EvtGenFunctions::directProd(v,vp))+
137 0 : (sqrt(2.0/3.0)*(h0+0.5*(hp+hm))*sqrt(3.0/2.0))*(EvtGenFunctions::directProd(v,v)+(1.0/3.0)*g);
138 :
139 0 : EvtVector4C ep0,ep1,ep2;
140 :
141 0 : ep0=d.cont1(v1->eps(0).conj());
142 0 : ep1=d.cont1(v1->eps(1).conj());
143 0 : ep2=d.cont1(v1->eps(2).conj());
144 :
145 0 : EvtVector4C ep20,ep21,ep22;
146 :
147 0 : ep20=ph->epsParentPhoton(0).conj();
148 0 : ep21=ph->epsParentPhoton(1).conj();
149 :
150 0 : vertex(0,0,ep0*ep20);
151 0 : vertex(0,1,ep0*ep21);
152 :
153 0 : vertex(1,0,ep1*ep20);
154 0 : vertex(1,1,ep1*ep21);
155 :
156 0 : vertex(2,0,ep2*ep20);
157 0 : vertex(2,1,ep2*ep21);
158 :
159 :
160 : return ;
161 :
162 0 : }
163 :
164 : std::string EvtSVPCP::getParamName(int i) {
165 0 : switch(i) {
166 : case 0:
167 0 : return "weakPhase";
168 : case 1:
169 0 : return "deltaM";
170 : case 2:
171 0 : return "finalStateCP";
172 : case 3:
173 0 : return "Af";
174 : case 4:
175 0 : return "AfPhase";
176 : case 5:
177 0 : return "Abarf";
178 : case 6:
179 0 : return "AbarfPhase";
180 : default:
181 0 : return "";
182 : }
183 0 : }
184 :
185 : std::string EvtSVPCP::getParamDefault(int i) {
186 0 : switch(i) {
187 : case 3:
188 0 : return "1.0";
189 : case 4:
190 0 : return "0.0";
191 : case 5:
192 0 : return "1.0";
193 : case 6:
194 0 : return "0.0";
195 : default:
196 0 : return "";
197 : }
198 0 : }
|