/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtSLBKPole.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: EvtSLBKPole.cc
00012 //
00013 // Description: Routine to implement semileptonic decays according
00014 //              to light cone sum rules
00015 //
00016 // Modification history:
00017 //
00018 //    liheng       October 20, 2005       Module created
00019 //
00020 //------------------------------------------------------------------------
00021 // 
00022 #include <stdlib.h>
00023 #include "EvtGenBase/EvtParticle.hh"
00024 #include "EvtGenBase/EvtGenKine.hh"
00025 #include "EvtGenBase/EvtPDL.hh"
00026 #include "EvtGenBase/EvtReport.hh"
00027 #include "EvtGenModels/EvtSLBKPole.hh"//modified
00028 #include "EvtGenModels/EvtSLBKPoleFF.hh"//modified
00029 #include "EvtGenBase/EvtSemiLeptonicScalarAmp.hh"
00030 #include "EvtGenBase/EvtSemiLeptonicVectorAmp.hh"
00031 #include "EvtGenBase/EvtSemiLeptonicTensorAmp.hh"
00032 #include <string>
00033 
00034 EvtSLBKPole::~EvtSLBKPole() {}
00035 
00036 void EvtSLBKPole::getName(std::string& model_name ){
00037 
00038     model_name= "SLBKPOLE";//modified
00039 
00040 }
00041 
00042 
00043 EvtDecayBase* EvtSLBKPole::clone(){//modified
00044 
00045   return new EvtSLBKPole;
00046 
00047 }
00048 
00049 void EvtSLBKPole::decay( EvtParticle *p ){//modified
00050 
00051   p->initializePhaseSpace(getNDaug(),getDaugs());
00052 
00053   calcamp->CalcAmp(p,_amp2,SLBKPoleffmodel);//modified
00054   return;
00055 }
00056 
00057 void EvtSLBKPole::initProbMax(){
00058 
00059 EvtId parnum,mesnum,lnum,nunum;
00060 
00061 parnum = getParentId();
00062 mesnum = getDaug(0);
00063 lnum = getDaug(1);
00064 nunum = getDaug(2);
00065 
00066 double mymaxprob = calcamp->CalcMaxProb(parnum,mesnum,
00067                         lnum,nunum,SLBKPoleffmodel);//modified
00068 
00069 setProbMax(mymaxprob);
00070 
00071 }
00072 
00073 
00074 void EvtSLBKPole::init(){//modified
00075   
00076   checkNDaug(3);
00077 
00078   //We expect the parent to be a scalar 
00079   //and the daughters to be X lepton neutrino
00080 
00081   checkSpinParent(EvtSpinType::SCALAR);
00082   checkSpinDaughter(1,EvtSpinType::DIRAC);
00083   checkSpinDaughter(2,EvtSpinType::NEUTRINO);
00084 
00085   EvtSpinType::spintype mesontype=EvtPDL::getSpinType(getDaug(0));
00086 
00087   SLBKPoleffmodel = new EvtSLBKPoleFF(getNArg(),getArgs());//modified
00088   
00089   if ( mesontype==EvtSpinType::SCALAR ) { 
00090     calcamp = new EvtSemiLeptonicScalarAmp; 
00091   }
00092   if ( mesontype==EvtSpinType::VECTOR ) { 
00093     calcamp = new EvtSemiLeptonicVectorAmp; 
00094   }
00095   if ( mesontype==EvtSpinType::TENSOR ) { 
00096     calcamp = new EvtSemiLeptonicTensorAmp; 
00097   }
00098   
00099 }
00100 

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