EvtGen
2.2.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
Toggle main menu visibility
Loading...
Searching...
No Matches
src
EvtGenModels
EvtbTosllMS.cpp
Go to the documentation of this file.
1
2
/***********************************************************************
3
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
4
* *
5
* This file is part of EvtGen. *
6
* *
7
* EvtGen is free software: you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation, either version 3 of the License, or *
10
* (at your option) any later version. *
11
* *
12
* EvtGen is distributed in the hope that it will be useful, *
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
* GNU General Public License for more details. *
16
* *
17
* You should have received a copy of the GNU General Public License *
18
* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
19
***********************************************************************/
20
21
#include "
EvtGenModels/EvtbTosllMS.hh
"
22
23
#include "
EvtGenBase/EvtGenKine.hh
"
24
#include "
EvtGenBase/EvtPDL.hh
"
25
#include "
EvtGenBase/EvtParticle.hh
"
26
#include "
EvtGenBase/EvtReport.hh
"
27
28
#include "
EvtGenModels/EvtbTosllAmpNew.hh
"
29
#include "
EvtGenModels/EvtbTosllMSFF.hh
"
30
#include "
EvtGenModels/EvtbTosllScalarAmpNew.hh
"
31
#include "
EvtGenModels/EvtbTosllVectorAmpNew.hh
"
32
#include "
EvtGenModels/EvtbTosllWilsCoeffNLO.hh
"
33
34
#include <stdlib.h>
35
#include <string.h>
36
37
EvtbTosllMS::~EvtbTosllMS
()
38
{
39
// if ( m_wilscoeff ) delete m_wilscoeff;
40
// if ( m_msffmodel ) delete m_msffmodel;
41
// if ( m_calcamp ) delete m_calcamp ;
42
delete
m_wilscoeff
;
43
delete
m_msffmodel
;
44
delete
m_calcamp
;
45
}
46
47
// The module name specification
48
std::string
EvtbTosllMS::getName
()
const
49
{
50
return
"BTOSLLMS"
;
51
}
52
53
// The implementation of the clone() method
54
EvtDecayBase
*
EvtbTosllMS::clone
()
const
55
{
56
return
new
EvtbTosllMS
;
57
}
58
59
// The inicialization of the decay model
60
//
61
// Tn the our model we have are following 4 arguments:
62
//
63
// mu - the scale parameter, GeV;
64
// Nf - number of "effective" flavors (for b-quark Nf=5);
65
// res_swch - resonant switching parametr:
66
// = 0 the resonant contribution switched OFF,
67
// = 1 the resonant contribution switched ON;
68
// ias - switching parametr for \alpha_s(M_Z) value:
69
// = 0 PDG 1sigma minimal alpha_s(M_Z),
70
// = 1 PDG average value alpha_s(M_Z),
71
// = 2 PDG 1sigma maximal alpha_s(M_Z).
72
// Wolfenstein parameterization for CKM matrix
73
// CKM_A, CKM_lambda, CKM_barrho, CKM_bareta
74
//
75
void
EvtbTosllMS::init
()
76
{
77
// check that there are 8 arguments
78
checkNArg
( 8 );
79
// check that there are 3 daughteres
80
checkNDaug
( 3 );
81
82
// We expect that the parent to be a scalar (B-meson)
83
// and the daughters to be K^*, l^+ and l^-
84
checkSpinParent
(
EvtSpinType::SCALAR
);
85
86
// We expect that the first daughter is the K* == VECTOR
87
EvtSpinType::spintype
mesontype =
EvtPDL::getSpinType
(
getDaug
( 0 ) );
88
89
if
( !( mesontype ==
EvtSpinType::VECTOR
||
90
mesontype ==
EvtSpinType::SCALAR
) ) {
91
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
92
<<
"EvtbTosllMS generator expected "
93
<<
" a SCALAR or VECTOR 1st daughter, found:"
94
<<
EvtPDL::name
(
getDaug
( 0 ) ).c_str() << std::endl;
95
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
96
<<
"Will terminate execution!"
<< std::endl;
97
::abort();
98
}
99
100
// We expect that the second and third daughters
101
// are the ell+ and ell- == DIRAC
102
checkSpinDaughter
( 1,
EvtSpinType::DIRAC
);
103
checkSpinDaughter
( 2,
EvtSpinType::DIRAC
);
104
105
m_msffmodel
=
new
EvtbTosllMSFF
();
106
m_wilscoeff
=
new
EvtbTosllWilsCoeffNLO
();
107
if
( mesontype ==
EvtSpinType::VECTOR
) {
108
m_calcamp
=
new
EvtbTosllVectorAmpNew
();
109
}
110
if
( mesontype ==
EvtSpinType::SCALAR
) {
111
m_calcamp
=
new
EvtbTosllScalarAmpNew
();
112
}
113
}
114
115
// Set the maximum probability of the decay
116
// differencial distribution d^2\Gamma/d\hat s d\cos\theta
117
void
EvtbTosllMS::initProbMax
()
118
{
119
double
mymaxprob = -10.0;
// maximum of the probability
120
121
EvtId
parnum, mesnum, l1num, l2num;
122
123
parnum =
getParentId
();
124
mesnum =
getDaug
( 0 );
125
l1num =
getDaug
( 1 );
126
l2num =
getDaug
( 2 );
127
128
// EvtSpinType::spintype mesontype=EvtPDL::getSpinType(getDaug(0));
129
130
double
mu =
getArg
( 0 );
// the scale parameter
131
int
Nf = (int)
getArg
( 1 );
// number of "effective" flavors
132
int
res_swch = (int)
getArg
( 2 );
// resonant switching parametr
133
int
ias = (int)
getArg
( 3 );
// switching parametr for \alpha_s(M_Z)
134
double
CKM_A =
getArg
( 4 );
135
double
CKM_lambda =
getArg
( 5 );
136
double
CKM_barrho =
getArg
( 6 );
137
double
CKM_bareta =
getArg
( 7 );
138
139
mymaxprob =
m_calcamp
->CalcMaxProb( parnum, mesnum, l1num, l2num,
140
m_msffmodel
,
m_wilscoeff
, mu, Nf,
141
res_swch, ias, CKM_A, CKM_lambda,
142
CKM_barrho, CKM_bareta );
143
144
if
( mymaxprob <= 0.0 ) {
145
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
146
<<
"The function void EvtbTosllMS::initProbMax()"
147
<<
"\n Unexpected value of the probability maximum!"
148
<<
"\n mymaxprob = "
<< mymaxprob << std::endl;
149
::abort();
150
}
151
152
setProbMax
( mymaxprob );
153
}
154
155
void
EvtbTosllMS::decay
(
EvtParticle
* p )
156
{
157
double
mu =
getArg
( 0 );
// the scale parameter
158
int
Nf = (int)
getArg
( 1 );
// number of "effective" flavors
159
int
res_swch = (int)
getArg
( 2 );
// resonant switching parametr
160
int
ias = (int)
getArg
( 3 );
// switching parametr for \alpha_s(M_Z)
161
double
CKM_A =
getArg
( 4 );
162
double
CKM_lambda =
getArg
( 5 );
163
double
CKM_barrho =
getArg
( 6 );
164
double
CKM_bareta =
getArg
( 7 );
165
166
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
167
168
// The class "EvtbTosllVectorAmpNew" is the derived class of the
169
// class "EvtbTosllAmpNew" (see the file "EvtbTosllVectorAmpNew.hh")
170
// and
171
// the class "EvtbTosllMSFF" is the derived class of the
172
// class "EvtbTosllFFNew" (see the file "EvtbTosllMSFF.hh")
173
m_calcamp
->CalcAmp( p,
m_amp2
,
m_msffmodel
,
m_wilscoeff
, mu, Nf, res_swch,
174
ias, CKM_A, CKM_lambda, CKM_barrho, CKM_bareta );
175
176
// EvtGenReport(EVTGEN_NOTICE,"EvtGen") << "\n The function EvtbTosllMS::decay(...) passed with arguments:"
177
// << "\n mu = " << mu << " Nf =" << Nf
178
// << " res_swch = " << res_swch
179
// << " ias = " << ias
180
// << " CKM_A = " << CKM_A
181
// << " CKM_lambda = " << CKM_lambda
182
// << " CKM_barrho = " << CKM_barrho
183
// << " CKM_bareta = " << CKM_bareta << std::endl;
184
}
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtReport.hh
EvtGenReport
std::ostream & EvtGenReport(EvtGenSeverity severity, const char *facility=nullptr)
Definition
EvtReport.cpp:32
EVTGEN_ERROR
@ EVTGEN_ERROR
Definition
EvtReport.hh:49
EvtbTosllAmpNew.hh
EvtbTosllMSFF.hh
EvtbTosllMS.hh
EvtbTosllScalarAmpNew.hh
EvtbTosllVectorAmpNew.hh
EvtbTosllWilsCoeffNLO.hh
EvtDecayAmp::m_amp2
EvtAmp m_amp2
Definition
EvtDecayAmp.hh:73
EvtDecayBase::checkSpinDaughter
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
Definition
EvtDecayBase.cpp:547
EvtDecayBase::EvtDecayBase
EvtDecayBase()=default
EvtDecayBase::getNDaug
int getNDaug() const
Definition
EvtDecayBase.hh:64
EvtDecayBase::checkSpinParent
void checkSpinParent(EvtSpinType::spintype sp)
Definition
EvtDecayBase.cpp:534
EvtDecayBase::getArg
double getArg(unsigned int j)
Definition
EvtDecayBase.cpp:578
EvtDecayBase::setProbMax
void setProbMax(double prbmx)
Definition
EvtDecayBase.cpp:295
EvtDecayBase::getParentId
EvtId getParentId() const
Definition
EvtDecayBase.hh:60
EvtDecayBase::getDaug
EvtId getDaug(int i) const
Definition
EvtDecayBase.hh:66
EvtDecayBase::checkNDaug
void checkNDaug(int d1, int d2=-1)
Definition
EvtDecayBase.cpp:516
EvtDecayBase::checkNArg
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition
EvtDecayBase.cpp:492
EvtDecayBase::getDaugs
const EvtId * getDaugs() const
Definition
EvtDecayBase.hh:65
EvtId
Definition
EvtId.hh:27
EvtPDL::getSpinType
static EvtSpinType::spintype getSpinType(EvtId i)
Definition
EvtPDL.cpp:371
EvtPDL::name
static std::string name(EvtId i)
Definition
EvtPDL.cpp:376
EvtParticle
Definition
EvtParticle.hh:45
EvtParticle::initializePhaseSpace
double initializePhaseSpace(size_t numdaughter, const EvtId *daughters, bool forceResetMasses=false, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition
EvtParticle.cpp:1100
EvtSpinType::spintype
spintype
Definition
EvtSpinType.hh:29
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:30
EvtSpinType::DIRAC
@ DIRAC
Definition
EvtSpinType.hh:33
EvtSpinType::VECTOR
@ VECTOR
Definition
EvtSpinType.hh:31
EvtbTosllMSFF
Definition
EvtbTosllMSFF.hh:40
EvtbTosllMS::decay
void decay(EvtParticle *p) override
Definition
EvtbTosllMS.cpp:155
EvtbTosllMS::m_calcamp
EvtbTosllAmpNew * m_calcamp
Definition
EvtbTosllMS.hh:52
EvtbTosllMS::~EvtbTosllMS
virtual ~EvtbTosllMS()
Definition
EvtbTosllMS.cpp:37
EvtbTosllMS::initProbMax
void initProbMax() override
Definition
EvtbTosllMS.cpp:117
EvtbTosllMS::getName
std::string getName() const override
Definition
EvtbTosllMS.cpp:48
EvtbTosllMS::m_wilscoeff
EvtbTosllWilsCoeffNLO * m_wilscoeff
Definition
EvtbTosllMS.hh:53
EvtbTosllMS::init
void init() override
Definition
EvtbTosllMS.cpp:75
EvtbTosllMS::EvtbTosllMS
EvtbTosllMS()
Definition
EvtbTosllMS.hh:40
EvtbTosllMS::m_msffmodel
EvtbTosllFFNew * m_msffmodel
Definition
EvtbTosllMS.hh:51
EvtbTosllMS::clone
EvtDecayBase * clone() const override
Definition
EvtbTosllMS.cpp:54
EvtbTosllScalarAmpNew
Definition
EvtbTosllScalarAmpNew.hh:32
EvtbTosllVectorAmpNew
Definition
EvtbTosllVectorAmpNew.hh:32
EvtbTosllWilsCoeffNLO
Definition
EvtbTosllWilsCoeffNLO.hh:30
Generated by
1.17.0