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
EvtSVVCPLH.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/EvtSVVCPLH.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
31
#include "
EvtGenModels/EvtSVVHelAmp.hh
"
32
33
#include <stdlib.h>
34
#include <string>
35
using
std::endl;
36
37
std::string
EvtSVVCPLH::getName
()
const
38
{
39
return
"SVV_CPLH"
;
40
}
41
42
EvtDecayBase
*
EvtSVVCPLH::clone
()
const
43
{
44
return
new
EvtSVVCPLH
;
45
}
46
47
void
EvtSVVCPLH::init
()
48
{
49
// check that there are 9 arguments
50
checkNArg
( 9 );
51
checkNDaug
( 2 );
52
53
checkSpinParent
(
EvtSpinType::SCALAR
);
54
55
checkSpinDaughter
( 0,
EvtSpinType::VECTOR
);
56
checkSpinDaughter
( 1,
EvtSpinType::VECTOR
);
57
}
58
59
void
EvtSVVCPLH::initProbMax
()
60
{
61
//This is probably not quite right, but it should do as a start...
62
//Anders
63
64
setProbMax
( 2 * (
getArg
( 3 ) *
getArg
( 3 ) +
getArg
( 5 ) *
getArg
( 5 ) +
65
getArg
( 7 ) *
getArg
( 7 ) ) );
66
}
67
68
void
EvtSVVCPLH::decay
(
EvtParticle
* p )
69
{
70
//added by Lange Jan4,2000
71
static
const
EvtId
BS0 =
EvtPDL::getId
(
"B_s0"
);
72
static
const
EvtId
BSB =
EvtPDL::getId
(
"anti-B_s0"
);
73
74
double
t;
75
EvtId
other_b;
76
77
EvtCPUtil::getInstance
()->
OtherB
( p, t, other_b );
78
79
EvtComplex
G0P, G1P, G1M;
80
81
G1P =
EvtComplex
(
getArg
( 3 ) * cos(
getArg
( 4 ) ),
82
getArg
( 3 ) * sin(
getArg
( 4 ) ) );
83
G0P =
EvtComplex
(
getArg
( 5 ) * cos(
getArg
( 6 ) ),
84
getArg
( 5 ) * sin(
getArg
( 6 ) ) );
85
G1M =
EvtComplex
(
getArg
( 7 ) * cos(
getArg
( 8 ) ),
86
getArg
( 7 ) * sin(
getArg
( 8 ) ) );
87
88
EvtComplex
lambda_km =
EvtComplex
( cos( 2 *
getArg
( 0 ) ),
89
sin( 2 *
getArg
( 0 ) ) );
90
91
double
cdmt = cos(
getArg
( 1 ) * t / ( 2 *
EvtConst::c
) );
92
double
sdmt = sin(
getArg
( 1 ) * t / ( 2 *
EvtConst::c
) );
93
94
EvtComplex
cG0P, cG1P, cG1M;
95
96
static
const
double
ctauL =
EvtPDL::getctau
(
EvtPDL::getId
(
"B_s0L"
) );
97
static
const
double
ctauH =
EvtPDL::getctau
(
EvtPDL::getId
(
"B_s0H"
) );
98
99
//I'm not sure if the fabs() is right when t can be
100
//negative as in the case of Bs produced coherently.
101
double
pt = 1;
102
double
mt =
exp
( -fabs( t * ( ctauL - ctauH ) / ( ctauL * ctauH ) ) );
103
104
if
( other_b == BSB ) {
105
cG0P = pt * G0P *
106
( cdmt + lambda_km *
EvtComplex
( 0.0,
getArg
( 2 ) * sdmt ) );
107
cG1P = pt * G1P *
108
( cdmt + lambda_km *
EvtComplex
( 0.0,
getArg
( 2 ) * sdmt ) );
109
cG1M = mt * G1M *
110
( cdmt - lambda_km *
EvtComplex
( 0.0,
getArg
( 2 ) * sdmt ) );
111
}
else
if
( other_b == BS0 ) {
112
cG0P = pt * G0P *
113
( cdmt +
114
( 1.0 / lambda_km ) *
EvtComplex
( 0.0,
getArg
( 2 ) * sdmt ) );
115
cG1P = pt * G1P *
116
( cdmt +
117
( 1.0 / lambda_km ) *
EvtComplex
( 0.0,
getArg
( 2 ) * sdmt ) );
118
cG1M = -mt * G1M *
119
( cdmt -
120
( 1.0 / lambda_km ) *
EvtComplex
( 0.0,
getArg
( 2 ) * sdmt ) );
121
}
else
{
122
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
123
<<
"other_b was not BSB or BS0!"
<< endl;
124
::abort();
125
}
126
127
EvtComplex
A0, AP, AM;
128
129
A0 = cG0P / sqrt( 2.0 );
130
AP = ( cG1P + cG1M ) / sqrt( 2.0 );
131
AM = ( cG1P - cG1M ) / sqrt( 2.0 );
132
133
EvtSVVHelAmp::SVVHel
( p,
m_amp2
,
getDaug
( 0 ),
getDaug
( 1 ), AP, A0, AM );
134
135
return
;
136
}
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_ERROR
@ EVTGEN_ERROR
Definition
EvtReport.hh:49
EvtSVVCPLH.hh
EvtSVVHelAmp.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::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::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::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
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
EvtSVVCPLH::initProbMax
void initProbMax() override
Definition
EvtSVVCPLH.cpp:59
EvtSVVCPLH::decay
void decay(EvtParticle *p) override
Definition
EvtSVVCPLH.cpp:68
EvtSVVCPLH::clone
EvtDecayBase * clone() const override
Definition
EvtSVVCPLH.cpp:42
EvtSVVCPLH::init
void init() override
Definition
EvtSVVCPLH.cpp:47
EvtSVVCPLH::EvtSVVCPLH
EvtSVVCPLH()
Definition
EvtSVVCPLH.hh:30
EvtSVVCPLH::getName
std::string getName() const override
Definition
EvtSVVCPLH.cpp:37
EvtSVVHelAmp::SVVHel
static void SVVHel(EvtParticle *parent, EvtAmp &, EvtId n_v1, EvtId n_v2, const EvtComplex &hp, const EvtComplex &h0, const EvtComplex &hm)
Definition
EvtSVVHelAmp.cpp:78
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:30
EvtSpinType::VECTOR
@ VECTOR
Definition
EvtSpinType.hh:31
Generated by
1.17.0