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
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
22
26#include "EvtGenBase/EvtId.hh"
27#include "EvtGenBase/EvtPDL.hh"
30
32
33#include <stdlib.h>
34#include <string>
35using std::endl;
36
37std::string EvtSVVCPLH::getName() const
38{
39 return "SVV_CPLH";
40}
41
43{
44 return new EvtSVVCPLH;
45}
46
48{
49 // check that there are 9 arguments
50 checkNArg( 9 );
51 checkNDaug( 2 );
52
54
57}
58
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
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}
EvtComplex exp(const EvtComplex &c)
std::ostream & EvtGenReport(EvtGenSeverity severity, const char *facility=nullptr)
Definition EvtReport.cpp:32
@ EVTGEN_ERROR
Definition EvtReport.hh:49
static EvtCPUtil * getInstance()
Definition EvtCPUtil.cpp:42
void OtherB(EvtParticle *p, double &t, EvtId &otherb)
static const double c
Definition EvtConst.hh:30
EvtAmp m_amp2
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
EvtDecayBase()=default
void checkSpinParent(EvtSpinType::spintype sp)
double getArg(unsigned int j)
void setProbMax(double prbmx)
EvtId getDaug(int i) const
void checkNDaug(int d1, int d2=-1)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition EvtId.hh:27
static double getctau(EvtId i)
Definition EvtPDL.cpp:351
static EvtId getId(const std::string &name)
Definition EvtPDL.cpp:283
void initProbMax() override
void decay(EvtParticle *p) override
EvtDecayBase * clone() const override
void init() override
std::string getName() const override
static void SVVHel(EvtParticle *parent, EvtAmp &amp, EvtId n_v1, EvtId n_v2, const EvtComplex &hp, const EvtComplex &h0, const EvtComplex &hm)