BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
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 "
EvtSll.hh
"
24
#include "
../EvtGenBase/EvtDiracSpinor.hh
"
25
#include "
../EvtGenBase/EvtGenKine.hh
"
26
#include "
../EvtGenBase/EvtPDL.hh
"
27
#include "
../EvtGenBase/EvtParticle.hh
"
28
#include "
../EvtGenBase/EvtPatches.hh
"
29
#include "
../EvtGenBase/EvtReport.hh
"
30
#include "
../EvtGenBase/EvtVector4C.hh
"
31
#include <iostream>
32
#include <stdlib.h>
33
#include <string>
34
35
EvtSll::~EvtSll
() {}
36
37
void
EvtSll::getName
( std::string& model_name ) { model_name =
"SLL"
; }
38
39
EvtDecayBase
*
EvtSll::clone
() {
return
new
EvtSll
; }
40
41
void
EvtSll::init
() {
42
43
// check that there are 0 arguments
44
checkNArg
( 0 );
45
checkNDaug
( 2 );
46
47
checkSpinParent
(
EvtSpinType::SCALAR
);
48
49
checkSpinDaughter
( 0,
EvtSpinType::DIRAC
);
50
checkSpinDaughter
( 1,
EvtSpinType::DIRAC
);
51
}
52
53
void
EvtSll::decay
(
EvtParticle
* p ) {
54
55
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
56
57
EvtParticle
*l1, *l2;
58
l1 = p->
getDaug
( 0 );
59
l2 = p->
getDaug
( 1 );
60
EvtVector4R
p4_p;
61
p4_p.
set
( p->
mass
(), 0.0, 0.0, 0.0 );
62
63
EvtVector4C
l11, l12, l21, l22;
64
65
l11 =
EvtLeptonVACurrent
( l1->
spParent
( 0 ), l2->
spParent
( 0 ) );
66
l12 =
EvtLeptonVACurrent
( l1->
spParent
( 0 ), l2->
spParent
( 1 ) );
67
l21 =
EvtLeptonVACurrent
( l1->
spParent
( 1 ), l2->
spParent
( 0 ) );
68
l22 =
EvtLeptonVACurrent
( l1->
spParent
( 1 ), l2->
spParent
( 1 ) );
69
70
vertex
( 0, 0, p4_p * l11 );
71
vertex
( 0, 1, p4_p * l12 );
72
vertex
( 1, 0, p4_p * l21 );
73
vertex
( 1, 1, p4_p * l22 );
74
75
return
;
76
}
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
EvtSll.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::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
EvtParticle
Definition
EvtParticle.hh:42
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
EvtSll::init
void init()
Definition
EvtSll.cc:41
EvtSll::clone
EvtDecayBase * clone()
Definition
EvtSll.cc:39
EvtSll::getName
void getName(std::string &name)
Definition
EvtSll.cc:37
EvtSll::decay
void decay(EvtParticle *p)
Definition
EvtSll.cc:53
EvtSll::~EvtSll
virtual ~EvtSll()
Definition
EvtSll.cc:35
EvtSll::EvtSll
EvtSll()
Definition
EvtSll.hh:33
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
EvtSll.cc
Generated by
1.16.1