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
Evtbs2llGammaISRFSR.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/Evtbs2llGammaISRFSR.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/EvtbTosllWilsCoeffNLO.hh
"
29
#include "
EvtGenModels/Evtbs2llGammaFFMNT.hh
"
30
#include "
EvtGenModels/Evtbs2llGammaISRFSRAmp.hh
"
31
32
#include <stdlib.h>
33
#include <string.h>
34
35
Evtbs2llGammaISRFSR::~Evtbs2llGammaISRFSR
()
36
{
37
delete
m_mntffmodel
;
38
if
(
m_calcamp
)
39
delete
m_calcamp
;
40
}
41
42
// The module name specification
43
std::string
Evtbs2llGammaISRFSR::getName
()
const
44
{
45
return
"BSTOGLLISRFSR"
;
46
}
47
48
// The implementation of the clone() method
49
EvtDecayBase
*
Evtbs2llGammaISRFSR::clone
()
const
50
{
51
return
new
Evtbs2llGammaISRFSR
;
52
}
53
54
// The inicialization of the decay model
55
//
56
// Tn the our model we have are following 4 arguments:
57
//
58
// mu - the scale parameter, GeV;
59
// Nf - number of "effective" flavors (for b-quark Nf=5);
60
// sr - state radiation type:
61
// = 0 ISR only,
62
// = 1 FSR only,
63
// = 2 ISR + FSR (== BSTOGLLMNT model);
64
// res_swch - resonant switching parametr:
65
// = 0 the resonant contribution switched OFF,
66
// = 1 the resonant contribution switched ON;
67
// ias - switching parametr for \alpha_s(M_Z) value:
68
// = 0 PDG 1sigma minimal alpha_s(M_Z),
69
// = 1 PDG average value alpha_s(M_Z),
70
// = 2 PDG 1sigma maximal alpha_s(M_Z).
71
// Egamma_min - photon energy cut, GeV;
72
// Wolfenstein parameterization for CKM matrix
73
// CKM_A, CKM_lambda, CKM_barrho, CKM_bareta
74
//
75
void
Evtbs2llGammaISRFSR::init
()
76
{
77
// check that there are 10 arguments
78
checkNArg
( 10, 11 );
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 Gamma, l^+ and l^-
84
checkSpinParent
(
EvtSpinType::SCALAR
);
85
86
// We expect that the first daughter is the photon
87
EvtSpinType::spintype
photontype =
EvtPDL::getSpinType
(
getDaug
( 0 ) );
88
89
if
( !( photontype ==
EvtSpinType::PHOTON
) ) {
90
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
91
<<
"Evtbs2llGammaISRFSR generator expected "
92
<<
" a PHOTON 1st daughter, found:"
93
<<
EvtPDL::name
(
getDaug
( 0 ) ).c_str() << std::endl;
94
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
95
<<
"Will terminate execution!"
<< std::endl;
96
::abort();
97
}
98
99
// We expect that the second and third daughters
100
// are the ell+ and ell- == DIRAC
101
checkSpinDaughter
( 1,
EvtSpinType::DIRAC
);
102
checkSpinDaughter
( 2,
EvtSpinType::DIRAC
);
103
104
m_mntffmodel
=
new
Evtbs2llGammaFFMNT
();
105
m_wilscoeff
=
new
EvtbTosllWilsCoeffNLO
();
106
if
( photontype ==
EvtSpinType::PHOTON
) {
107
m_calcamp
=
new
Evtbs2llGammaISRFSRAmp
();
108
}
else
{
109
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
110
<<
"The init()-function in the Evtbs2llGammaISRFSR generator:"
111
<<
"The absence in the radiative decay!"
<< std::endl;
112
::abort();
113
}
114
}
115
116
// Set the maximum probability of the decay
117
// differencial distribution d^2\Gamma/d\hat s d\cos\theta
118
void
Evtbs2llGammaISRFSR::initProbMax
()
119
{
120
double
mymaxprob = -10.0;
// maximum of the probability
121
122
EvtId
parnum, photnum, l1num, l2num;
123
124
parnum =
getParentId
();
125
photnum =
getDaug
( 0 );
126
l1num =
getDaug
( 1 );
127
l2num =
getDaug
( 2 );
128
129
double
mu =
getArg
( 0 );
// the scale parameter
130
int
Nf = (int)
getArg
( 1 );
// number of "effective" flavors
131
int
sr = (int)
getArg
( 2 );
// state radiation type
132
int
res_swch = (int)
getArg
( 3 );
// resonant switching parametr
133
int
ias = (int)
getArg
( 4 );
// switching parametr for \alpha_s(M_Z)
134
double
Egamma_min =
getArg
( 5 );
// photon energy cut
135
double
CKM_A =
getArg
( 6 );
136
double
CKM_lambda =
getArg
( 7 );
137
double
CKM_barrho =
getArg
( 8 );
138
double
CKM_bareta =
getArg
( 9 );
139
double
mumumass_min = 0.;
140
if
(
getNArg
() == 11 )
141
mumumass_min =
getArg
( 10 );
142
143
mymaxprob =
m_calcamp
->CalcMaxProb( parnum, photnum, l1num, l2num,
144
m_mntffmodel
,
m_wilscoeff
, mu, Nf, sr,
145
res_swch, ias, Egamma_min, CKM_A,
146
CKM_lambda, CKM_barrho, CKM_bareta,
147
mumumass_min );
148
149
if
( mymaxprob <= 0.0 ) {
150
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
151
<<
"The function void Evtbs2llGammaISRFSR::initProbMax()"
152
<<
"\n Unexpected value of the probability maximum!"
153
<<
"\n mymaxprob = "
<< mymaxprob << std::endl;
154
::abort();
155
}
156
157
setProbMax
( mymaxprob );
158
}
159
160
void
Evtbs2llGammaISRFSR::decay
(
EvtParticle
* p )
161
{
162
double
mu =
getArg
( 0 );
// the scale parameter
163
int
Nf = (int)
getArg
( 1 );
// number of "effective" flavors
164
int
sr = (int)
getArg
( 2 );
// state radiation type
165
int
res_swch = (int)
getArg
( 3 );
// resonant switching parametr
166
int
ias = (int)
getArg
( 4 );
// switching parametr for \alpha_s(M_Z)
167
double
Egamma_min =
getArg
( 5 );
// photon energy cut
168
double
CKM_A =
getArg
( 6 );
169
double
CKM_lambda =
getArg
( 7 );
170
double
CKM_barrho =
getArg
( 8 );
171
double
CKM_bareta =
getArg
( 9 );
172
double
mumumass_min = 0.;
173
if
(
getNArg
() == 11 )
174
mumumass_min =
getArg
( 10 );
175
176
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
177
178
// The class "Evtbs2llGammaFFMNT" is the derived class of the
179
// class "Evtbs2llGammaFF" (see the file "Evtbs2llGammaFF.hh")
180
m_calcamp
->CalcAmp( p,
m_amp2
,
m_mntffmodel
,
m_wilscoeff
, mu, Nf, sr,
181
res_swch, ias, Egamma_min, CKM_A, CKM_lambda,
182
CKM_barrho, CKM_bareta, mumumass_min );
183
184
// EvtGenReport(EVTGEN_NOTICE,"EvtGen") << "\n "
185
//<< "\n The function Evtbs2llGammaISRFSR::decay(...) passed with arguments:"
186
// << "\n mu = " << mu << " Nf =" << Nf
187
// << "\n res_swch = " << res_swch
188
// << "\n sr = " << sr << "\n ias = " << ias
189
// << "\n Egamma_min =" << Egamma_min
190
// << "\n CKM_A = " << CKM_A
191
// << "\n CKM_lambda = " << CKM_lambda
192
// << "\n CKM_barrho = " << CKM_barrho
193
// << "\n CKM_bareta = " << CKM_bareta
194
// << "\n "
195
// << std::endl;
196
}
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
EvtbTosllWilsCoeffNLO.hh
Evtbs2llGammaFFMNT.hh
Evtbs2llGammaISRFSRAmp.hh
Evtbs2llGammaISRFSR.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::getNArg
int getNArg() const
Definition
EvtDecayBase.hh:67
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::PHOTON
@ PHOTON
Definition
EvtSpinType.hh:34
EvtbTosllWilsCoeffNLO
Definition
EvtbTosllWilsCoeffNLO.hh:30
Evtbs2llGammaFFMNT
Definition
Evtbs2llGammaFFMNT.hh:43
Evtbs2llGammaISRFSRAmp
Definition
Evtbs2llGammaISRFSRAmp.hh:42
Evtbs2llGammaISRFSR::Evtbs2llGammaISRFSR
Evtbs2llGammaISRFSR()
Definition
Evtbs2llGammaISRFSR.hh:35
Evtbs2llGammaISRFSR::clone
EvtDecayBase * clone() const override
Definition
Evtbs2llGammaISRFSR.cpp:49
Evtbs2llGammaISRFSR::m_mntffmodel
Evtbs2llGammaFF * m_mntffmodel
Definition
Evtbs2llGammaISRFSR.hh:46
Evtbs2llGammaISRFSR::m_wilscoeff
EvtbTosllWilsCoeffNLO * m_wilscoeff
Definition
Evtbs2llGammaISRFSR.hh:48
Evtbs2llGammaISRFSR::init
void init() override
Definition
Evtbs2llGammaISRFSR.cpp:75
Evtbs2llGammaISRFSR::~Evtbs2llGammaISRFSR
virtual ~Evtbs2llGammaISRFSR()
Definition
Evtbs2llGammaISRFSR.cpp:35
Evtbs2llGammaISRFSR::decay
void decay(EvtParticle *p) override
Definition
Evtbs2llGammaISRFSR.cpp:160
Evtbs2llGammaISRFSR::getName
std::string getName() const override
Definition
Evtbs2llGammaISRFSR.cpp:43
Evtbs2llGammaISRFSR::initProbMax
void initProbMax() override
Definition
Evtbs2llGammaISRFSR.cpp:118
Evtbs2llGammaISRFSR::m_calcamp
Evtbs2llGammaISRFSRAmp * m_calcamp
Definition
Evtbs2llGammaISRFSR.hh:47
Generated by
1.17.0