9#include <generators/evtgen/EvtGenModelRegister.h>
11#include "EvtGenBase/EvtPatches.hh"
16#include "EvtGenBase/EvtParticle.hh"
17#include "EvtGenBase/EvtPDL.hh"
18#include "EvtGenBase/EvtGenKine.hh"
19#include "EvtGenBase/EvtDiracSpinor.hh"
20#include "EvtGenBase/EvtTensor4C.hh"
21#include "EvtGenBase/EvtReport.hh"
22#include "EvtGenBase/EvtVector4C.hh"
25#include "generators/evtgen/models/EvtKnunu.h"
52 static EvtId NUE = EvtPDL::getId(
"nu_e");
53 static EvtId NUM = EvtPDL::getId(
"nu_mu");
54 static EvtId NUT = EvtPDL::getId(
"nu_tau");
55 static EvtId NUEB = EvtPDL::getId(
"anti-nu_e");
56 static EvtId NUMB = EvtPDL::getId(
"anti-nu_mu");
57 static EvtId NUTB = EvtPDL::getId(
"anti-nu_tau");
59 p->initializePhaseSpace(getNDaug(), getDaugs());
61 double m_b = p->mass();
63 EvtParticle* meson, * neutrino1, * neutrino2;
64 meson = p->getDaug(0);
65 neutrino1 = p->getDaug(1);
66 neutrino2 = p->getDaug(2);
67 EvtVector4R momnu1 = neutrino1->getP4();
68 EvtVector4R momnu2 = neutrino2->getP4();
69 EvtVector4R momk = meson->getP4();
71 EvtVector4R q = momnu1 + momnu2;
72 double q2 = q.mass2();
74 EvtVector4R p4b; p4b.set(m_b, 0., 0., 0.);
76 double m_k = meson->mass();
77 double mkhat = m_k / (m_b);
78 double shat = q2 / (m_b * m_b);
80 EvtVector4R phat = (p4b + momk) / m_b;
81 EvtVector4R qhat = q / m_b;
85 double alpha0 = 0.432;
86 double alpha1 = -0.664;
88 double mp = m_b + 0.046;
89 double tp = (m_b + m_k) * (m_b + m_k);
90 double tm = (m_b - m_k) * (m_b - m_k);
91 double t0 = tp * (1 -
sqrt(1 - tm / tp));
92 double z = (
sqrt(tp - q2) -
sqrt(tp - t0)) / (
sqrt(tp - q2) +
sqrt(tp - t0));
93 double fp = (1 / (1 - q2 / (mp * mp))) * (alpha0 + alpha1 * z + alpha2 * z * z + (-alpha1 + 2 * alpha2) * z * z * z / 3);
94 double fm = -fp * (1 - mkhat * mkhat) / shat;
107 T1 = aprime * phat + bprime * qhat;
111 if (getDaug(1) == NUE || getDaug(1) == NUM || getDaug(1) == NUT) {
112 l = EvtLeptonVACurrent(neutrino1->spParentNeutrino(),
113 neutrino2->spParentNeutrino());
115 if (getDaug(1) == NUEB || getDaug(1) == NUMB || getDaug(1) == NUTB) {
116 l = EvtLeptonVACurrent(neutrino2->spParentNeutrino(),
117 neutrino1->spParentNeutrino());
133 checkSpinParent(EvtSpinType::SCALAR);
135 checkSpinDaughter(0, EvtSpinType::SCALAR);
136 checkSpinDaughter(1, EvtSpinType::NEUTRINO);
137 checkSpinDaughter(2, EvtSpinType::NEUTRINO);
The evtgen model to produce B-> K nu nubar decay sample.
void init()
The function for an initialization.
virtual ~EvtKnunu()
Destructor.
EvtDecayBase * clone()
The function which makes a copy of the model.
void initProbMax()
The function to sets a maximum probability.
std::string getName()
The function which returns the name of the model.
#define B2_EVTGEN_REGISTER_MODEL(classname)
Class to register B2_EVTGEN_REGISTER_MODEL.
double sqrt(double a)
sqrt for double
void decay(EvtParticle *p)
The function to calculate a quark decay amplitude.
Abstract base class for different kinds of events.