00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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
00047
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
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
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