BOSS
7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtSll.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: EvtSll.cc
12
//
13
// Description: The decay of a scalar meson to two leptons,
14
// or generally, two spin 1/2 particles.
15
// E.g., B0 -> tau+ tau-
16
//
17
// Modification history:
18
//
19
// SHY April 23, 1997 Module created
20
//
21
//------------------------------------------------------------------------
22
//
23
#include "EvtGenBase/EvtPatches.hh"
24
#include <stdlib.h>
25
#include <iostream>
26
#include <string>
27
#include "EvtGenBase/EvtParticle.hh"
28
#include "EvtGenBase/EvtPDL.hh"
29
#include "EvtGenBase/EvtGenKine.hh"
30
#include "EvtGenModels/EvtSll.hh"
31
#include "EvtGenBase/EvtDiracSpinor.hh"
32
#include "EvtGenBase/EvtReport.hh"
33
#include "EvtGenBase/EvtVector4C.hh"
34
35
EvtSll::~EvtSll
() {}
36
37
void
EvtSll::getName
(std::string& model_name){
38
39
model_name=
"SLL"
;
40
41
}
42
43
44
EvtDecayBase
*
EvtSll::clone
(){
45
46
return
new
EvtSll
;
47
48
}
49
50
void
EvtSll::init
(){
51
52
// check that there are 0 arguments
53
checkNArg
(0);
54
checkNDaug
(2);
55
56
checkSpinParent
(
EvtSpinType::SCALAR
);
57
58
checkSpinDaughter
(0,
EvtSpinType::DIRAC
);
59
checkSpinDaughter
(1,
EvtSpinType::DIRAC
);
60
61
}
62
63
void
EvtSll::decay
(
EvtParticle
*p){
64
65
66
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
());
67
68
EvtParticle
*l1, *l2;
69
l1 = p->
getDaug
(0);
70
l2 = p->
getDaug
(1);
71
EvtVector4R
p4_p;
72
p4_p.
set
(p->
mass
(),0.0,0.0,0.0);
73
74
EvtVector4C
l11, l12, l21, l22;
75
76
l11=
EvtLeptonVACurrent
(l1->
spParent
(0),l2->
spParent
(0));
77
l12=
EvtLeptonVACurrent
(l1->
spParent
(0),l2->
spParent
(1));
78
l21=
EvtLeptonVACurrent
(l1->
spParent
(1),l2->
spParent
(0));
79
l22=
EvtLeptonVACurrent
(l1->
spParent
(1),l2->
spParent
(1));
80
81
vertex
(0,0,p4_p*l11);
82
vertex
(0,1,p4_p*l12);
83
vertex
(1,0,p4_p*l21);
84
vertex
(1,1,p4_p*l22);
85
86
return
;
87
88
}
89
EvtLeptonVACurrent
EvtVector4C EvtLeptonVACurrent(const EvtDiracSpinor &d, const EvtDiracSpinor &dp)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDiracSpinor.cc:187
EvtDecayAmp::vertex
void vertex(const EvtComplex &)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDecayAmp.hh:37
EvtDecayBase
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDecayBase.hh:33
EvtDecayBase::checkSpinDaughter
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDecayBase.cc:533
EvtDecayBase::checkSpinParent
void checkSpinParent(EvtSpinType::spintype sp)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDecayBase.cc:520
EvtDecayBase::getNDaug
int getNDaug()
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDecayBase.hh:64
EvtDecayBase::checkNDaug
void checkNDaug(int d1, int d2=-1)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDecayBase.cc:504
EvtDecayBase::getDaugs
EvtId * getDaugs()
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDecayBase.hh:65
EvtDecayBase::checkNArg
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDecayBase.cc:482
EvtParticle
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticle.hh:42
EvtParticle::spParent
virtual EvtDiracSpinor spParent(int) const
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticle.cc:609
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticle.cc:85
EvtParticle::mass
double mass() const
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticle.cc:127
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtParticle.cc:1071
EvtSll::init
void init()
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtSll.cc:50
EvtSll::clone
EvtDecayBase * clone()
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtSll.cc:44
EvtSll::getName
void getName(std::string &name)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtSll.cc:37
EvtSll::decay
void decay(EvtParticle *p)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtSll.cc:63
EvtSll::~EvtSll
virtual ~EvtSll()
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtSll.cc:35
EvtSll::EvtSll
EvtSll()
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtSll.hh:34
EvtSpinType::SCALAR
@ SCALAR
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtSpinType.hh:31
EvtSpinType::DIRAC
@ DIRAC
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtSpinType.hh:31
EvtVector4C
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtVector4C.hh:31
EvtVector4R
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtVector4R.hh:29
EvtVector4R::set
void set(int i, double d)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtVector4R.hh:183
source
Generator
BesEvtGen
bak-BesEvtGen-00-04-08
src
EvtGen
EvtGenModels
EvtSll.cc
Generated by
1.9.6