evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
EvtKstarnunu.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 
24 #include "EvtGenBase/EvtGenKine.hh"
25 #include "EvtGenBase/EvtPDL.hh"
27 #include "EvtGenBase/EvtPatches.hh"
28 #include "EvtGenBase/EvtReport.hh"
31 
32 #include <iostream>
33 #include <stdlib.h>
34 #include <string>
35 
36 std::string EvtKstarnunu::getName()
37 {
38  return "KSTARNUNU";
39 }
40 
42 {
43  return new EvtKstarnunu;
44 }
45 
47 {
48  // check that there are 0 arguments
49  checkNArg( 0 );
50  checkNDaug( 3 );
51 
52  //We expect the parent to be a scalar
53  //and the daughters to be K neutrino netrino
54 
56 
60 }
61 
63 {
64  static EvtId NUE = EvtPDL::getId( "nu_e" );
65  static EvtId NUM = EvtPDL::getId( "nu_mu" );
66  static EvtId NUT = EvtPDL::getId( "nu_tau" );
67  static EvtId NUEB = EvtPDL::getId( "anti-nu_e" );
68  static EvtId NUMB = EvtPDL::getId( "anti-nu_mu" );
69  static EvtId NUTB = EvtPDL::getId( "anti-nu_tau" );
70 
72 
73  double m_b = p->mass();
74 
75  EvtParticle *meson, *neutrino1, *neutrino2;
76  meson = p->getDaug( 0 );
77  neutrino1 = p->getDaug( 1 );
78  neutrino2 = p->getDaug( 2 );
79  EvtVector4R momnu1 = neutrino1->getP4();
80  EvtVector4R momnu2 = neutrino2->getP4();
81  EvtVector4R momkstar = meson->getP4();
82 
83  double v0_0, a1_0, a2_0;
84  double m2v0, a1_b, a2_b;
85  v0_0 = 0.47;
86  a1_0 = 0.37;
87  a2_0 = 0.40;
88  m2v0 = 5. * 5.;
89  a1_b = -0.023;
90  a2_b = 0.034;
91 
92  EvtVector4R q = momnu1 + momnu2;
93  double q2 = q.mass2();
94 
95  double v0, a1, a2;
96  v0 = v0_0 / ( 1 - q2 / m2v0 );
97  a1 = a1_0 * ( 1 + a1_b * q2 );
98  a2 = a2_0 * ( 1 + a2_b * q2 );
99 
100  EvtVector4R p4b;
101  p4b.set( m_b, 0., 0., 0. ); // Do calcs in mother rest frame
102 
103  double m_k = meson->mass();
104 
105  EvtTensor4C tds = ( -2 * v0 / ( m_b + m_k ) ) *
106  dual( EvtGenFunctions::directProd( p4b, momkstar ) ) -
107  EvtComplex( 0.0, 1.0 ) *
108  ( ( m_b + m_k ) * a1 * EvtTensor4C::g() -
109  ( a2 / ( m_b + m_k ) ) *
110  EvtGenFunctions::directProd( p4b - momkstar,
111  p4b + momkstar ) );
112 
113  EvtVector4C l;
114 
115  if ( getDaug( 1 ) == NUE || getDaug( 1 ) == NUM || getDaug( 1 ) == NUT ) {
116  l = EvtLeptonVACurrent( neutrino1->spParentNeutrino(),
117  neutrino2->spParentNeutrino() );
118  }
119  if ( getDaug( 1 ) == NUEB || getDaug( 1 ) == NUMB || getDaug( 1 ) == NUTB ) {
120  l = EvtLeptonVACurrent( neutrino2->spParentNeutrino(),
121  neutrino1->spParentNeutrino() );
122  }
123 
124  EvtVector4C et0, et1, et2;
125  et0 = tds.cont1( meson->epsParent( 0 ).conj() );
126  et1 = tds.cont1( meson->epsParent( 1 ).conj() );
127  et2 = tds.cont1( meson->epsParent( 2 ).conj() );
128 
129  vertex( 0, l * et0 );
130  vertex( 1, l * et1 );
131  vertex( 2, l * et2 );
132 
133  return;
134 }
EvtTensor3C directProd(const EvtVector3C &c1, const EvtVector3C &c2)
EvtDecayBase * clone() override
void init() override
static const EvtTensor4C & g()
Definition: EvtTensor4C.cpp:44
EvtTensor4C dual(const EvtTensor4C &t2)
const double a2
EvtVector4C cont1(const EvtVector4C &v4) const
std::string getName() override
const double a1
void set(int i, double d)
Definition: EvtVector4R.hh:167
EvtId * getDaugs()
Definition: EvtDecayBase.hh:66
Definition: EvtId.hh:27
double mass2() const
Definition: EvtVector4R.hh:100
void vertex(const EvtComplex &amp)
Definition: EvtDecayAmp.hh:37
double initializePhaseSpace(unsigned int numdaughter, EvtId *daughters, bool forceResetMasses=false, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
virtual EvtVector4C epsParent(int i) const
void checkNDaug(int d1, int d2=-1)
void checkSpinParent(EvtSpinType::spintype sp)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
static EvtId getId(const std::string &name)
Definition: EvtPDL.cpp:287
const EvtVector4R & getP4() const
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
double mass() const
virtual EvtDiracSpinor spParentNeutrino() const
int getNDaug() const
Definition: EvtDecayBase.hh:65
void decay(EvtParticle *p) override
EvtVector4C EvtLeptonVACurrent(const EvtDiracSpinor &d, const EvtDiracSpinor &dp)
EvtParticle * getDaug(int i)
Definition: EvtParticle.cpp:91
EvtVector4C conj() const
Definition: EvtVector4C.hh:202
EvtId getDaug(int i) const
Definition: EvtDecayBase.hh:67