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
11 // Module: EvtHQET2.cc
13 // Description: Routine to implement semileptonic B->D*lnu & B->Dlnu
14 // decays according to the model HQET
16 // Lange Nov9/01 adding Dlnu and possible (w-1)^2 term
19 // Modification history:
21 // Marco Bomben March 10, 2003 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/EvtHQET2.hh"
33 #include "EvtGenModels/EvtHQET2FF.hh"
34 #include "EvtGenBase/EvtSemiLeptonicVectorAmp.hh"
35 #include "EvtGenBase/EvtSemiLeptonicScalarAmp.hh"
44 EvtHQET2::~EvtHQET2() {
51 std::string EvtHQET2::getName(){
59 EvtDecayBase* EvtHQET2::clone(){
66 void EvtHQET2::decay( EvtParticle *p ){
68 p->initializePhaseSpace(getNDaug(),getDaugs());
69 calcamp->CalcAmp(p,_amp2,hqetffmodel);
73 void EvtHQET2::initProbMax(){
75 EvtId parnum,mesnum,lnum,nunum;
77 parnum = getParentId();
82 double mymaxprob = calcamp->CalcMaxProb(parnum,mesnum,
83 lnum,nunum,hqetffmodel);
85 setProbMax(mymaxprob);
90 void EvtHQET2::init(){
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) {
103 if ( getNArg()==2 ) {hqetffmodel = new EvtHQET2FF(getArg(0),getArg(1));
104 calcamp = new EvtSemiLeptonicScalarAmp;}
106 report(ERROR,"EvtGen") << "HQET2 model for scalar meson daughters needs 2 arguments. Sorry."<<endl;
110 else if ( d1type==EvtSpinType::VECTOR) {
111 if ( getNArg()==4 ){ hqetffmodel = new EvtHQET2FF(getArg(0),getArg(1),getArg(2),getArg(3));
112 calcamp = new EvtSemiLeptonicVectorAmp; }
114 report(ERROR,"EvtGen") << "HQET2 model for vector meson daughtersneeds 4 arguments. Sorry."<<endl;
119 report(ERROR,"EvtGen") << "HQET2 model handles only scalar and vector meson daughters. Sorry."<<endl;