/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtKKLambdaC.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/EvtKKLambdaC.hh"
00029 #include "EvtGenModels/EvtKKLambdaCFF.hh"
00030 #include "EvtGenBase/EvtSemiLeptonicBaryonAmp.hh"
00031 #include <string>
00032 
00033 EvtKKLambdaC::~EvtKKLambdaC() {}
00034 
00035 void EvtKKLambdaC::getName(std::string& model_name){
00036 
00037   model_name="KK_LAMBDAC_SL";     
00038 
00039 }
00040 
00041 
00042 EvtDecayBase* EvtKKLambdaC::clone(){
00043 
00044   return new EvtKKLambdaC;
00045 
00046 }
00047 
00048 void EvtKKLambdaC::decay( EvtParticle *p ){
00049 
00050   p->initializePhaseSpace(getNDaug(),getDaugs());
00051 
00052   _calcamp->CalcAmp(p,_amp2,_ffmodel);
00053   return;
00054 }
00055 
00056 void EvtKKLambdaC::initProbMax(){
00057 
00058 EvtId parnum,mesnum,lnum,nunum;
00059 
00060 parnum = getParentId();
00061 mesnum = getDaug(0);
00062 lnum = getDaug(1);
00063 nunum = getDaug(2);
00064 
00065 //double mymaxprob = _calcamp->CalcMaxProb(parnum,mesnum,
00066 //                           lnum,nunum,_ffmodel);
00067  double mymaxprob=100.; 
00068 setProbMax(mymaxprob);
00069 
00070 }
00071 
00072 
00073 void EvtKKLambdaC::init(){
00074   
00075   checkNDaug(3);
00076 
00077   //We expect the parent to be a dirac
00078   //and the daughters to be dirac lepton neutrino
00079 
00080   checkSpinParent(EvtSpinType::DIRAC);
00081   checkSpinDaughter(0,EvtSpinType::DIRAC);
00082   checkSpinDaughter(1,EvtSpinType::DIRAC);
00083   checkSpinDaughter(2,EvtSpinType::NEUTRINO);
00084 
00085   _ffmodel = new EvtKKLambdaCFF(getNArg(),getArgs());
00086 
00087   _calcamp = new EvtSemiLeptonicBaryonAmp; 
00088   
00089 }
00090 

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