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/EvtPDL.hh"
00027 #include "EvtGenBase/EvtVector4C.hh"
00028 #include "EvtGenBase/EvtVector4R.hh"
00029 #include "EvtGenBase/EvtTensor4C.hh"
00030 #include "EvtGenBase/EvtReport.hh"
00031 #include "EvtGenBase/EvtdFunction.hh"
00032 #include "EvtGenBase/EvtHelSys.hh"
00033 #include "EvtPBB1.hh"
00034 #include <string>
00035 using std::endl;
00036
00037 EvtPBB1::~EvtPBB1() {}
00038
00039 void EvtPBB1::getName(std::string& model_name){
00040
00041 model_name="PBB1";
00042
00043 }
00044
00045
00046 EvtDecayBase* EvtPBB1::clone(){
00047
00048 return new EvtPBB1;
00049
00050 }
00051
00052 void EvtPBB1::initProbMax() {
00053 double ProbMax=2.;
00054 setProbMax(ProbMax);
00055 }
00056
00057 void EvtPBB1::init(){
00058 checkNDaug(2);
00059 checkSpinParent(EvtSpinType::SCALAR);
00060 checkSpinDaughter(0,EvtSpinType::DIRAC);
00061 checkSpinDaughter(1,EvtSpinType::DIRAC);
00062 }
00063
00064 void EvtPBB1::decay( EvtParticle *p){
00065
00066 p->initializePhaseSpace(getNDaug(),getDaugs());
00067
00068 double phs=getArg(0);
00069
00070
00071 vertex(0,0, exp(EvtComplex(0,phs)));
00072 vertex(0,1, 0.0);
00073 vertex(1,0, 0.0);
00074 vertex(1,1,-exp(EvtComplex(0,phs)));
00075
00076 return ;
00077
00078 }
00079
00080
00081
00082