Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19286989
D48.1759150265.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D48.1759150265.diff
View Options
diff --git a/src/EvtGenModels/EvtBsMuMuKK.cpp b/src/EvtGenModels/EvtBsMuMuKK.cpp
--- a/src/EvtGenModels/EvtBsMuMuKK.cpp
+++ b/src/EvtGenModels/EvtBsMuMuKK.cpp
@@ -553,15 +553,22 @@
int bins = 1000;
double bin_width = ( M_KK_ul - M_KK_ll ) / static_cast<double>( bins );
EvtComplex integral( 0.0, 0.0 );
- double MKpiKm2 = pow( MKp + MKm, 2 );
+ double sumMKpKm2 = pow( MKp + MKm, 2 );
+ double diffMKpKm2 = pow( MKp - MKm, 2 );
double MBs2 = pow( MBs, 2 );
for ( int i = 0; i < bins; i++ ) {
double M_KK_i = M_KK_ll + static_cast<double>( i ) * bin_width;
double M_KK_f = M_KK_ll + static_cast<double>( i + 1 ) * bin_width;
-
- double p3Kp_KK_CMS_i = ( pow( M_KK_i, 2 ) - MKpiKm2 ) / ( 2.0 * M_KK_i );
- double p3Kp_KK_CMS_f = ( pow( M_KK_f, 2 ) - MKpiKm2 ) / ( 2.0 * M_KK_f );
+ double M_KK_i_sq = M_KK_i * M_KK_i;
+ double M_KK_f_sq = M_KK_f * M_KK_f;
+
+ double p3Kp_KK_CMS_i = sqrt( ( M_KK_i_sq - sumMKpKm2 ) *
+ ( M_KK_i_sq - diffMKpKm2 ) ) /
+ ( 2.0 * M_KK_i );
+ double p3Kp_KK_CMS_f = sqrt( ( M_KK_f_sq - sumMKpKm2 ) *
+ ( M_KK_f_sq - diffMKpKm2 ) ) /
+ ( 2.0 * M_KK_f );
double p3Jpsi_Bs_CMS_i = sqrt( ( MBs2 - pow( M_KK_i + MJpsi, 2 ) ) *
( MBs2 - pow( M_KK_i - MJpsi, 2 ) ) ) /
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 29, 1:51 PM (17 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6547634
Default Alt Text
D48.1759150265.diff (1 KB)
Attached To
Mode
D48: Fix bug in calculation of the daughter momentum in decay
Attached
Detach File
Event Timeline
Log In to Comment