BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtHQET.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: EvtHQET.cc
12
//
13
// Description: Routine to implement semileptonic B->D*lnu decays according
14
// to the model HQET
15
//
16
// Lange Nov9/01 adding Dlnu and possible (w-1)^2 term
17
//
18
//
19
// Modification history:
20
//
21
// DJL April 20, 1998 Module created
22
//
23
//------------------------------------------------------------------------
24
//
25
#include "
EvtHQET.hh
"
26
#include "
../EvtGenBase/EvtGenKine.hh
"
27
#include "
../EvtGenBase/EvtPDL.hh
"
28
#include "
../EvtGenBase/EvtParticle.hh
"
29
#include "
../EvtGenBase/EvtPatches.hh
"
30
#include "
../EvtGenBase/EvtReport.hh
"
31
#include "
../EvtGenBase/EvtSemiLeptonicScalarAmp.hh
"
32
#include "
../EvtGenBase/EvtSemiLeptonicVectorAmp.hh
"
33
#include "
EvtHQETFF.hh
"
34
#include <assert.h>
35
#include <stdlib.h>
36
#include <string>
37
using
std::endl;
38
39
EvtHQET::EvtHQET
() : hqetffmodel( 0 ), calcamp( 0 ) {}
40
41
EvtHQET::~EvtHQET
() {
42
delete
hqetffmodel;
43
hqetffmodel = 0;
44
delete
calcamp;
45
calcamp = 0;
46
}
47
48
void
EvtHQET::getName
( std::string& model_name ) { model_name =
"HQET"
; }
49
50
EvtDecayBase
*
EvtHQET::clone
() {
return
new
EvtHQET
; }
51
52
void
EvtHQET::decay
(
EvtParticle
* p ) {
53
54
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
55
calcamp->CalcAmp( p,
_amp2
, hqetffmodel );
56
}
57
58
void
EvtHQET::initProbMax
() {
59
60
EvtId
parnum, mesnum, lnum, nunum;
61
62
parnum =
getParentId
();
63
mesnum =
getDaug
( 0 );
64
lnum =
getDaug
( 1 );
65
nunum =
getDaug
( 2 );
66
67
double
mymaxprob = calcamp->CalcMaxProb( parnum, mesnum, lnum, nunum, hqetffmodel );
68
69
setProbMax
( mymaxprob );
70
}
71
72
void
EvtHQET::init
() {
73
74
checkNDaug
( 3 );
75
76
// We expect the parent to be a scalar
77
// and the daughters to be X lepton neutrino
78
checkSpinParent
(
EvtSpinType::SCALAR
);
79
80
checkSpinDaughter
( 1,
EvtSpinType::DIRAC
);
81
checkSpinDaughter
( 2,
EvtSpinType::NEUTRINO
);
82
83
EvtSpinType::spintype
d1type =
EvtPDL::getSpinType
(
getDaug
( 0 ) );
84
if
( d1type ==
EvtSpinType::SCALAR
)
85
{
86
checkNArg
( 1, 2 );
87
if
(
getNArg
() == 1 ) hqetffmodel =
new
EvtHQETFF
(
getArg
( 0 ) );
88
else
hqetffmodel =
new
EvtHQETFF
(
getArg
( 0 ),
getArg
( 1 ) );
89
calcamp =
new
EvtSemiLeptonicScalarAmp
;
90
}
91
else
if
( d1type ==
EvtSpinType::VECTOR
)
92
{
93
checkNArg
( 3, 4 );
94
if
(
getNArg
() == 3 ) hqetffmodel =
new
EvtHQETFF
(
getArg
( 0 ),
getArg
( 1 ),
getArg
( 2 ) );
95
else
hqetffmodel =
new
EvtHQETFF
(
getArg
( 0 ),
getArg
( 1 ),
getArg
( 2 ),
getArg
( 3 ) );
96
calcamp =
new
EvtSemiLeptonicVectorAmp
;
97
}
98
else
99
{
100
report
(
ERROR
,
"EvtGen"
)
101
<<
"HQET model handles only scalar and vector meson daughters. Sorry."
<< endl;
102
::abort();
103
}
104
}
EvtGenKine.hh
EvtHQETFF.hh
EvtHQET.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
report
ostream & report(Severity severity, const char *facility)
Definition
EvtReport.cc:34
EvtReport.hh
ERROR
@ ERROR
Definition
EvtReport.hh:49
EvtSemiLeptonicScalarAmp.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::getArg
double getArg(int j)
Definition
EvtDecayBase.cc:520
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::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::checkNArg
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition
EvtDecayBase.cc:449
EvtDecayBase::getDaug
EvtId getDaug(int i)
Definition
EvtDecayBase.hh:69
EvtHQETFF
Definition
EvtHQETFF.hh:28
EvtHQET::getName
void getName(std::string &name)
Definition
EvtHQET.cc:48
EvtHQET::decay
void decay(EvtParticle *p)
Definition
EvtHQET.cc:52
EvtHQET::init
void init()
Definition
EvtHQET.cc:72
EvtHQET::clone
EvtDecayBase * clone()
Definition
EvtHQET.cc:50
EvtHQET::EvtHQET
EvtHQET()
Definition
EvtHQET.cc:39
EvtHQET::initProbMax
void initProbMax()
Definition
EvtHQET.cc:58
EvtHQET::~EvtHQET
virtual ~EvtHQET()
Definition
EvtHQET.cc:41
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
EvtSemiLeptonicScalarAmp
Definition
EvtSemiLeptonicScalarAmp.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::VECTOR
@ VECTOR
Definition
EvtSpinType.hh:32
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtHQET.cc
Generated by
1.16.1