CGEM BOSS
6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtVll.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: EvtVll.cc
12
//
13
// Description: The decay of a vector meson to two leptons,
14
// or generally, two spin 1/2 particles.
15
// E.g., J/psi -> e+ e-
16
//
17
// Modification history:
18
//
19
// RYD January 17, 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/EvtVll.hh
"
31
#include "
EvtGenBase/EvtDiracSpinor.hh
"
32
#include "
EvtGenBase/EvtReport.hh
"
33
#include "
EvtGenBase/EvtVector4C.hh
"
34
35
EvtVll::~EvtVll
() {}
36
37
void
EvtVll::getName
(std::string& model_name){
38
39
model_name=
"VLL"
;
40
41
}
42
43
44
EvtDecayBase
*
EvtVll::clone
(){
45
46
return
new
EvtVll
;
47
48
}
49
50
void
EvtVll::init
(){
51
52
// check that there are 0 arguments
53
checkNArg
(0);
54
checkNDaug
(2);
55
56
checkSpinParent
(
EvtSpinType::VECTOR
);
57
58
checkSpinDaughter
(0,
EvtSpinType::DIRAC
);
59
checkSpinDaughter
(1,
EvtSpinType::DIRAC
);
60
61
}
62
63
void
EvtVll::initProbMax
(){
64
65
setProbMax
(1.0);
66
67
}
68
69
void
EvtVll::decay
(
EvtParticle
*p){
70
71
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
());
72
73
EvtParticle
*l1, *l2;
74
l1 = p->
getDaug
(0);
75
l2 = p->
getDaug
(1);
76
77
EvtVector4C
l11, l12, l21, l22;
78
l11=
EvtLeptonVCurrent
(l1->
spParent
(0),l2->
spParent
(0));
79
l12=
EvtLeptonVCurrent
(l1->
spParent
(0),l2->
spParent
(1));
80
l21=
EvtLeptonVCurrent
(l1->
spParent
(1),l2->
spParent
(0));
81
l22=
EvtLeptonVCurrent
(l1->
spParent
(1),l2->
spParent
(1));
82
83
EvtVector4C
eps0=p->
eps
(0);
84
EvtVector4C
eps1=p->
eps
(1);
85
EvtVector4C
eps2=p->
eps
(2);
86
87
double
M2=p->
mass
();
88
M2*=M2;
89
double
m2=l1->
mass
();
90
m2*=m2;
91
92
double
norm=1.0/sqrt(2*M2+4*m2-4*m2*m2/M2);
93
94
vertex
(0,0,0,norm*(eps0*l11));
95
vertex
(0,0,1,norm*(eps0*l12));
96
vertex
(0,1,0,norm*(eps0*l21));
97
vertex
(0,1,1,norm*(eps0*l22));
98
99
vertex
(1,0,0,norm*(eps1*l11));
100
vertex
(1,0,1,norm*(eps1*l12));
101
vertex
(1,1,0,norm*(eps1*l21));
102
vertex
(1,1,1,norm*(eps1*l22));
103
104
vertex
(2,0,0,norm*(eps2*l11));
105
vertex
(2,0,1,norm*(eps2*l12));
106
vertex
(2,1,0,norm*(eps2*l21));
107
vertex
(2,1,1,norm*(eps2*l22));
108
109
return
;
110
111
}
112
113
114
115
116
117
118
119
120
121
122
123
124
EvtLeptonVCurrent
EvtVector4C EvtLeptonVCurrent(const EvtDiracSpinor &d, const EvtDiracSpinor &dp)
Definition:
EvtDiracSpinor.cc:220
EvtDiracSpinor.hh
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtReport.hh
EvtVector4C.hh
EvtVll.hh
EvtDecayAmp::vertex
void vertex(const EvtComplex &)
Definition:
EvtDecayAmp.hh:37
EvtDecayBase
Definition:
EvtDecayBase.hh:33
EvtDecayBase::checkSpinDaughter
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
Definition:
EvtDecayBase.cc:533
EvtDecayBase::checkSpinParent
void checkSpinParent(EvtSpinType::spintype sp)
Definition:
EvtDecayBase.cc:520
EvtDecayBase::setProbMax
void setProbMax(double prbmx)
Definition:
EvtDecayBase.cc:297
EvtDecayBase::getNDaug
int getNDaug()
Definition:
EvtDecayBase.hh:64
EvtDecayBase::checkNDaug
void checkNDaug(int d1, int d2=-1)
Definition:
EvtDecayBase.cc:504
EvtDecayBase::getDaugs
EvtId * getDaugs()
Definition:
EvtDecayBase.hh:65
EvtDecayBase::checkNArg
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition:
EvtDecayBase.cc:482
EvtParticle
Definition:
EvtParticle.hh:42
EvtParticle::spParent
virtual EvtDiracSpinor spParent(int) const
Definition:
EvtParticle.cc:607
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition:
EvtParticle.cc:85
EvtParticle::mass
double mass() const
Definition:
EvtParticle.cc:127
EvtParticle::eps
virtual EvtVector4C eps(int i) const
Definition:
EvtParticle.cc:574
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition:
EvtParticle.cc:1069
EvtSpinType::DIRAC
@ DIRAC
Definition:
EvtSpinType.hh:31
EvtSpinType::VECTOR
@ VECTOR
Definition:
EvtSpinType.hh:31
EvtVector4C
Definition:
EvtVector4C.hh:31
EvtVll::init
void init()
Definition:
EvtVll.cc:50
EvtVll::decay
void decay(EvtParticle *p)
Definition:
EvtVll.cc:69
EvtVll::~EvtVll
virtual ~EvtVll()
Definition:
EvtVll.cc:35
EvtVll::initProbMax
void initProbMax()
Definition:
EvtVll.cc:63
EvtVll::EvtVll
EvtVll()
Definition:
EvtVll.hh:32
EvtVll::getName
void getName(std::string &name)
Definition:
EvtVll.cc:37
EvtVll::clone
EvtDecayBase * clone()
Definition:
EvtVll.cc:44
source
Generator
BesEvtGen
BesEvtGen-00-01-96-slc6tag
src
EvtGen
EvtGenModels
EvtVll.cc
Generated by
1.9.6