BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtHQET.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: EvtHQET.cc
12//
13// Description: Routine to implement semileptonic B->D*lnu decays according
14// to the model HQET
15//
16// Lange Nov9/01 adding Dlnu and possible (w-1)^2 term
17//
18//
19// Modification history:
20//
21// DJL April 20, 1998 Module created
22//
23//------------------------------------------------------------------------
24//
26#include <stdlib.h>
27#include <assert.h>
30#include "EvtGenBase/EvtPDL.hh"
36#include <string>
37using std::endl;
38
40 hqetffmodel(0)
41 ,calcamp(0)
42{}
43
45 delete hqetffmodel;
46 hqetffmodel=0;
47 delete calcamp;
48 calcamp=0;
49}
50
51void EvtHQET::getName(std::string& model_name){
52
53 model_name="HQET";
54
55}
56
57
58
60
61 return new EvtHQET;
62
63}
64
65
67
69 calcamp->CalcAmp(p,_amp2,hqetffmodel);
70
71}
72
74
75EvtId parnum,mesnum,lnum,nunum;
76
77parnum = getParentId();
78mesnum = getDaug(0);
79lnum = getDaug(1);
80nunum = getDaug(2);
81
82double mymaxprob = calcamp->CalcMaxProb(parnum,mesnum,
83 lnum,nunum,hqetffmodel);
84
85setProbMax(mymaxprob);
86
87}
88
89
91
92 checkNDaug(3);
93
94 //We expect the parent to be a scalar
95 //and the daughters to be X lepton neutrino
97
100
102 if ( d1type==EvtSpinType::SCALAR) {
103 checkNArg(1,2);
104 if ( getNArg()==1 ) hqetffmodel = new EvtHQETFF(getArg(0));
105 else hqetffmodel = new EvtHQETFF(getArg(0),getArg(1));
106 calcamp = new EvtSemiLeptonicScalarAmp;
107 }
108 else if ( d1type==EvtSpinType::VECTOR) {
109 checkNArg(3,4);
110 if ( getNArg()==3 ) hqetffmodel = new EvtHQETFF(getArg(0),getArg(1),getArg(2));
111 else hqetffmodel = new EvtHQETFF(getArg(0),getArg(1),getArg(2),getArg(3));
112 calcamp = new EvtSemiLeptonicVectorAmp;
113 }
114 else{
115 report(ERROR,"EvtGen") << "HQET model handles only scalar and vector meson daughters. Sorry."<<endl;
116 ::abort();
117 }
118
119
120}
121
ostream & report(Severity severity, const char *facility)
Definition: EvtReport.cc:36
@ ERROR
Definition: EvtReport.hh:49
EvtAmp _amp2
Definition: EvtDecayAmp.hh:66
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
double getArg(int j)
void setProbMax(double prbmx)
EvtId getParentId()
Definition: EvtDecayBase.hh:60
void checkNDaug(int d1, int d2=-1)
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
EvtId getDaug(int i)
Definition: EvtDecayBase.hh:66
void getName(std::string &name)
Definition: EvtHQET.cc:51
void decay(EvtParticle *p)
Definition: EvtHQET.cc:66
void init()
Definition: EvtHQET.cc:90
EvtDecayBase * clone()
Definition: EvtHQET.cc:59
EvtHQET()
Definition: EvtHQET.cc:39
void initProbMax()
Definition: EvtHQET.cc:73
virtual ~EvtHQET()
Definition: EvtHQET.cc:44
Definition: EvtId.hh:27
static EvtSpinType::spintype getSpinType(EvtId i)
Definition: EvtPDL.hh:61
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
virtual void CalcAmp(EvtParticle *parent, EvtAmp &amp, EvtSemiLeptonicFF *FormFactors)
double CalcMaxProb(EvtId parent, EvtId meson, EvtId lepton, EvtId nudaug, EvtSemiLeptonicFF *FormFactors)