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