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/EvtHelSys.hh"
00031 #include "EvtGenModels/EvtS2GV.hh"
00032 #include "EvtGenBase/EvtRandom.hh"
00033 #include <string>
00034 using std::endl;
00035
00036 EvtS2GV::~EvtS2GV() {}
00037
00038 void EvtS2GV::getName(std::string& model_name){
00039
00040 model_name="S2GV";
00041
00042 }
00043
00044
00045 EvtDecayBase* EvtS2GV::clone(){
00046
00047 return new EvtS2GV;
00048
00049 }
00050
00051 void EvtS2GV::init(){
00052 static EvtId GAM=EvtPDL::getId("gamma");
00053
00054 checkNArg(0);
00055 checkNDaug(2);
00056 checkSpinParent(EvtSpinType::SCALAR);
00057 checkSpinDaughter(0,EvtSpinType::PHOTON);
00058 checkSpinDaughter(1,EvtSpinType::VECTOR);
00059 if (!(getDaug(0)==GAM)) {
00060 report(ERROR,"EvtGen") << "EvtS2GV generator radiative decays expected "<<endl;
00061 ::abort();
00062 }
00063 }
00064
00065
00066 void EvtS2GV::initProbMax() {
00067
00068
00069 setProbMax(2.0001);
00070 }
00071
00072 void EvtS2GV::decay( EvtParticle *p){
00073 p->initializePhaseSpace(getNDaug(),getDaugs());
00074
00075 double phs=0.;
00076 EvtComplex F11=exp(EvtComplex(0,phs));
00077
00078 vertex(0,0, F11);
00079 vertex(0,2, 0);
00080 vertex(0,1, 0);
00081 vertex(1,0, 0);
00082 vertex(1,2, 0);
00083 vertex(1,1,-F11);
00084 return ;
00085
00086 }
00087
00088
00089
00090