BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtVubdGamma.cc
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// File and Version Information:
3//
4// Copyright Information: See EvtGen/COPYRIGHT
5//
6//
7// Description:
8// 3 2 2
9// d Gamma / _ _ _2 mb _2 mb
10// ---------- = 12 Gamma | (1+x-z)(z-x-p ) -- W + (1-z+p ) -- W
11// _ 2 0 \ 2 1 2 2
12// dx dz dp 2
13// _ _ _2 mb 2 \
14// + [x(z-x)-p ] -- (W + 2mb W + mb W ) |
15// 4 3 4 5 /
16//
17// with
18// 2 E 2
19// l _2 p 2 v.p _
20// x = ------ , p = --- , z = ------ , x = 1-x
21// mb 2 mb
22// mb
23//
24// the triple differential decay rate according to
25// hep-ph/9905351 v2
26//
27// Environment:
28// Software developed for the BaBar Detector at the SLAC B-Factory.
29//
30// Author List:
31// Sven Menke
32//
33//-----------------------------------------------------------------------
34//-----------------------
35// This Class's Header --
36//-----------------------
39
40//---------------
41// C Headers --
42//---------------
43#include <math.h>
44
45extern "C" {
46 double ddilog_(const double *);
47}
48//----------------
49// Constructors --
50//----------------
51
52EvtVubdGamma::EvtVubdGamma(const double &alphas)
53{
54 _alphas = alphas;
55
56 // the range for the delta distribution in p2 is from _epsilon1 to
57 // _epsilon2. It was checked with the single differential formulae
58 // in the paper that these values are small enough to imitate p2 = 0
59 // for the regular terms.
60 // The ()* distributions, however need further treatment. In order to
61 // generate the correct spectrum in z a threshold need to be computed
62 // from the desired value of the coupling alphas. The idea is that
63 // for z=1 p2=0 is not allowed and therefore the part of dGamma proportional
64 // to delta(p2) should go to 0 for z->1.
65 // Using equation (3.1) and (3.2) it is possible to find the correct value
66 // for log(_epsilon3) from this requirement.
67
68 _epsilon1 = 1e-10;
69 _epsilon2 = 1e-5;
70 if ( alphas > 0 ) {
71 double lne3 = 9./16.-2*M_PI*M_PI/3.+6*M_PI/4/alphas;
72 if ( lne3 > 0 )
73 lne3 = -7./4. - sqrt(lne3);
74 else
75 lne3 = -7./4.;
76 _epsilon3 = exp(lne3);
77 }
78 else
79 _epsilon3 = 1;
80}
81
82//--------------
83// Destructor --
84//--------------
85
87{
88}
89
90//-----------
91// Methods --
92//-----------
93
94double EvtVubdGamma::getdGdxdzdp(const double &x, const double &z, const double &p2)
95{
96 // check phase space
97
98 double xb = (1-x);
99
100 if ( x < 0 || x > 1 || z < xb || z > (1+xb) )
101 return 0;
102
103 //not used
104 //double mx = (0>z-1?0:z-1);
105
106 double p2min = (0>z-1.?0:z-1.);
107 double p2max = (1.-x)*(z-1.+x);
108
109 if (p2 < p2min || p2 > p2max)
110 return 0;
111
112 // // check the phase space
113 // return 1.;
114
115 double dG;
116
117 if ( p2 >_epsilon1 && p2< _epsilon2) {
118
119 double W1 = getW1delta(x,z);
120 double W4plus5 = getW4plus5delta(x,z);
121
122 dG = 12. * delta(p2,p2min,p2max) * ((1.+xb-z) * (z-xb) * W1
123 + xb*(z-xb) * (W4plus5));
124 }
125 else {
126
127 double W1 = getW1nodelta(x,z,p2);
128 double W2 = getW2nodelta(x,z,p2);
129 double W3 = getW3nodelta(x,z,p2);
130 double W4 = getW4nodelta(x,z,p2);
131 double W5 = getW5nodelta(x,z,p2);
132
133 dG = 12. * ((1.+xb-z) * (z-xb-p2) * W1
134 + (1.-z+p2) * W2
135 + (xb*(z-xb)-p2) * (W3+W4+W5));
136 }
137 return dG;
138}
139
140double EvtVubdGamma::delta(const double &x, const double &xmin, const double &xmax)
141{
142 if ( xmin > 0 || xmax < 0 ) return 0.;
143 if ( _epsilon1 < x && x < _epsilon2 ) return 1./(_epsilon2-_epsilon1);
144 return 0.0;
145}
146
147double EvtVubdGamma::getW1delta(const double &x, const double &z)
148{
149 double mz = 1.-z;
150 //double p2min = (0>z-1.?0:z-1.);
151 //double p2max = (1.-x)*(z-1.+x);
152
153 double lz;
154 if (z == 1) lz = -1.;
155 else lz = log(z)/(1.-z);
156
157 // ddilog_(&z) is actually the dilog of (1-z) in maple,
158 // also in Neuberts paper the limit dilog(1) = pi^2/6 is used
159 // this corresponds to maple's dilog(0), so
160 // I take ddilog_(&mz) where mz=1-z in order to satisfy Neubert's definition
161 // and to compare with Maple the argument in maple should be (1-mz) ...
162
163 double dl = 4.*ddilog_(&mz) + 4.*pow(M_PI,2)/3.;
164
165 double w = -(8.*pow(log(z),2) - 10.*log(z) + 2.*lz + dl + 5.)
166 + (8.*log(z)-7.)*log(_epsilon3) - 2.*pow(log(_epsilon3),2);
167
168 return (1. + w*_alphas/3./M_PI);
169}
170
171double EvtVubdGamma::getW1nodelta(const double &x, const double &z, const double &p2)
172{
173
174 double z2 = z*z;
175 double t2 = 1.-4.*p2/z2;
176 double t = sqrt(t2);
177
178 double w = 0;
179 if ( p2 > _epsilon2 )
180 w += 4./p2*(log((1.+t)/(1.-t))/t + log(p2/z2))
181 + 1. - (8.-z)*(2.-z)/z2/t2
182 + ((2.-z)/2./z+(8.-z)*(2.-z)/2./z2/t2)*log((1.+t)/(1.-t))/t;
183 if ( p2 > _epsilon3 )
184 w += (8.*log(z)-7.)/p2 - 4.*log(p2)/p2;
185
186 return w*_alphas/3./M_PI;
187}
188
189double EvtVubdGamma::getW2nodelta(const double &x, const double &z, const double &p2)
190{
191
192 double z2 = z*z;
193 double t2 = 1.-4.*p2/z2;
194 double t = sqrt(t2);
195 double w11 = (32.-8.*z+z2)/4./z/t2;
196
197 double w = 0;
198 if ( p2 > _epsilon2 )
199 w -= (z*t2/8. + (4.-z)/4. + w11/2.)*log((1.+t)/(1.-t))/t;
200 if ( p2 > _epsilon2 )
201 w += (8.-z)/4. + w11;
202
203 return (w*_alphas/3./M_PI);
204}
205
206double EvtVubdGamma::getW3nodelta(const double &x, const double &z, const double &p2)
207{
208 double z2 = z*z;
209 double t2 = 1.-4.*p2/z2;
210 double t4 = t2*t2;
211 double t = sqrt(t2);
212
213 double w = 0;
214
215 if ( p2 > _epsilon2 )
216 w += (z*t2/16. + 5.*(4.-z)/16. - (64.+56.*z-7.*z2)/16./z/t2
217 + 3.*(12.-z)/16./t4) * log((1.+t)/(1.-t))/t;
218 if ( p2 > _epsilon2 )
219 w += -(8.-3.*z)/8. + (32.+22.*z-3.*z2)/4./z/t2 - 3.*(12.-z)/8./t4;
220
221 return (w*_alphas/3./M_PI);
222}
223
224double EvtVubdGamma::getW4nodelta(const double &x, const double &z, const double &p2)
225{
226 double z2 = z*z;
227 double t2 = 1.-4.*p2/z2;
228 double t4 = t2*t2;
229 double t = sqrt(t2);
230
231 double w = 0;
232
233 if ( p2 > _epsilon2 )
234 w -= ((8.-3.*z)/4./z - (22.-3.*z)/2./z/t2 + 3.*(12.-z)/4./z/t4)
235 * log((1.+t)/(1.-t))/t;
236 if ( p2 > _epsilon2 )
237 w += -1. - (32.-5.*z)/2./z/t2 + 3.*(12.-z)/2./z/t4 ;
238
239 return w*_alphas/3./M_PI;
240}
241
242double EvtVubdGamma::getW4plus5delta(const double &x, const double &z)
243{
244
245 double w = 0;
246
247 if ( z == 1 )
248 w = -2;
249 else
250 w = 2.*log(z)/(1.-z);
251
252 return (w*_alphas/3./M_PI);
253}
254
255double EvtVubdGamma::getW5nodelta(const double &x, const double &z, const double &p2)
256{
257 double z2 = z*z;
258 double t2 = 1.-4.*p2/z2;
259 double t4 = t2*t2;
260 double t = sqrt(t2);
261
262 double w = 0;
263 if ( p2 > _epsilon2 )
264 w += (1./4./z - (2.-z)/2./z2/t2 + 3.*(12.-z)/4./z2/t4)
265 * log((1.+t)/(1.-t))/t;
266 if ( p2 > _epsilon2 )
267 w += -(8.+z)/2./z2/t2 - 3.*(12.-z)/2./z2/t4;
268
269
270 return (w*_alphas/3./M_PI);
271}
272
273
274
Double_t x[10]
EvtComplex exp(const EvtComplex &c)
Definition: EvtComplex.hh:252
double w
double ddilog_(const double *)
double ddilog_(const double &sh)
#define M_PI
Definition: TConstant.h:4
double delta(const double &x, const double &xmin, const double &xmax)
virtual ~EvtVubdGamma()
Definition: EvtVubdGamma.cc:86
double getdGdxdzdp(const double &x, const double &z, const double &p2)
Definition: EvtVubdGamma.cc:94
double getW2nodelta(const double &x, const double &z, const double &p2)
double getW1nodelta(const double &x, const double &z, const double &p2)
double getW1delta(const double &x, const double &z)
double getW4plus5delta(const double &x, const double &z)
double getW3nodelta(const double &x, const double &z, const double &p2)
double getW5nodelta(const double &x, const double &z, const double &p2)
double getW4nodelta(const double &x, const double &z, const double &p2)
EvtVubdGamma(const double &alphas)
Definition: EvtVubdGamma.cc:52
int t()
Definition: t.c:1