BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSLBKPole.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: EvtSLBKPole.cc
12
//
13
// Description: Routine to implement semileptonic decays according
14
// to light cone sum rules
15
//
16
// Modification history:
17
//
18
// liheng October 20, 2005 Module created
19
//
20
//------------------------------------------------------------------------
21
//
22
#include "
EvtSLBKPole.hh
"
//modified
23
#include "
../EvtGenBase/EvtGenKine.hh
"
24
#include "
../EvtGenBase/EvtPDL.hh
"
25
#include "
../EvtGenBase/EvtParticle.hh
"
26
#include "
../EvtGenBase/EvtReport.hh
"
27
#include "
../EvtGenBase/EvtSemiLeptonicScalarAmp.hh
"
28
#include "
../EvtGenBase/EvtSemiLeptonicTensorAmp.hh
"
29
#include "
../EvtGenBase/EvtSemiLeptonicVectorAmp.hh
"
30
#include "
EvtSLBKPoleFF.hh
"
//modified
31
#include <stdlib.h>
32
#include <string>
33
34
EvtSLBKPole::~EvtSLBKPole
() {}
35
36
void
EvtSLBKPole::getName
( std::string& model_name ) {
37
38
model_name =
"SLBKPOLE"
;
// modified
39
}
40
41
EvtDecayBase
*
EvtSLBKPole::clone
() {
// modified
42
43
return
new
EvtSLBKPole
;
44
}
45
46
void
EvtSLBKPole::decay
(
EvtParticle
* p ) {
// modified
47
48
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
49
50
calcamp->CalcAmp( p,
_amp2
, SLBKPoleffmodel );
// modified
51
return
;
52
}
53
54
void
EvtSLBKPole::initProbMax
() {
55
56
EvtId
parnum, mesnum, lnum, nunum;
57
58
parnum =
getParentId
();
59
mesnum =
getDaug
( 0 );
60
lnum =
getDaug
( 1 );
61
nunum =
getDaug
( 2 );
62
63
double
mymaxprob =
64
calcamp->CalcMaxProb( parnum, mesnum, lnum, nunum, SLBKPoleffmodel );
// modified
65
66
setProbMax
( mymaxprob );
67
}
68
69
void
EvtSLBKPole::init
() {
// modified
70
71
checkNDaug
( 3 );
72
73
// We expect the parent to be a scalar
74
// and the daughters to be X lepton neutrino
75
76
checkSpinParent
(
EvtSpinType::SCALAR
);
77
checkSpinDaughter
( 1,
EvtSpinType::DIRAC
);
78
checkSpinDaughter
( 2,
EvtSpinType::NEUTRINO
);
79
80
EvtSpinType::spintype
mesontype =
EvtPDL::getSpinType
(
getDaug
( 0 ) );
81
82
SLBKPoleffmodel =
new
EvtSLBKPoleFF
(
getNArg
(),
getArgs
() );
// modified
83
84
if
( mesontype ==
EvtSpinType::SCALAR
) { calcamp =
new
EvtSemiLeptonicScalarAmp
; }
85
if
( mesontype ==
EvtSpinType::VECTOR
) { calcamp =
new
EvtSemiLeptonicVectorAmp
; }
86
if
( mesontype ==
EvtSpinType::TENSOR
) { calcamp =
new
EvtSemiLeptonicTensorAmp
; }
87
}
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtReport.hh
EvtSLBKPoleFF.hh
EvtSLBKPole.hh
EvtSemiLeptonicScalarAmp.hh
EvtSemiLeptonicTensorAmp.hh
EvtSemiLeptonicVectorAmp.hh
EvtDecayAmp::_amp2
EvtAmp _amp2
Definition
EvtDecayAmp.hh:63
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::getArgs
double * getArgs()
Definition
EvtDecayBase.cc:505
EvtDecayBase::getNDaug
int getNDaug()
Definition
EvtDecayBase.hh:67
EvtDecayBase::getNArg
int getNArg()
Definition
EvtDecayBase.hh:70
EvtDecayBase::checkNDaug
void checkNDaug(int d1, int d2=-1)
Definition
EvtDecayBase.cc:465
EvtDecayBase::getDaugs
EvtId * getDaugs()
Definition
EvtDecayBase.hh:68
EvtDecayBase::getDaug
EvtId getDaug(int i)
Definition
EvtDecayBase.hh:69
EvtId
Definition
EvtId.hh:27
EvtPDL::getSpinType
static EvtSpinType::spintype getSpinType(EvtId i)
Definition
EvtPDL.hh:66
EvtParticle
Definition
EvtParticle.hh:42
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition
EvtParticle.cc:1042
EvtSLBKPoleFF
Definition
EvtSLBKPoleFF.hh:28
EvtSLBKPole::init
void init()
Definition
EvtSLBKPole.cc:69
EvtSLBKPole::decay
void decay(EvtParticle *p)
Definition
EvtSLBKPole.cc:46
EvtSLBKPole::~EvtSLBKPole
virtual ~EvtSLBKPole()
Definition
EvtSLBKPole.cc:34
EvtSLBKPole::initProbMax
void initProbMax()
Definition
EvtSLBKPole.cc:54
EvtSLBKPole::getName
void getName(std::string &model_name)
Definition
EvtSLBKPole.cc:36
EvtSLBKPole::clone
EvtDecayBase * clone()
Definition
EvtSLBKPole.cc:41
EvtSLBKPole::EvtSLBKPole
EvtSLBKPole()
Definition
EvtSLBKPole.hh:34
EvtSemiLeptonicScalarAmp
Definition
EvtSemiLeptonicScalarAmp.hh:30
EvtSemiLeptonicTensorAmp
Definition
EvtSemiLeptonicTensorAmp.hh:30
EvtSemiLeptonicVectorAmp
Definition
EvtSemiLeptonicVectorAmp.hh:30
EvtSpinType::spintype
spintype
Definition
EvtSpinType.hh:30
EvtSpinType::NEUTRINO
@ NEUTRINO
Definition
EvtSpinType.hh:36
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:31
EvtSpinType::DIRAC
@ DIRAC
Definition
EvtSpinType.hh:34
EvtSpinType::TENSOR
@ TENSOR
Definition
EvtSpinType.hh:33
EvtSpinType::VECTOR
@ VECTOR
Definition
EvtSpinType.hh:32
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtSLBKPole.cc
Generated by
1.16.1