/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtSll.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: EvtSll.cc
00012 //
00013 // Description: The decay of a scalar meson to two leptons,
00014 //              or generally, two spin 1/2 particles.
00015 //              E.g., B0 -> tau+ tau-
00016 //
00017 // Modification history:
00018 //
00019 //    SHY       April 23, 1997       Module created
00020 //
00021 //------------------------------------------------------------------------
00022 //
00023 #include "EvtGenBase/EvtPatches.hh"
00024 #include <stdlib.h>
00025 #include <iostream>
00026 #include <string>
00027 #include "EvtGenBase/EvtParticle.hh"
00028 #include "EvtGenBase/EvtPDL.hh"
00029 #include "EvtGenBase/EvtGenKine.hh"
00030 #include "EvtGenModels/EvtSll.hh"
00031 #include "EvtGenBase/EvtDiracSpinor.hh"
00032 #include "EvtGenBase/EvtReport.hh"
00033 #include "EvtGenBase/EvtVector4C.hh"
00034 
00035 EvtSll::~EvtSll() {}
00036 
00037 void EvtSll::getName(std::string& model_name){
00038 
00039   model_name="SLL";     
00040 
00041 }
00042 
00043 
00044 EvtDecayBase* EvtSll::clone(){
00045 
00046   return new EvtSll;
00047 
00048 }
00049 
00050 void EvtSll::init(){
00051 
00052   // check that there are 0 arguments
00053   checkNArg(0);
00054   checkNDaug(2);
00055 
00056   checkSpinParent(EvtSpinType::SCALAR);
00057 
00058   checkSpinDaughter(0,EvtSpinType::DIRAC);
00059   checkSpinDaughter(1,EvtSpinType::DIRAC);
00060 
00061 }
00062 
00063 void EvtSll::decay(EvtParticle *p){
00064 
00065 
00066   p->initializePhaseSpace(getNDaug(),getDaugs());
00067 
00068   EvtParticle *l1, *l2;
00069   l1 = p->getDaug(0);
00070   l2 = p->getDaug(1);
00071   EvtVector4R p4_p;
00072   p4_p.set(p->mass(),0.0,0.0,0.0);
00073 
00074   EvtVector4C l11, l12, l21, l22;
00075   
00076   l11=EvtLeptonVACurrent(l1->spParent(0),l2->spParent(0));
00077   l12=EvtLeptonVACurrent(l1->spParent(0),l2->spParent(1));
00078   l21=EvtLeptonVACurrent(l1->spParent(1),l2->spParent(0));
00079   l22=EvtLeptonVACurrent(l1->spParent(1),l2->spParent(1));
00080 
00081   vertex(0,0,p4_p*l11);
00082   vertex(0,1,p4_p*l12);
00083   vertex(1,0,p4_p*l21);
00084   vertex(1,1,p4_p*l22);
00085   
00086   return;
00087 
00088 }
00089 

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