CGEM BOSS
6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtHQET2.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: EvtHQET2.cc
12
//
13
// Description: Routine to implement semileptonic B->D*lnu & B->Dlnu
14
// decays according to the model HQET
15
//
16
// Lange Nov9/01 adding Dlnu and possible (w-1)^2 term
17
//
18
//
19
// Modification history:
20
//
21
// Marco Bomben March 10, 2003 Module created
22
//
23
//------------------------------------------------------------------------
24
//
25
#include "
EvtGenBase/EvtPatches.hh
"
26
#include <stdlib.h>
27
#include <assert.h>
28
#include "
EvtGenBase/EvtParticle.hh
"
29
#include "
EvtGenBase/EvtGenKine.hh
"
30
#include "
EvtGenBase/EvtPDL.hh
"
31
#include "
EvtGenBase/EvtReport.hh
"
32
#include "
EvtGenModels/EvtHQET2.hh
"
33
#include "
EvtGenModels/EvtHQET2FF.hh
"
34
#include "
EvtGenBase/EvtSemiLeptonicVectorAmp.hh
"
35
#include "
EvtGenBase/EvtSemiLeptonicScalarAmp.hh
"
36
#include <string>
37
using
std::endl;
38
39
EvtHQET2::EvtHQET2
():
40
hqetffmodel(0)
41
,calcamp(0)
42
{}
43
44
EvtHQET2::~EvtHQET2
() {
45
delete
hqetffmodel;
46
hqetffmodel=0;
47
delete
calcamp;
48
calcamp=0;
49
}
50
51
void
EvtHQET2::getName
(std::string& model_name){
52
53
model_name=
"HQET2"
;
54
55
}
56
57
58
59
EvtDecayBase
*
EvtHQET2::clone
(){
60
61
return
new
EvtHQET2
;
62
63
}
64
65
66
void
EvtHQET2::decay
(
EvtParticle
*p ){
67
68
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
());
69
calcamp->
CalcAmp
(p,
_amp2
,hqetffmodel);
70
71
}
72
73
void
EvtHQET2::initProbMax
(){
74
75
EvtId
parnum,mesnum,lnum,nunum;
76
77
parnum =
getParentId
();
78
mesnum =
getDaug
(0);
79
lnum =
getDaug
(1);
80
nunum =
getDaug
(2);
81
82
double
mymaxprob = calcamp->
CalcMaxProb
(parnum,mesnum,
83
lnum,nunum,hqetffmodel);
84
85
setProbMax
(mymaxprob);
86
87
}
88
89
90
void
EvtHQET2::init
(){
91
92
checkNDaug
(3);
93
94
//We expect the parent to be a scalar
95
//and the daughters to be X lepton neutrino
96
checkSpinParent
(
EvtSpinType::SCALAR
);
97
98
checkSpinDaughter
(1,
EvtSpinType::DIRAC
);
99
checkSpinDaughter
(2,
EvtSpinType::NEUTRINO
);
100
101
EvtSpinType::spintype
d1type =
EvtPDL::getSpinType
(
getDaug
(0));
102
if
( d1type==
EvtSpinType::SCALAR
) {
103
if
(
getNArg
()==2 ) {hqetffmodel =
new
EvtHQET2FF
(
getArg
(0),
getArg
(1));
104
calcamp =
new
EvtSemiLeptonicScalarAmp
;}
105
else
{
106
report
(
ERROR
,
"EvtGen"
) <<
"HQET2 model for scalar meson daughters needs 2 arguments. Sorry."
<<endl;
107
::abort();
108
}
109
}
110
else
if
( d1type==
EvtSpinType::VECTOR
) {
111
if
(
getNArg
()==4 ){ hqetffmodel =
new
EvtHQET2FF
(
getArg
(0),
getArg
(1),
getArg
(2),
getArg
(3));
112
calcamp =
new
EvtSemiLeptonicVectorAmp
; }
113
else
{
114
report
(
ERROR
,
"EvtGen"
) <<
"HQET2 model for vector meson daughtersneeds 4 arguments. Sorry."
<<endl;
115
::abort();
116
}
117
}
118
else
{
119
report
(
ERROR
,
"EvtGen"
) <<
"HQET2 model handles only scalar and vector meson daughters. Sorry."
<<endl;
120
::abort();
121
}
122
123
124
}
125
EvtGenKine.hh
EvtHQET2FF.hh
EvtHQET2.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
report
ostream & report(Severity severity, const char *facility)
Definition:
EvtReport.cc:36
EvtReport.hh
ERROR
@ ERROR
Definition:
EvtReport.hh:49
EvtSemiLeptonicScalarAmp.hh
EvtSemiLeptonicVectorAmp.hh
EvtDecayAmp::_amp2
EvtAmp _amp2
Definition:
EvtDecayAmp.hh:66
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::getArg
double getArg(int j)
Definition:
EvtDecayBase.cc:564
EvtDecayBase::setProbMax
void setProbMax(double prbmx)
Definition:
EvtDecayBase.cc:297
EvtDecayBase::getParentId
EvtId getParentId()
Definition:
EvtDecayBase.hh:60
EvtDecayBase::getNDaug
int getNDaug()
Definition:
EvtDecayBase.hh:64
EvtDecayBase::getNArg
int getNArg()
Definition:
EvtDecayBase.hh:67
EvtDecayBase::checkNDaug
void checkNDaug(int d1, int d2=-1)
Definition:
EvtDecayBase.cc:504
EvtDecayBase::getDaugs
EvtId * getDaugs()
Definition:
EvtDecayBase.hh:65
EvtDecayBase::getDaug
EvtId getDaug(int i)
Definition:
EvtDecayBase.hh:66
EvtHQET2FF
Definition:
EvtHQET2FF.hh:20
EvtHQET2::decay
void decay(EvtParticle *p)
Definition:
EvtHQET2.cc:66
EvtHQET2::EvtHQET2
EvtHQET2()
Definition:
EvtHQET2.cc:39
EvtHQET2::clone
EvtDecayBase * clone()
Definition:
EvtHQET2.cc:59
EvtHQET2::getName
void getName(std::string &name)
Definition:
EvtHQET2.cc:51
EvtHQET2::init
void init()
Definition:
EvtHQET2.cc:90
EvtHQET2::~EvtHQET2
virtual ~EvtHQET2()
Definition:
EvtHQET2.cc:44
EvtHQET2::initProbMax
void initProbMax()
Definition:
EvtHQET2.cc:73
EvtId
Definition:
EvtId.hh:27
EvtPDL::getSpinType
static EvtSpinType::spintype getSpinType(EvtId i)
Definition:
EvtPDL.hh:61
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:1069
EvtSemiLeptonicAmp::CalcAmp
virtual void CalcAmp(EvtParticle *parent, EvtAmp &, EvtSemiLeptonicFF *FormFactors)
Definition:
EvtSemiLeptonicAmp.hh:36
EvtSemiLeptonicAmp::CalcMaxProb
double CalcMaxProb(EvtId parent, EvtId meson, EvtId lepton, EvtId nudaug, EvtSemiLeptonicFF *FormFactors)
Definition:
EvtSemiLeptonicAmp.cc:38
EvtSemiLeptonicScalarAmp
Definition:
EvtSemiLeptonicScalarAmp.hh:30
EvtSemiLeptonicVectorAmp
Definition:
EvtSemiLeptonicVectorAmp.hh:30
EvtSpinType::spintype
spintype
Definition:
EvtSpinType.hh:31
EvtSpinType::NEUTRINO
@ NEUTRINO
Definition:
EvtSpinType.hh:31
EvtSpinType::SCALAR
@ SCALAR
Definition:
EvtSpinType.hh:31
EvtSpinType::DIRAC
@ DIRAC
Definition:
EvtSpinType.hh:31
EvtSpinType::VECTOR
@ VECTOR
Definition:
EvtSpinType.hh:31
source
Generator
BesEvtGen
BesEvtGen-00-01-96-slc6tag
src
EvtGen
EvtGenModels
EvtHQET2.cc
Generated by
1.9.6