BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSLN.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
//
3
// Environment:
4
// This software is part of the EvtGen package developed jointly
5
// for the BaBar and CLEO collaborations. If you use all or part
6
// of it, please give an appropriate acknowledgement.
7
//
8
// Copyright Information: See EvtGen/COPYRIGHT
9
// Copyright (C) 1998 Caltech, UCSB
10
//
11
// Module: EvtSLN.cc
12
//
13
// Description: B ==> tau + nu
14
//
15
// Modification history:
16
//
17
// RYD/SHY April 23, 1997 Module created
18
//
19
//------------------------------------------------------------------------
20
//
21
#include "
EvtSLN.hh
"
22
#include "
../EvtGenBase/EvtDiracSpinor.hh
"
23
#include "
../EvtGenBase/EvtGenKine.hh
"
24
#include "
../EvtGenBase/EvtPDL.hh
"
25
#include "
../EvtGenBase/EvtParticle.hh
"
26
#include "
../EvtGenBase/EvtPatches.hh
"
27
#include "
../EvtGenBase/EvtReport.hh
"
28
#include "
../EvtGenBase/EvtVector4C.hh
"
29
#include <iostream>
30
#include <stdlib.h>
31
#include <string>
32
33
EvtSLN::~EvtSLN
() {}
34
35
void
EvtSLN::getName
( std::string& model_name ) { model_name =
"SLN"
; }
36
37
EvtDecayBase
*
EvtSLN::clone
() {
return
new
EvtSLN
; }
38
39
void
EvtSLN::init
() {
40
41
// check that there are 0 arguments
42
checkNArg
( 0 );
43
checkNDaug
( 2 );
44
45
checkSpinParent
(
EvtSpinType::SCALAR
);
46
47
checkSpinDaughter
( 0,
EvtSpinType::DIRAC
);
48
checkSpinDaughter
( 1,
EvtSpinType::NEUTRINO
);
49
}
50
51
void
EvtSLN::initProbMax
() {
52
53
double
M =
EvtPDL::getMeanMass
(
getParentId
() );
54
double
m =
EvtPDL::getMeanMass
(
getDaug
( 0 ) );
55
56
double
probMax = 8.0 * ( M * M - m * m ) * m * m;
57
58
setProbMax
( probMax );
59
}
60
61
void
EvtSLN::decay
(
EvtParticle
* p ) {
62
63
static
EvtId
EM =
EvtPDL::getId
(
"e-"
);
64
static
EvtId
MUM =
EvtPDL::getId
(
"mu-"
);
65
static
EvtId
TAUM =
EvtPDL::getId
(
"tau-"
);
66
67
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
68
69
EvtParticle
*l, *nul;
70
l = p->
getDaug
( 0 );
71
nul = p->
getDaug
( 1 );
72
73
EvtVector4R
p4_p;
74
p4_p.
set
( p->
mass
(), 0.0, 0.0, 0.0 );
75
76
EvtVector4C
l1, l2;
77
78
if
(
getDaug
( 0 ) == TAUM ||
getDaug
( 0 ) == MUM ||
getDaug
( 0 ) == EM )
79
{
80
l1 =
EvtLeptonVACurrent
( l->
spParent
( 0 ), nul->
spParentNeutrino
() );
81
l2 =
EvtLeptonVACurrent
( l->
spParent
( 1 ), nul->
spParentNeutrino
() );
82
}
83
else
84
{
85
l1 =
EvtLeptonVACurrent
( nul->
spParentNeutrino
(), l->
spParent
( 0 ) );
86
l2 =
EvtLeptonVACurrent
( nul->
spParentNeutrino
(), l->
spParent
( 1 ) );
87
}
88
89
vertex
( 0, p4_p * l1 );
90
vertex
( 1, p4_p * l2 );
91
92
return
;
93
}
EvtLeptonVACurrent
EvtVector4C EvtLeptonVACurrent(const EvtDiracSpinor &d, const EvtDiracSpinor &dp)
Definition
EvtDiracSpinor.cc:162
EvtDiracSpinor.hh
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtReport.hh
EvtSLN.hh
EvtVector4C.hh
EvtDecayAmp::vertex
void vertex(const EvtComplex &)
Definition
EvtDecayAmp.hh:36
EvtDecayBase::checkSpinDaughter
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
Definition
EvtDecayBase.cc:492
EvtDecayBase::checkSpinParent
void checkSpinParent(EvtSpinType::spintype sp)
Definition
EvtDecayBase.cc:479
EvtDecayBase::EvtDecayBase
EvtDecayBase()
Definition
EvtDecayBase.cc:205
EvtDecayBase::setProbMax
void setProbMax(double prbmx)
Definition
EvtDecayBase.cc:261
EvtDecayBase::getParentId
EvtId getParentId()
Definition
EvtDecayBase.hh:63
EvtDecayBase::getNDaug
int getNDaug()
Definition
EvtDecayBase.hh:67
EvtDecayBase::checkNDaug
void checkNDaug(int d1, int d2=-1)
Definition
EvtDecayBase.cc:465
EvtDecayBase::getDaugs
EvtId * getDaugs()
Definition
EvtDecayBase.hh:68
EvtDecayBase::checkNArg
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition
EvtDecayBase.cc:449
EvtDecayBase::getDaug
EvtId getDaug(int i)
Definition
EvtDecayBase.hh:69
EvtId
Definition
EvtId.hh:27
EvtPDL::getMeanMass
static double getMeanMass(EvtId i)
Definition
EvtPDL.hh:43
EvtPDL::getId
static EvtId getId(const std::string &name)
Definition
EvtPDL.cc:272
EvtParticle
Definition
EvtParticle.hh:42
EvtParticle::spParentNeutrino
virtual EvtDiracSpinor spParentNeutrino() const
Definition
EvtParticle.cc:648
EvtParticle::spParent
virtual EvtDiracSpinor spParent(int) const
Definition
EvtParticle.cc:624
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition
EvtParticle.cc:80
EvtParticle::mass
double mass() const
Definition
EvtParticle.cc:114
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition
EvtParticle.cc:1042
EvtSLN::initProbMax
void initProbMax()
Definition
EvtSLN.cc:51
EvtSLN::~EvtSLN
virtual ~EvtSLN()
Definition
EvtSLN.cc:33
EvtSLN::clone
EvtDecayBase * clone()
Definition
EvtSLN.cc:37
EvtSLN::getName
void getName(std::string &name)
Definition
EvtSLN.cc:35
EvtSLN::decay
void decay(EvtParticle *p)
Definition
EvtSLN.cc:61
EvtSLN::EvtSLN
EvtSLN()
Definition
EvtSLN.hh:33
EvtSLN::init
void init()
Definition
EvtSLN.cc:39
EvtSpinType::NEUTRINO
@ NEUTRINO
Definition
EvtSpinType.hh:36
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:31
EvtSpinType::DIRAC
@ DIRAC
Definition
EvtSpinType.hh:34
EvtVector4C
Definition
EvtVector4C.hh:31
EvtVector4R
Definition
EvtVector4R.hh:29
EvtVector4R::set
void set(int i, double d)
Definition
EvtVector4R.hh:173
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtSLN.cc
Generated by
1.16.1