00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "EvtGenBase/EvtPatches.hh"
00022 #include <stdlib.h>
00023 #include "EvtGenBase/EvtParticle.hh"
00024 #include "EvtGenBase/EvtGenKine.hh"
00025 #include "EvtGenBase/EvtPDL.hh"
00026 #include "EvtGenBase/EvtVector4C.hh"
00027 #include "EvtGenBase/EvtVector4R.hh"
00028 #include "EvtGenBase/EvtTensor4C.hh"
00029 #include "EvtGenBase/EvtReport.hh"
00030 #include "EvtGenBase/EvtdFunction.hh"
00031 #include "EvtGenBase/EvtHelSys.hh"
00032 #include "EvtJ2BB1.hh"
00033 #include <string>
00034 using std::endl;
00035
00036 EvtJ2BB1::~EvtJ2BB1() {}
00037
00038 void EvtJ2BB1::getName(std::string& model_name){
00039
00040 model_name="J2BB1";
00041
00042 }
00043
00044
00045 EvtDecayBase* EvtJ2BB1::clone(){
00046
00047 return new EvtJ2BB1;
00048
00049 }
00050
00051
00052
00053
00054
00055
00056
00057
00058 void EvtJ2BB1::init(){
00059 checkNDaug(2);
00060 checkSpinParent(EvtSpinType::VECTOR);
00061 checkSpinDaughter(0,EvtSpinType::DIRAC);
00062 checkSpinDaughter(1,EvtSpinType::DIRAC);
00063 }
00064
00065 void EvtJ2BB1::decay( EvtParticle *p){
00066
00067 p->initializePhaseSpace(getNDaug(),getDaugs());
00068
00069 EvtParticle *v,*s1;
00070 EvtVector4R pv,ps,ppr;
00071
00072 v =p->getDaug(0);
00073 s1=p->getDaug(1);
00074 pv=v->getP4();
00075 ps=s1->getP4();
00076 ppr=p->getP4();
00077
00078
00079 EvtHelSys angles(ppr,pv);
00080 double theta=angles.getHelAng(1);
00081 double phi =angles.getHelAng(2);
00082 double gamma=0;
00083 double costheta=cos(theta);
00084
00085
00086 if(getNArg()>0){ alpha=getArg(0);}
00087 else{double mass_b1 = EvtPDL::getMass(getDaug(0));
00088 double mass_b2 = EvtPDL::getMass(getDaug(1));
00089 double mass_M = EvtPDL::getMass(getParentId());
00090 double c1=pow(pv.d3mag(),2.0);
00091 double R=(mass_b1+pv.get(0))*(mass_b2+ps.get(0));
00092 u=pow((R-c1)/(R+c1),2.0);
00093 alpha=(pow(4+u,2.0)-u*pow(2+3*u,2.0))/(pow(4+u,2.0)+u*pow(2+3*u,2.0));}
00094
00095 double F01=sqrt((1+alpha)/2);
00096 double F00=sqrt((1-alpha)/4);
00097 double F10=F01;
00098 double F11=F00;
00099
00100 vertex(0,0,0,Djmn(1, 1, 0,phi,theta,gamma)*F00);
00101 vertex(0,0,1,Djmn(1, 1, 1,phi,theta,gamma)*F01);
00102 vertex(0,1,0,Djmn(1, 1,-1,phi,theta,gamma)*F10);
00103 vertex(0,1,1,Djmn(1, 1, 0,phi,theta,gamma)*F11);
00104 vertex(1,0,0,Djmn(1,-1, 0,phi,theta,gamma)*F00);
00105 vertex(1,0,1,Djmn(1,-1, 1,phi,theta,gamma)*F01);
00106 vertex(1,1,0,Djmn(1,-1,-1,phi,theta,gamma)*F10);
00107 vertex(1,1,1,Djmn(1,-1, 0,phi,theta,gamma)*F11);
00108 vertex(2,0,0,Djmn(1, 0, 0,phi,theta,gamma)*F00);
00109 vertex(2,0,1,Djmn(1, 0, 1,phi,theta,gamma)*F01);
00110 vertex(2,1,0,Djmn(1, 0,-1,phi,theta,gamma)*F10);
00111 vertex(2,1,1,Djmn(1, 0, 0,phi,theta,gamma)*F11);
00112
00113
00114 return ;
00115
00116 }
00117
00118
00119
00120