/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtHQET.cc

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 //
00003 // Environment:
00004 //      This software is part of the EvtGen package developed jointly
00005 //      for the BaBar and CLEO collaborations.  If you use all or part
00006 //      of it, please give an appropriate acknowledgement.
00007 //
00008 // Copyright Information: See EvtGen/COPYRIGHT
00009 //      Copyright (C) 1998      Caltech, UCSB
00010 //
00011 // Module: EvtHQET.cc
00012 //
00013 // Description: Routine to implement semileptonic B->D*lnu decays according
00014 //              to the model HQET
00015 //
00016 //   Lange Nov9/01 adding Dlnu and possible (w-1)^2 term
00017 //
00018 //
00019 // Modification history:
00020 //
00021 //    DJL     April 20, 1998        Module created
00022 //
00023 //------------------------------------------------------------------------
00024 // 
00025 #include "EvtGenBase/EvtPatches.hh"
00026 #include <stdlib.h>
00027 #include <assert.h>
00028 #include "EvtGenBase/EvtParticle.hh"
00029 #include "EvtGenBase/EvtGenKine.hh"
00030 #include "EvtGenBase/EvtPDL.hh"
00031 #include "EvtGenBase/EvtReport.hh"
00032 #include "EvtGenModels/EvtHQET.hh"
00033 #include "EvtGenModels/EvtHQETFF.hh"
00034 #include "EvtGenBase/EvtSemiLeptonicVectorAmp.hh"
00035 #include "EvtGenBase/EvtSemiLeptonicScalarAmp.hh"
00036 #include <string>
00037 using std::endl;
00038 
00039 EvtHQET::EvtHQET():
00040   hqetffmodel(0)
00041   ,calcamp(0)
00042 {}
00043 
00044 EvtHQET::~EvtHQET() {
00045   delete hqetffmodel;
00046   hqetffmodel=0;
00047   delete calcamp;
00048   calcamp=0;
00049 }
00050 
00051 void EvtHQET::getName(std::string& model_name){
00052 
00053   model_name="HQET";     
00054 
00055 }
00056 
00057 
00058 
00059 EvtDecayBase* EvtHQET::clone(){
00060 
00061   return new EvtHQET;
00062 
00063 }
00064 
00065 
00066 void EvtHQET::decay( EvtParticle *p ){
00067 
00068   p->initializePhaseSpace(getNDaug(),getDaugs());
00069   calcamp->CalcAmp(p,_amp2,hqetffmodel);
00070 
00071 }
00072 
00073 void EvtHQET::initProbMax(){
00074 
00075 EvtId parnum,mesnum,lnum,nunum;
00076 
00077 parnum = getParentId();
00078 mesnum = getDaug(0);
00079 lnum = getDaug(1);
00080 nunum = getDaug(2);
00081 
00082 double mymaxprob = calcamp->CalcMaxProb(parnum,mesnum,
00083                            lnum,nunum,hqetffmodel);
00084 
00085 setProbMax(mymaxprob);
00086 
00087 }
00088 
00089 
00090 void EvtHQET::init(){
00091 
00092   checkNDaug(3);
00093 
00094   //We expect the parent to be a scalar 
00095   //and the daughters to be X lepton neutrino
00096   checkSpinParent(EvtSpinType::SCALAR);
00097 
00098   checkSpinDaughter(1,EvtSpinType::DIRAC);
00099   checkSpinDaughter(2,EvtSpinType::NEUTRINO);
00100 
00101   EvtSpinType::spintype d1type = EvtPDL::getSpinType(getDaug(0));
00102   if ( d1type==EvtSpinType::SCALAR) {
00103     checkNArg(1,2);
00104     if ( getNArg()==1 ) hqetffmodel = new EvtHQETFF(getArg(0));
00105     else hqetffmodel = new EvtHQETFF(getArg(0),getArg(1));
00106     calcamp = new EvtSemiLeptonicScalarAmp; 
00107   }
00108   else if ( d1type==EvtSpinType::VECTOR) {
00109     checkNArg(3,4);
00110     if ( getNArg()==3 ) hqetffmodel = new EvtHQETFF(getArg(0),getArg(1),getArg(2));
00111     else hqetffmodel = new EvtHQETFF(getArg(0),getArg(1),getArg(2),getArg(3));
00112     calcamp = new EvtSemiLeptonicVectorAmp; 
00113   }
00114   else{
00115     report(ERROR,"EvtGen") << "HQET model handles only scalar and vector meson daughters. Sorry."<<endl;
00116     ::abort();
00117   }
00118 
00119   
00120 }
00121 

Generated on Tue Nov 29 23:12:18 2016 for BOSS_7.0.2 by  doxygen 1.4.7