/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtSLN.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: EvtSLN.cc
00012 //
00013 // Description: B ==> tau + nu
00014 //
00015 // Modification history:
00016 //
00017 //    RYD/SHY   April 23, 1997           Module created
00018 //
00019 //------------------------------------------------------------------------
00020 //
00021 #include "EvtGenBase/EvtPatches.hh"
00022 #include <stdlib.h>
00023 #include <iostream>
00024 #include <string>
00025 #include "EvtGenBase/EvtParticle.hh"
00026 #include "EvtGenBase/EvtPDL.hh"
00027 #include "EvtGenBase/EvtGenKine.hh"
00028 #include "EvtGenModels/EvtSLN.hh"
00029 #include "EvtGenBase/EvtDiracSpinor.hh"
00030 #include "EvtGenBase/EvtReport.hh"
00031 #include "EvtGenBase/EvtVector4C.hh"
00032 
00033 EvtSLN::~EvtSLN() {}
00034 
00035 void EvtSLN::getName(std::string& model_name){
00036 
00037   model_name="SLN";     
00038 
00039 }
00040 
00041 EvtDecayBase* EvtSLN::clone(){
00042 
00043   return new EvtSLN;
00044 
00045 }
00046 
00047 
00048 void EvtSLN::init(){
00049 
00050   // check that there are 0 arguments
00051   checkNArg(0);
00052   checkNDaug(2);
00053     
00054   checkSpinParent(EvtSpinType::SCALAR);
00055 
00056   checkSpinDaughter(0,EvtSpinType::DIRAC);
00057   checkSpinDaughter(1,EvtSpinType::NEUTRINO);
00058 
00059 }
00060 
00061 
00062 void EvtSLN::initProbMax(){
00063 
00064   double M=EvtPDL::getMeanMass(getParentId());
00065   double m=EvtPDL::getMeanMass(getDaug(0));
00066 
00067   double probMax=8.0*(M*M-m*m)*m*m;
00068 
00069   setProbMax(probMax);
00070 
00071 }
00072 
00073 
00074 void EvtSLN::decay(EvtParticle *p){
00075 
00076   static EvtId EM=EvtPDL::getId("e-");
00077   static EvtId MUM=EvtPDL::getId("mu-");
00078   static EvtId TAUM=EvtPDL::getId("tau-");
00079 
00080   p->initializePhaseSpace(getNDaug(),getDaugs());
00081 
00082   EvtParticle *l, *nul;
00083   l= p->getDaug(0);
00084   nul= p->getDaug(1);
00085 
00086   EvtVector4R p4_p;
00087   p4_p.set(p->mass(),0.0,0.0,0.0);
00088 
00089   EvtVector4C l1, l2;
00090   
00091   if (getDaug(0)==TAUM || getDaug(0)==MUM || getDaug(0)==EM) {
00092     l1=EvtLeptonVACurrent(l->spParent(0),nul->spParentNeutrino());
00093     l2=EvtLeptonVACurrent(l->spParent(1),nul->spParentNeutrino());
00094   }
00095   else{
00096     l1=EvtLeptonVACurrent(nul->spParentNeutrino(),l->spParent(0));
00097     l2=EvtLeptonVACurrent(nul->spParentNeutrino(),l->spParent(1));
00098   }
00099 
00100   vertex(0,p4_p*l1);
00101   vertex(1,p4_p*l2);
00102   
00103   return;
00104 
00105 }
00106 
00107 

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