BOSS
7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtbTosllAli.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) 2003 Caltech, UCSB
10
//
11
// Module: EvtbTosllAli.cc
12
//
13
// Description: Routine to implement b->sll decays according to Ali '02 et al.
14
//
15
// Modification history:
16
//
17
// Ryd March 30, 2003 Module created
18
//
19
//------------------------------------------------------------------------
20
//
21
#include "
EvtGenBase/EvtPatches.hh
"
22
#include <stdlib.h>
23
#include "
EvtGenBase/EvtParticle.hh
"
24
#include "
EvtGenBase/EvtGenKine.hh
"
25
#include "
EvtGenBase/EvtPDL.hh
"
26
#include "
EvtGenBase/EvtReport.hh
"
27
#include "
EvtGenModels/EvtbTosllAli.hh
"
28
#include "
EvtGenModels/EvtbTosllAliFF.hh
"
29
#include "
EvtGenModels/EvtbTosllAmp.hh
"
30
#include "
EvtGenModels/EvtbTosllScalarAmp.hh
"
31
#include "
EvtGenModels/EvtbTosllVectorAmp.hh
"
32
33
#include <string>
34
using
std::endl;
35
36
EvtbTosllAli::~EvtbTosllAli
() {}
37
38
void
EvtbTosllAli::getName
(std::string& model_name){
39
40
model_name=
"BTOSLLALI"
;
41
}
42
43
44
EvtDecayBase
*
EvtbTosllAli::clone
(){
45
46
return
new
EvtbTosllAli
;
47
48
}
49
50
void
EvtbTosllAli::decay
(
EvtParticle
*p ){
51
52
setWeight
(p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
(),_poleSize,1,2));
53
54
_calcamp->
CalcAmp
(p,
_amp2
,_aliffmodel);
55
56
}
57
58
59
void
EvtbTosllAli::initProbMax
(){
60
61
EvtId
parnum,mesnum,l1num,l2num;
62
63
parnum =
getParentId
();
64
mesnum =
getDaug
(0);
65
l1num =
getDaug
(1);
66
l2num =
getDaug
(2);
67
68
//This routine sets the _poleSize.
69
double
mymaxprob = _calcamp->
CalcMaxProb
(parnum,mesnum,
70
l1num,l2num,
71
_aliffmodel,_poleSize);
72
73
setProbMax
(mymaxprob);
74
75
}
76
77
78
void
EvtbTosllAli::init
(){
79
80
checkNArg
(0);
81
checkNDaug
(3);
82
83
//We expect the parent to be a scalar
84
//and the daughters to be X lepton+ lepton-
85
86
checkSpinParent
(
EvtSpinType::SCALAR
);
87
88
EvtSpinType::spintype
mesontype=
EvtPDL::getSpinType
(
getDaug
(0));
89
90
if
( !(mesontype ==
EvtSpinType::VECTOR
||
91
mesontype ==
EvtSpinType::SCALAR
)) {
92
report
(
ERROR
,
"EvtGen"
) <<
"EvtbTosllAli generator expected "
93
<<
" a SCALAR or VECTOR 1st daughter, found:"
<<
94
EvtPDL::name
(
getDaug
(0)).c_str()<<endl;
95
report
(
ERROR
,
"EvtGen"
) <<
"Will terminate execution!"
<<endl;
96
::abort();
97
}
98
99
checkSpinDaughter
(1,
EvtSpinType::DIRAC
);
100
checkSpinDaughter
(2,
EvtSpinType::DIRAC
);
101
102
_aliffmodel =
new
EvtbTosllAliFF
();
103
if
(mesontype ==
EvtSpinType::SCALAR
){
104
_calcamp =
new
EvtbTosllScalarAmp
(-0313,4.344,-4.669);
105
}
106
if
(mesontype ==
EvtSpinType::VECTOR
){
107
_calcamp =
new
EvtbTosllVectorAmp
(-0313,4.344,-4.669);
108
}
109
110
}
111
112
113
114
115
EvtGenKine.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
EvtbTosllAliFF.hh
EvtbTosllAli.hh
EvtbTosllAmp.hh
EvtbTosllScalarAmp.hh
EvtbTosllVectorAmp.hh
EvtDecayAmp::setWeight
void setWeight(double weight)
Definition:
EvtDecayAmp.hh:32
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::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::checkNDaug
void checkNDaug(int d1, int d2=-1)
Definition:
EvtDecayBase.cc:504
EvtDecayBase::getDaugs
EvtId * getDaugs()
Definition:
EvtDecayBase.hh:65
EvtDecayBase::checkNArg
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition:
EvtDecayBase.cc:482
EvtDecayBase::getDaug
EvtId getDaug(int i)
Definition:
EvtDecayBase.hh:66
EvtId
Definition:
EvtId.hh:27
EvtPDL::name
static std::string name(EvtId i)
Definition:
EvtPDL.hh:64
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:1071
EvtSpinType::spintype
spintype
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
EvtbTosllAliFF
Definition:
EvtbTosllAliFF.hh:29
EvtbTosllAli::initProbMax
void initProbMax()
Definition:
EvtbTosllAli.cc:59
EvtbTosllAli::clone
EvtDecayBase * clone()
Definition:
EvtbTosllAli.cc:44
EvtbTosllAli::decay
void decay(EvtParticle *p)
Definition:
EvtbTosllAli.cc:50
EvtbTosllAli::EvtbTosllAli
EvtbTosllAli()
Definition:
EvtbTosllAli.hh:35
EvtbTosllAli::getName
void getName(std::string &name)
Definition:
EvtbTosllAli.cc:38
EvtbTosllAli::init
void init()
Definition:
EvtbTosllAli.cc:78
EvtbTosllAli::~EvtbTosllAli
virtual ~EvtbTosllAli()
Definition:
EvtbTosllAli.cc:36
EvtbTosllAmp::CalcAmp
virtual void CalcAmp(EvtParticle *parent, EvtAmp &, EvtbTosllFF *formFactors)=0
EvtbTosllAmp::CalcMaxProb
double CalcMaxProb(EvtId parent, EvtId meson, EvtId lepton, EvtId nudaug, EvtbTosllFF *formFactors, double &poleSize)
Definition:
EvtbTosllAmp.cc:37
EvtbTosllScalarAmp
Definition:
EvtbTosllScalarAmp.hh:29
EvtbTosllVectorAmp
Definition:
EvtbTosllVectorAmp.hh:30
source
Generator
BesEvtGen
BesEvtGen-00-03-58
src
EvtGen
EvtGenModels
EvtbTosllAli.cc
Generated by
1.9.6