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

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