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
EvtVVSPwave.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/EvtVVSPwave.hh
"
22
23
#include "
EvtGenBase/EvtGenKine.hh
"
24
#include "
EvtGenBase/EvtPDL.hh
"
25
#include "
EvtGenBase/EvtParticle.hh
"
26
#include "
EvtGenBase/EvtReport.hh
"
27
#include "
EvtGenBase/EvtTensor4C.hh
"
28
#include "
EvtGenBase/EvtVector4C.hh
"
29
30
#include <stdlib.h>
31
#include <string>
32
using
std::endl;
33
34
std::string
EvtVVSPwave::getName
()
const
35
{
36
return
"VVS_PWAVE"
;
37
}
38
39
EvtDecayBase
*
EvtVVSPwave::clone
()
const
40
{
41
return
new
EvtVVSPwave
;
42
}
43
44
void
EvtVVSPwave::init
()
45
{
46
// check that there are 6 arguments
47
checkNArg
( 6 );
48
checkNDaug
( 2 );
49
50
checkSpinParent
(
EvtSpinType::VECTOR
);
51
checkSpinDaughter
( 0,
EvtSpinType::VECTOR
);
52
checkSpinDaughter
( 1,
EvtSpinType::SCALAR
);
53
}
54
55
void
EvtVVSPwave::initProbMax
()
56
{
57
//probmax is 1.0 for all possible decays I think!
58
59
setProbMax
( 1.0 );
60
}
61
62
void
EvtVVSPwave::decay
(
EvtParticle
* p )
63
{
64
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
65
66
EvtComplex
as(
getArg
( 0 ) * cos(
getArg
( 1 ) ),
67
getArg
( 0 ) * sin(
getArg
( 1 ) ) );
68
EvtComplex
ap(
getArg
( 2 ) * cos(
getArg
( 3 ) ),
69
getArg
( 2 ) * sin(
getArg
( 3 ) ) );
70
EvtComplex
ad(
getArg
( 4 ) * cos(
getArg
( 5 ) ),
71
getArg
( 4 ) * sin(
getArg
( 5 ) ) );
72
73
if
( ap !=
EvtComplex
( 0.0, 0.0 ) ) {
74
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
75
<<
"In EvtVectorToVectorScalar.cc"
<< endl;
76
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
77
<<
"P wave not yet implemented!!"
<< endl;
78
::abort();
79
}
80
81
EvtParticle
* v;
82
v = p->
getDaug
( 0 );
83
84
EvtTensor4C
d, g;
85
86
g.
setdiag
( 1.0, -1.0, -1.0, -1.0 );
87
88
d = ad * ( ( 1.0 / ( v->
getP4
().d3mag() * v->
getP4
().
d3mag
() ) ) *
89
EvtGenFunctions::directProd
( v->
getP4
(), v->
getP4
() ) +
90
( 1 / 3.0 ) * g ) +
91
as * g;
92
93
EvtVector4C
ep0, ep1, ep2;
94
95
ep0 = d.
cont1
( p->
eps
( 0 ) );
96
ep1 = d.
cont1
( p->
eps
( 1 ) );
97
ep2 = d.
cont1
( p->
eps
( 2 ) );
98
99
vertex
( 0, 0, ep0.
cont
( v->
eps
( 0 ).
conj
() ) );
100
vertex
( 0, 1, ep0.
cont
( v->
eps
( 1 ).
conj
() ) );
101
vertex
( 0, 2, ep0.
cont
( v->
eps
( 2 ).
conj
() ) );
102
103
vertex
( 1, 0, ep1.
cont
( v->
eps
( 0 ).
conj
() ) );
104
vertex
( 1, 1, ep1.
cont
( v->
eps
( 1 ).
conj
() ) );
105
vertex
( 1, 2, ep1.
cont
( v->
eps
( 2 ).
conj
() ) );
106
107
vertex
( 2, 0, ep2.
cont
( v->
eps
( 0 ).
conj
() ) );
108
vertex
( 2, 1, ep2.
cont
( v->
eps
( 1 ).
conj
() ) );
109
vertex
( 2, 2, ep2.
cont
( v->
eps
( 2 ).
conj
() ) );
110
111
return
;
112
}
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
EvtTensor4C.hh
EvtVVSPwave.hh
EvtVector4C.hh
EvtComplex
Definition
EvtComplex.hh:29
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::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
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
EvtParticle::getP4
const EvtVector4R & getP4() const
Definition
EvtParticle.cpp:144
EvtParticle::getDaug
EvtParticle * getDaug(const int i)
Definition
EvtParticle.hh:173
EvtParticle::eps
virtual EvtVector4C eps(int i) const
Definition
EvtParticle.cpp:623
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:30
EvtSpinType::VECTOR
@ VECTOR
Definition
EvtSpinType.hh:31
EvtTensor4C
Definition
EvtTensor4C.hh:38
EvtTensor4C::setdiag
void setdiag(double t00, double t11, double t22, double t33)
Definition
EvtTensor4C.cpp:202
EvtTensor4C::cont1
EvtVector4C cont1(const EvtVector4C &v4) const
Definition
EvtTensor4C.cpp:446
EvtVVSPwave::initProbMax
void initProbMax() override
Definition
EvtVVSPwave.cpp:55
EvtVVSPwave::decay
void decay(EvtParticle *p) override
Definition
EvtVVSPwave.cpp:62
EvtVVSPwave::EvtVVSPwave
EvtVVSPwave()
Definition
EvtVVSPwave.hh:30
EvtVVSPwave::getName
std::string getName() const override
Definition
EvtVVSPwave.cpp:34
EvtVVSPwave::clone
EvtDecayBase * clone() const override
Definition
EvtVVSPwave.cpp:39
EvtVVSPwave::init
void init() override
Definition
EvtVVSPwave.cpp:44
EvtVector4C
Definition
EvtVector4C.hh:30
EvtVector4C::conj
EvtVector4C conj() const
Definition
EvtVector4C.hh:204
EvtVector4C::cont
EvtComplex cont(const EvtVector4C &v4) const
Definition
EvtVector4C.hh:140
EvtVector4R::d3mag
double d3mag() const
Definition
EvtVector4R.cpp:192
EvtGenFunctions::directProd
EvtTensor3C directProd(const EvtVector3C &c1, const EvtVector3C &c2)
Definition
EvtTensor3C.cpp:153
Generated by
1.16.1