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: EvtSLBKPole.cc
13 // Description: Routine to implement semileptonic decays according
14 // to light cone sum rules
16 // Modification history:
18 // liheng October 20, 2005 Module created
20 //------------------------------------------------------------------------
23 #include "EvtGenBase/EvtParticle.hh"
24 #include "EvtGenBase/EvtGenKine.hh"
25 #include "EvtGenBase/EvtPDL.hh"
26 #include "EvtGenBase/EvtReport.hh"
27 #include "EvtGenModels/EvtSLBKPole.hh"//modified
28 #include "EvtGenModels/EvtSLBKPoleFF.hh"//modified
29 #include "EvtGenBase/EvtSemiLeptonicScalarAmp.hh"
30 #include "EvtGenBase/EvtSemiLeptonicVectorAmp.hh"
31 #include "EvtGenBase/EvtSemiLeptonicTensorAmp.hh"
34 EvtSLBKPole::~EvtSLBKPole() {}
36 std::string EvtSLBKPole::getName(){
38 return "SLBKPOLE";//modified
43 EvtDecayBase* EvtSLBKPole::clone(){//modified
45 return new EvtSLBKPole;
49 void EvtSLBKPole::decay( EvtParticle *p ){//modified
51 p->initializePhaseSpace(getNDaug(),getDaugs());
53 calcamp->CalcAmp(p,_amp2,SLBKPoleffmodel);//modified
57 void EvtSLBKPole::initProbMax(){
59 EvtId parnum,mesnum,lnum,nunum;
61 parnum = getParentId();
66 double mymaxprob = calcamp->CalcMaxProb(parnum,mesnum,
67 lnum,nunum,SLBKPoleffmodel);//modified
69 setProbMax(mymaxprob);
74 void EvtSLBKPole::init(){//modified
78 //We expect the parent to be a scalar
79 //and the daughters to be X lepton neutrino
81 checkSpinParent(EvtSpinType::SCALAR);
82 checkSpinDaughter(1,EvtSpinType::DIRAC);
83 checkSpinDaughter(2,EvtSpinType::NEUTRINO);
85 EvtSpinType::spintype mesontype=EvtPDL::getSpinType(getDaug(0));
87 SLBKPoleffmodel = new EvtSLBKPoleFF(getNArg(),getArgs());//modified
89 if ( mesontype==EvtSpinType::SCALAR ) {
90 calcamp = new EvtSemiLeptonicScalarAmp;
92 if ( mesontype==EvtSpinType::VECTOR ) {
93 calcamp = new EvtSemiLeptonicVectorAmp;
95 if ( mesontype==EvtSpinType::TENSOR ) {
96 calcamp = new EvtSemiLeptonicTensorAmp;