EvtGen
2.2.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
Loading...
Searching...
No Matches
src
EvtGenModels
EvtSVSCPLH.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/EvtSVSCPLH.hh
"
22
23
#include "
EvtGenBase/EvtCPUtil.hh
"
24
#include "
EvtGenBase/EvtConst.hh
"
25
#include "
EvtGenBase/EvtGenKine.hh
"
26
#include "
EvtGenBase/EvtId.hh
"
27
#include "
EvtGenBase/EvtPDL.hh
"
28
#include "
EvtGenBase/EvtParticle.hh
"
29
#include "
EvtGenBase/EvtReport.hh
"
30
#include "
EvtGenBase/EvtVector4C.hh
"
31
32
#include <stdlib.h>
33
#include <string>
34
using
std::endl;
35
36
std::string
EvtSVSCPLH::getName
()
const
37
{
38
return
"SVS_CPLH"
;
39
}
40
41
EvtDecayBase
*
EvtSVSCPLH::clone
()
const
42
{
43
return
new
EvtSVSCPLH
;
44
}
45
46
void
EvtSVSCPLH::init
()
47
{
48
// check that there are 8 arguments
49
checkNArg
( 8 );
50
checkNDaug
( 2 );
51
52
checkSpinParent
(
EvtSpinType::SCALAR
);
53
54
checkSpinDaughter
( 0,
EvtSpinType::VECTOR
);
55
checkSpinDaughter
( 1,
EvtSpinType::SCALAR
);
56
57
static
const
double
ctau =
EvtPDL::getctau
(
EvtPDL::getId
(
"B0"
) );
58
59
// hbar/s
60
m_dm
=
getArg
( 0 );
61
m_dgamma
=
EvtConst::c
*
getArg
( 1 ) / ctau;
62
63
m_qop
=
getArg
( 2 ) *
exp
(
EvtComplex
( 0.0,
getArg
( 3 ) ) );
64
65
m_poq
= 1.0 /
m_qop
;
66
67
m_Af
=
getArg
( 4 ) *
exp
(
EvtComplex
( 0.0,
getArg
( 5 ) ) );
68
m_Abarf
=
getArg
( 6 ) *
exp
(
EvtComplex
( 0.0,
getArg
( 7 ) ) );
69
70
if
(
verbose
() ) {
71
EvtGenReport
(
EVTGEN_INFO
,
"EvtGen"
)
72
<<
":EvtSVSCPLH:dm="
<<
m_dm
<< endl;
73
EvtGenReport
(
EVTGEN_INFO
,
"EvtGen"
)
74
<<
":EvtSVSCPLH:dGamma="
<<
m_dgamma
<< endl;
75
EvtGenReport
(
EVTGEN_INFO
,
"EvtGen"
)
76
<<
":EvtSVSCPLH:q/p="
<<
m_qop
<< endl;
77
EvtGenReport
(
EVTGEN_INFO
,
"EvtGen"
)
78
<<
":EvtSVSCPLH:Af="
<<
m_Af
<< endl;
79
EvtGenReport
(
EVTGEN_INFO
,
"EvtGen"
)
80
<<
":EvtSVSCPLH:Abarf="
<<
m_Abarf
<< endl;
81
}
82
}
83
84
void
EvtSVSCPLH::initProbMax
()
85
{
86
//This is probably not quite right, but it should do as a start...
87
//Anders
88
89
setProbMax
( 4.0 * (
getArg
( 4 ) *
getArg
( 4 ) +
getArg
( 6 ) *
getArg
( 6 ) ) );
90
}
91
92
void
EvtSVSCPLH::decay
(
EvtParticle
* p )
93
{
94
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
95
96
static
const
EvtId
B0 =
EvtPDL::getId
(
"B0"
);
97
static
const
EvtId
B0B =
EvtPDL::getId
(
"anti-B0"
);
98
99
double
t;
100
EvtId
other_b;
101
102
EvtCPUtil::getInstance
()->
OtherB
( p, t, other_b, 0.5 );
103
104
//convert time from mm to seconds
105
t /=
EvtConst::c
;
106
107
//sign convention is dm=Mheavy-Mlight
108
// dGamma=Gammalight-Gammaheavy
109
//such that in the standard model both of these are positive.
110
EvtComplex
gp =
111
0.5 * (
exp
(
EvtComplex
( 0.25 * t *
m_dgamma
, -0.5 * t *
m_dm
) ) +
112
exp
(
EvtComplex
( -0.25 * t *
m_dgamma
, 0.5 * t *
m_dm
) ) );
113
EvtComplex
gm =
114
0.5 * (
exp
(
EvtComplex
( 0.25 * t *
m_dgamma
, -0.5 * t *
m_dm
) ) -
115
exp
(
EvtComplex
( -0.25 * t *
m_dgamma
, 0.5 * t *
m_dm
) ) );
116
117
EvtComplex
amp;
118
119
if
( other_b == B0B ) {
120
amp = gp *
m_Af
+
m_qop
* gm *
m_Abarf
;
121
}
else
if
( other_b == B0 ) {
122
amp = gp *
m_Abarf
+
m_poq
* gm *
m_Af
;
123
}
else
{
124
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
125
<<
"other_b was not B0 or B0B!"
<< endl;
126
::abort();
127
}
128
129
EvtVector4R
p4_parent = p->
getP4Restframe
();
130
;
131
132
double
norm = p->
getDaug
( 0 )->
mass
() /
133
( p->
getDaug
( 0 )->getP4().d3mag() * p4_parent.
mass
() );
134
135
EvtParticle
* v = p->
getDaug
( 0 );
136
137
vertex
( 0, amp * norm * ( p4_parent * ( v->
epsParent
( 0 ) ) ) );
138
vertex
( 1, amp * norm * ( p4_parent * ( v->
epsParent
( 1 ) ) ) );
139
vertex
( 2, amp * norm * ( p4_parent * ( v->
epsParent
( 2 ) ) ) );
140
141
return
;
142
}
EvtCPUtil.hh
exp
EvtComplex exp(const EvtComplex &c)
Definition
EvtComplex.hh:242
EvtConst.hh
EvtGenKine.hh
EvtId.hh
EvtPDL.hh
EvtParticle.hh
EvtReport.hh
EvtGenReport
std::ostream & EvtGenReport(EvtGenSeverity severity, const char *facility=nullptr)
Definition
EvtReport.cpp:32
EVTGEN_INFO
@ EVTGEN_INFO
Definition
EvtReport.hh:52
EVTGEN_ERROR
@ EVTGEN_ERROR
Definition
EvtReport.hh:49
EvtSVSCPLH.hh
EvtVector4C.hh
EvtCPUtil::getInstance
static EvtCPUtil * getInstance()
Definition
EvtCPUtil.cpp:42
EvtCPUtil::OtherB
void OtherB(EvtParticle *p, double &t, EvtId &otherb)
Definition
EvtCPUtil.cpp:372
EvtComplex
Definition
EvtComplex.hh:29
EvtConst::c
static const double c
Definition
EvtConst.hh:30
EvtDecayAmp::vertex
void vertex(const EvtComplex &)
Definition
EvtDecayAmp.hh:37
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::verbose
bool verbose() const
Definition
EvtDecayBase.hh:81
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::getctau
static double getctau(EvtId i)
Definition
EvtPDL.cpp:351
EvtPDL::getId
static EvtId getId(const std::string &name)
Definition
EvtPDL.cpp:283
EvtParticle
Definition
EvtParticle.hh:45
EvtParticle::epsParent
virtual EvtVector4C epsParent(int i) const
Definition
EvtParticle.cpp:611
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
EvtParticle::getP4Restframe
EvtVector4R getP4Restframe() const
Definition
EvtParticle.cpp:788
EvtParticle::getDaug
EvtParticle * getDaug(const int i)
Definition
EvtParticle.hh:173
EvtParticle::mass
double mass() const
Definition
EvtParticle.cpp:159
EvtSVSCPLH
Definition
EvtSVSCPLH.hh:33
EvtSVSCPLH::m_dm
double m_dm
Definition
EvtSVSCPLH.hh:47
EvtSVSCPLH::decay
void decay(EvtParticle *p) override
Definition
EvtSVSCPLH.cpp:92
EvtSVSCPLH::init
void init() override
Definition
EvtSVSCPLH.cpp:46
EvtSVSCPLH::initProbMax
void initProbMax() override
Definition
EvtSVSCPLH.cpp:84
EvtSVSCPLH::clone
EvtDecayBase * clone() const override
Definition
EvtSVSCPLH.cpp:41
EvtSVSCPLH::getName
std::string getName() const override
Definition
EvtSVSCPLH.cpp:36
EvtSVSCPLH::m_dgamma
double m_dgamma
Definition
EvtSVSCPLH.hh:48
EvtSVSCPLH::m_poq
EvtComplex m_poq
Definition
EvtSVSCPLH.hh:45
EvtSVSCPLH::m_Af
EvtComplex m_Af
Definition
EvtSVSCPLH.hh:44
EvtSVSCPLH::m_Abarf
EvtComplex m_Abarf
Definition
EvtSVSCPLH.hh:44
EvtSVSCPLH::m_qop
EvtComplex m_qop
Definition
EvtSVSCPLH.hh:45
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:30
EvtSpinType::VECTOR
@ VECTOR
Definition
EvtSpinType.hh:31
EvtVector4R
Definition
EvtVector4R.hh:29
EvtVector4R::mass
double mass() const
Definition
EvtVector4R.cpp:48
Generated by
1.16.1