Belle II Software development
EvtHNLHQET3.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#include <EvtGenBase/EvtParticle.hh>
10#include <EvtGenBase/EvtPDL.hh>
11#include <string>
12
13#include <framework/logging/Logger.h>
14#include <generators/evtgen/EvtGenModelRegister.h>
15#include <generators/evtgen/models/EvtHNLHQET3.h>
16#include <generators/evtgen/models/EvtHQET3FF.h>
17#include <generators/evtgen/models/EvtHNLSemiLeptonicScalarAmp.h>
18#include <generators/evtgen/models/EvtHNLSemiLeptonicVectorAmp.h>
19
21
22using std::endl;
23
28
30{
31 delete hqetffmodel;
32 hqetffmodel = 0;
33 delete calcamp;
34 calcamp = 0;
35}
36
38{
39
40 return "HNLHQET3";
41
42}
43
44
45
46EvtDecayBase* EvtHNLHQET3::clone()
47{
48
49 return new EvtHNLHQET3;
50
51}
52
53
54void EvtHNLHQET3::decay(EvtParticle* p)
55{
56
57 p->initializePhaseSpace(getNDaug(), getDaugs());
58 calcamp->CalcAmp(p, _amp2, hqetffmodel);
59
60}
61
63{
64
65 EvtId parnum, mesnum, lnum, nunum;
66
67 parnum = getParentId();
68 mesnum = getDaug(0);
69 lnum = getDaug(1);
70 nunum = getDaug(2);
71
72 double mymaxprob = calcamp->CalcMaxProb(parnum, mesnum,
73 lnum, nunum, hqetffmodel);
74
75 // Leptons
76 static EvtId EM = EvtPDL::getId("e-");
77 static EvtId EP = EvtPDL::getId("e+");
78 static EvtId MUM = EvtPDL::getId("mu-");
79 static EvtId MUP = EvtPDL::getId("mu+");
80 static EvtId TAUM = EvtPDL::getId("tau-");
81 static EvtId TAUP = EvtPDL::getId("tau+");
82
83 if (lnum == EP || lnum == EM || lnum == MUP || lnum == MUM) {
84 setProbMax(mymaxprob);
85 return;
86 }
87 if (lnum == TAUP || lnum == TAUM) {
88 setProbMax(6500);
89 return;
90 }
91
92
93
94}
95
96
98{
99
100 checkNDaug(3);
101
102 //We expect the parent to be a scalar
103 //and the daughters to be X lepton neutrino
104 checkSpinParent(EvtSpinType::SCALAR);
105
106 checkSpinDaughter(1, EvtSpinType::DIRAC);
107 checkSpinDaughter(2, EvtSpinType::DIRAC);
108
109 EvtSpinType::spintype d1type = EvtPDL::getSpinType(getDaug(0));
110 if (d1type == EvtSpinType::SCALAR) {
111 if (getNArg() == 3) {
112 hqetffmodel = new EvtHQET3FF(getArg(0), getArg(1), getArg(2));
114 } else {
115 B2ERROR("HNLHQET3 model for scalar meson daughters needs 2 arguments. Sorry.");
116 ::abort();
117 }
118 } else if (d1type == EvtSpinType::VECTOR) {
119 if (getNArg() == 5) {
120 hqetffmodel = new EvtHQET3FF(getArg(0), getArg(1), getArg(2), getArg(3), getArg(4));
122 } else {
123 B2ERROR("HNLHQET3 model for vector meson daughtersneeds 4 arguments. Sorry.");
124 ::abort();
125 }
126 } else {
127 B2ERROR("HNLHQET3 model handles only scalar and vector meson daughters. Sorry.");
128 ::abort();
129 }
130
131
132}
133
The class provides the form factors for orbitally excited semileptonic decays.
Definition EvtHNLHQET3.h:19
EvtSemiLeptonicAmp * calcamp
Pointers needed to calculate amplitude.
Definition EvtHNLHQET3.h:50
void init()
Initializes module.
virtual ~EvtHNLHQET3()
virtual destructor
EvtHNLHQET3()
Default constructor.
EvtSemiLeptonicFF * hqetffmodel
Pointers needed for FFs.
Definition EvtHNLHQET3.h:47
EvtDecayBase * clone()
Clones module.
void initProbMax()
Sets maximal probab.
std::string getName()
Returns name of module.
void decay(EvtParticle *p)
Creates a decay.
Amplitude calculator for semileptonic HNL scalar decays.
Amplitude calculator for semileptonic HNL Vector decays.
The class provides the form factors for semileptonic D & D* decays with full mass dependence.
Definition EvtHQET3FF.h:17
#define B2_EVTGEN_REGISTER_MODEL(classname)
Class to register B2_EVTGEN_REGISTER_MODEL.