10#include "EvtGenBase/EvtParticle.hh"
11#include "EvtGenBase/EvtGenKine.hh"
12#include "EvtGenBase/EvtPDL.hh"
13#include "EvtGenBase/EvtReport.hh"
14#include "EvtGenBase/EvtSemiLeptonicScalarAmp.hh"
15#include "EvtGenBase/EvtSemiLeptonicVectorAmp.hh"
18#include "generators/evtgen/EvtGenModelRegister.h"
19#include "generators/evtgen/models/EvtBGL.h"
20#include "generators/evtgen/models/EvtBGLFF.h"
59 p->initializePhaseSpace(getNDaug(), getDaugs());
67 EvtId parnum, mesnum, lnum, nunum;
69 parnum = getParentId();
74 double mymaxprob =
calcamp->CalcMaxProb(parnum, mesnum,
78 static EvtId EM = EvtPDL::getId(
"e-");
79 static EvtId EP = EvtPDL::getId(
"e+");
80 static EvtId MUM = EvtPDL::getId(
"mu-");
81 static EvtId MUP = EvtPDL::getId(
"mu+");
82 static EvtId TAUM = EvtPDL::getId(
"tau-");
83 static EvtId TAUP = EvtPDL::getId(
"tau+");
85 if (lnum == EP || lnum == EM || lnum == MUP || lnum == MUM) {
86 setProbMax(mymaxprob);
89 if (lnum == TAUP || lnum == TAUM) {
106 checkSpinParent(EvtSpinType::SCALAR);
108 checkSpinDaughter(1, EvtSpinType::DIRAC);
109 checkSpinDaughter(2, EvtSpinType::NEUTRINO);
111 EvtSpinType::spintype d1type = EvtPDL::getSpinType(getDaug(0));
112 if (d1type == EvtSpinType::SCALAR) {
113 if (getNArg() == 8) {
114 bglffmodel =
new EvtBGLFF(getArg(0), getArg(1), getArg(2), getArg(3), getArg(4), getArg(5), getArg(6), getArg(7));
115 calcamp =
new EvtSemiLeptonicScalarAmp;
117 EvtGenReport(EVTGEN_ERROR,
"EvtGen") <<
"BGL (N=3) model for scalar meson daughters needs 8 arguments. Sorry." << endl;
121 }
else if (d1type == EvtSpinType::VECTOR) {
122 if (getNArg() == 6) {
123 bglffmodel =
new EvtBGLFF(getArg(0), getArg(1), getArg(2), getArg(3), getArg(4), getArg(5));
124 calcamp =
new EvtSemiLeptonicVectorAmp;
126 EvtGenReport(EVTGEN_ERROR,
"EvtGen") <<
"BGL model for vector meson daughters needs 6 arguments. Sorry." << endl;
130 EvtGenReport(EVTGEN_ERROR,
"EvtGen") <<
"BGL model handles only scalar and vector meson daughters. Sorry." << endl;
The class provides the form factors for semileptonic D and D* decays with full mass dependence.
The class provides the form factors for orbitally excited semileptonic decays.
EvtSemiLeptonicAmp * calcamp
Pointers needed to calculate amplitude.
void init()
Initializes module.
EvtBGL()
Default constructor.
EvtDecayBase * clone()
Clones module.
void initProbMax()
Sets maximal probab.
virtual ~EvtBGL()
virtual destructor
std::string getName()
Returns name of module.
EvtSemiLeptonicFF * bglffmodel
Pointers needed for FFs.
void decay(EvtParticle *p)
Creates a decay.
#define B2_EVTGEN_REGISTER_MODEL(classname)
Class to register B2_EVTGEN_REGISTER_MODEL.