BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtISGW.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: EvtISGW.cc
12
//
13
// Description: Routine to implement semileptonic decays according
14
// to the model ISGW
15
//
16
// Modification history:
17
//
18
// DJL/RYD September 25, 1996 Module created
19
//
20
//------------------------------------------------------------------------
21
//
22
#include "
EvtISGW.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 "
EvtISGWFF.hh
"
32
#include <stdlib.h>
33
#include <string>
34
35
EvtISGW::~EvtISGW
() {}
36
37
void
EvtISGW::getName
( std::string& model_name ) { model_name =
"ISGW"
; }
38
39
EvtDecayBase
*
EvtISGW::clone
() {
return
new
EvtISGW
; }
40
41
void
EvtISGW::decay
(
EvtParticle
* p ) {
42
43
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
44
45
calcamp->CalcAmp( p,
_amp2
, isgwffmodel );
46
return
;
47
}
48
49
void
EvtISGW::init
() {
50
51
checkNArg
( 0 );
52
checkNDaug
( 3 );
53
54
// We expect the parent to be a scalar
55
// and the daughters to be X lepton neutrino
56
57
EvtSpinType::spintype
mesontype =
EvtPDL::getSpinType
(
getDaug
( 0 ) );
58
59
checkSpinParent
(
EvtSpinType::SCALAR
);
60
checkSpinDaughter
( 1,
EvtSpinType::DIRAC
);
61
checkSpinDaughter
( 2,
EvtSpinType::NEUTRINO
);
62
63
isgwffmodel =
new
EvtISGWFF
;
64
65
if
( mesontype ==
EvtSpinType::SCALAR
) { calcamp =
new
EvtSemiLeptonicScalarAmp
; }
66
if
( mesontype ==
EvtSpinType::VECTOR
) { calcamp =
new
EvtSemiLeptonicVectorAmp
; }
67
if
( mesontype ==
EvtSpinType::TENSOR
) { calcamp =
new
EvtSemiLeptonicTensorAmp
; }
68
}
EvtGenKine.hh
EvtISGWFF.hh
EvtISGW.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtReport.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::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
EvtISGWFF
Definition
EvtISGWFF.hh:28
EvtISGW::decay
void decay(EvtParticle *p)
Definition
EvtISGW.cc:41
EvtISGW::getName
void getName(std::string &name)
Definition
EvtISGW.cc:37
EvtISGW::init
void init()
Definition
EvtISGW.cc:49
EvtISGW::EvtISGW
EvtISGW()
Definition
EvtISGW.hh:32
EvtISGW::~EvtISGW
virtual ~EvtISGW()
Definition
EvtISGW.cc:35
EvtISGW::clone
EvtDecayBase * clone()
Definition
EvtISGW.cc:39
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
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
EvtISGW.cc
Generated by
1.16.1