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

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