1 //--------------------------------------------------------------------------
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.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
13 // Description: Routine to implement semileptonic B->D*lnu decays according
16 // Lange Nov9/01 adding Dlnu and possible (w-1)^2 term
19 // Modification history:
21 // DJL April 20, 1998 Module created
23 //------------------------------------------------------------------------
25 #include "EvtGenBase/EvtPatches.hh"
28 #include "EvtGenBase/EvtParticle.hh"
29 #include "EvtGenBase/EvtGenKine.hh"
30 #include "EvtGenBase/EvtPDL.hh"
31 #include "EvtGenBase/EvtReport.hh"
32 #include "EvtGenModels/EvtHQET.hh"
33 #include "EvtGenModels/EvtHQETFF.hh"
34 #include "EvtGenBase/EvtSemiLeptonicVectorAmp.hh"
35 #include "EvtGenBase/EvtSemiLeptonicScalarAmp.hh"
51 std::string EvtHQET::getName(){
59 EvtDecayBase* EvtHQET::clone(){
66 void EvtHQET::decay( EvtParticle *p ){
68 p->initializePhaseSpace(getNDaug(),getDaugs());
69 calcamp->CalcAmp(p,_amp2,hqetffmodel);
73 void EvtHQET::initProbMax(){
75 EvtId parnum,mesnum,lnum,nunum;
77 parnum = getParentId();
82 double mymaxprob = calcamp->CalcMaxProb(parnum,mesnum,
83 lnum,nunum,hqetffmodel);
85 setProbMax(mymaxprob);
94 //We expect the parent to be a scalar
95 //and the daughters to be X lepton neutrino
96 checkSpinParent(EvtSpinType::SCALAR);
98 checkSpinDaughter(1,EvtSpinType::DIRAC);
99 checkSpinDaughter(2,EvtSpinType::NEUTRINO);
101 EvtSpinType::spintype d1type = EvtPDL::getSpinType(getDaug(0));
102 if ( d1type==EvtSpinType::SCALAR) {
104 if ( getNArg()==1 ) hqetffmodel = new EvtHQETFF(getArg(0));
105 else hqetffmodel = new EvtHQETFF(getArg(0),getArg(1));
106 calcamp = new EvtSemiLeptonicScalarAmp;
108 else if ( d1type==EvtSpinType::VECTOR) {
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;
115 report(ERROR,"EvtGen") << "HQET model handles only scalar and vector meson daughters. Sorry."<<endl;