BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtbTosllBall.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) 2000 Caltech, UCSB
10
//
11
// Module: EvtbTosllBall.cc
12
//
13
// Description: Routine to implement b->sll decays according to Ball et al.
14
//
15
// Modification history:
16
//
17
// Ryd January 5, 2000 Module created
18
//
19
//------------------------------------------------------------------------
20
//
21
#include "
EvtbTosllBall.hh
"
22
#include "
../EvtGenBase/EvtGenKine.hh
"
23
#include "
../EvtGenBase/EvtPDL.hh
"
24
#include "
../EvtGenBase/EvtParticle.hh
"
25
#include "
../EvtGenBase/EvtPatches.hh
"
26
#include "
../EvtGenBase/EvtReport.hh
"
27
#include "
EvtbTosllAmp.hh
"
28
#include "
EvtbTosllBallFF.hh
"
29
#include "
EvtbTosllScalarAmp.hh
"
30
#include "
EvtbTosllVectorAmp.hh
"
31
#include <stdlib.h>
32
33
#include <string>
34
using
std::endl;
35
36
EvtbTosllBall::~EvtbTosllBall
() {}
37
38
void
EvtbTosllBall::getName
( std::string& model_name ) { model_name =
"BTOSLLBALL"
; }
39
40
EvtDecayBase
*
EvtbTosllBall::clone
() {
return
new
EvtbTosllBall
; }
41
42
void
EvtbTosllBall::decay
(
EvtParticle
* p ) {
43
44
setWeight
( p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
(), _poleSize, 1, 2 ) );
45
46
_calcamp->CalcAmp( p,
_amp2
, _ballffmodel );
47
}
48
49
void
EvtbTosllBall::initProbMax
() {
50
51
EvtId
parnum, mesnum, l1num, l2num;
52
53
parnum =
getParentId
();
54
mesnum =
getDaug
( 0 );
55
l1num =
getDaug
( 1 );
56
l2num =
getDaug
( 2 );
57
58
// This routine sets the _poleSize.
59
double
mymaxprob =
60
_calcamp->CalcMaxProb( parnum, mesnum, l1num, l2num, _ballffmodel, _poleSize );
61
// cout << EvtPDL::getStdHep(mesnum) << "\t" << mymaxprob << endl;
62
setProbMax
( mymaxprob );
63
}
64
65
void
EvtbTosllBall::init
() {
66
67
checkNArg
( 0 );
68
checkNDaug
( 3 );
69
70
// We expect the parent to be a scalar
71
// and the daughters to be X lepton+ lepton-
72
73
checkSpinParent
(
EvtSpinType::SCALAR
);
74
75
EvtSpinType::spintype
mesontype =
EvtPDL::getSpinType
(
getDaug
( 0 ) );
76
77
if
( !( mesontype ==
EvtSpinType::VECTOR
|| mesontype ==
EvtSpinType::SCALAR
) )
78
{
79
report
(
ERROR
,
"EvtGen"
) <<
"EvtbTosllBall generator expected "
80
<<
" a SCALAR or VECTOR 1st daughter, found:"
81
<<
EvtPDL::name
(
getDaug
( 0 ) ).c_str() << endl;
82
report
(
ERROR
,
"EvtGen"
) <<
"Will terminate execution!"
<< endl;
83
::abort();
84
}
85
86
checkSpinDaughter
( 1,
EvtSpinType::DIRAC
);
87
checkSpinDaughter
( 2,
EvtSpinType::DIRAC
);
88
89
_ballffmodel =
new
EvtbTosllBallFF
();
90
if
( mesontype ==
EvtSpinType::SCALAR
)
91
{ _calcamp =
new
EvtbTosllScalarAmp
( -0.313, 4.344, -4.669 ); }
92
if
( mesontype ==
EvtSpinType::VECTOR
)
93
{ _calcamp =
new
EvtbTosllVectorAmp
( -0.313, 4.344, -4.669 ); }
94
}
EvtGenKine.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
EvtbTosllAmp.hh
EvtbTosllBallFF.hh
EvtbTosllBall.hh
EvtbTosllScalarAmp.hh
EvtbTosllVectorAmp.hh
EvtDecayAmp::setWeight
void setWeight(double weight)
Definition
EvtDecayAmp.hh:31
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::getNDaug
int getNDaug()
Definition
EvtDecayBase.hh:67
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
EvtId
Definition
EvtId.hh:27
EvtPDL::name
static std::string name(EvtId i)
Definition
EvtPDL.hh:70
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
EvtSpinType::spintype
spintype
Definition
EvtSpinType.hh:30
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:31
EvtSpinType::DIRAC
@ DIRAC
Definition
EvtSpinType.hh:34
EvtSpinType::VECTOR
@ VECTOR
Definition
EvtSpinType.hh:32
EvtbTosllBallFF
Definition
EvtbTosllBallFF.hh:28
EvtbTosllBall::init
void init()
Definition
EvtbTosllBall.cc:65
EvtbTosllBall::initProbMax
void initProbMax()
Definition
EvtbTosllBall.cc:49
EvtbTosllBall::~EvtbTosllBall
virtual ~EvtbTosllBall()
Definition
EvtbTosllBall.cc:36
EvtbTosllBall::EvtbTosllBall
EvtbTosllBall()
Definition
EvtbTosllBall.hh:33
EvtbTosllBall::decay
void decay(EvtParticle *p)
Definition
EvtbTosllBall.cc:42
EvtbTosllBall::getName
void getName(std::string &name)
Definition
EvtbTosllBall.cc:38
EvtbTosllBall::clone
EvtDecayBase * clone()
Definition
EvtbTosllBall.cc:40
EvtbTosllScalarAmp
Definition
EvtbTosllScalarAmp.hh:29
EvtbTosllVectorAmp
Definition
EvtbTosllVectorAmp.hh:30
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtbTosllBall.cc
Generated by
1.16.1