/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtSVSCP.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: EvtSVSCP.cc
00012 //
00013 // Description: Routine to decay scalar -> vectors scalar
00014 //              and has CP violation.
00015 //
00016 // Modification history:
00017 //
00018 //    RYD       Febuary 10, 1997       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/EvtCPUtil.hh"
00027 #include "EvtGenBase/EvtVector4C.hh"
00028 #include "EvtGenBase/EvtPDL.hh"
00029 #include "EvtGenBase/EvtReport.hh"
00030 #include "EvtGenModels/EvtSVSCP.hh"
00031 #include <string>
00032 #include "EvtGenBase/EvtConst.hh"
00033 
00034 EvtSVSCP::~EvtSVSCP() {}
00035 
00036 void EvtSVSCP::getName(std::string& model_name){
00037 
00038   model_name="SVS_CP";     
00039 
00040 }
00041 
00042 
00043 EvtDecayBase* EvtSVSCP::clone(){
00044 
00045   return new EvtSVSCP;
00046 
00047 }
00048 
00049 void EvtSVSCP::init(){
00050 
00051   // check that there are 7 arguments
00052   checkNArg(7);
00053   checkNDaug(2);
00054 
00055   checkSpinParent(EvtSpinType::SCALAR);
00056 
00057   checkSpinDaughter(0,EvtSpinType::VECTOR);
00058   checkSpinDaughter(1,EvtSpinType::SCALAR);
00059 
00060 
00061 }
00062 
00063 
00064 void EvtSVSCP::initProbMax(){
00065 
00066   //This is probably not quite right, but it should do as a start...
00067   //Anders
00068 
00069   setProbMax(2*(getArg(3)*getArg(3)+getArg(5)*getArg(5)));
00070 
00071 }
00072 
00073 
00074 void EvtSVSCP::decay( EvtParticle *p ){
00075 
00076   //added by Lange Jan4,2000
00077   static EvtId B0=EvtPDL::getId("B0");
00078   static EvtId B0B=EvtPDL::getId("anti-B0");
00079 
00080   EvtParticle *v;
00081   p->initializePhaseSpace(getNDaug(),getDaugs());
00082   v = p->getDaug(0);
00083   EvtVector4R momv = v->getP4();
00084   EvtVector4R moms = p->getDaug(1)->getP4();
00085   double massv = v->mass();
00086   double t;
00087   EvtId other_b;
00088 
00089   EvtCPUtil::OtherB(p,t,other_b);
00090 
00091   EvtComplex amp;
00092 
00093   EvtComplex A,Abar;
00094 
00095   A=EvtComplex(getArg(3)*cos(getArg(4)),getArg(3)*sin(getArg(4)));
00096   Abar=EvtComplex(getArg(5)*cos(getArg(6)),getArg(5)*sin(getArg(6)));
00097    
00098   if (other_b==B0B){
00099     amp=A*cos(getArg(1)*t/(2*EvtConst::c))+
00100       EvtComplex(cos(-2.0*getArg(0)),sin(-2.0*getArg(0)))*
00101       getArg(2)*EvtComplex(0.0,1.0)*Abar*sin(getArg(1)*t/(2*EvtConst::c));
00102   }
00103   if (other_b==B0){
00104     amp=A*EvtComplex(cos(2.0*getArg(0)),sin(2.0*getArg(0)))*
00105       EvtComplex(0.0,1.0)*sin(getArg(1)*t/(2*EvtConst::c))+       
00106       getArg(2)*Abar*cos(getArg(1)*t/(2*EvtConst::c));
00107   }
00108   
00109   EvtVector4R p4_parent;
00110   
00111   p4_parent=momv+moms;
00112   
00113   double norm=massv/(momv.d3mag()*p4_parent.mass());
00114   
00115   vertex(0,amp*norm*p4_parent*(v->epsParent(0)));
00116   vertex(1,amp*norm*p4_parent*(v->epsParent(1)));
00117   vertex(2,amp*norm*p4_parent*(v->epsParent(2)));
00118   
00119   return ;
00120 }
00121 

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