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/EvtAV2GV.hh"
00032 #include "EvtGenBase/EvtRandom.hh"
00033 #include <string>
00034 #include "EvtGenBase/EvtHelSys.hh"
00035
00036 using std::endl;
00037
00038 EvtAV2GV::~EvtAV2GV() {}
00039
00040 void EvtAV2GV::getName(std::string& model_name){
00041
00042 model_name="AV2GV";
00043
00044 }
00045
00046
00047 EvtDecayBase* EvtAV2GV::clone(){
00048
00049 return new EvtAV2GV;
00050
00051 }
00052
00053 void EvtAV2GV::init(){
00054 static EvtId GAM=EvtPDL::getId("gamma");
00055
00056 checkNArg(0);
00057 checkNDaug(2);
00058 checkSpinParent(EvtSpinType::VECTOR);
00059 checkSpinDaughter(0,EvtSpinType::PHOTON);
00060 checkSpinDaughter(1,EvtSpinType::VECTOR);
00061 if (!(getDaug(0)==GAM)) {
00062 report(ERROR,"EvtGen") << "EvtAV2GV generator radiative decays expected "<<endl;
00063 ::abort();
00064 }
00065 }
00066
00067
00068 void EvtAV2GV::initProbMax() {
00069
00070
00071 setProbMax(12.00001);
00072 }
00073
00074 void EvtAV2GV::decay( EvtParticle *p){
00075 p->initializePhaseSpace(getNDaug(),getDaugs());
00076
00077 EvtParticle *v,*s1;
00078 EvtVector4R pv,ps,ppr;
00079
00080 v =p->getDaug(0);
00081 s1=p->getDaug(1);
00082 pv=v->getP4();
00083 ps=s1->getP4();
00084 ppr=p->getP4();
00085
00086 EvtHelSys angles(ps,pv);
00087
00088
00089 double theta =angles.getHelAng(1);
00090 double phi =angles.getHelAng(2);
00091 double gamma=0;
00092
00093 int j1,j2,j3;
00094 for(j1=0;j1<=2;){
00095 for(j2=0;j2<=1;){
00096 for(j3=0;j3<=2;){
00097 vertex(j1,j2,j3,0.0);j3++;}
00098 j2++;}
00099 j1++;}
00100
00101 vertex(0,0,0, Djmn(1, 1, 0,phi,theta,gamma));
00102 vertex(0,0,1, Djmn(1,-1, 0,phi,theta,gamma));
00103 vertex(0,0,2, Djmn(1, 0, 0,phi,theta,gamma));
00104
00105 vertex(1,1,0, Djmn(1, 1, 0,phi,theta,gamma));
00106 vertex(1,1,1, Djmn(1,-1, 0,phi,theta,gamma));
00107 vertex(1,1,2, Djmn(1, 0, 0,phi,theta,gamma));
00108
00109 vertex(2,0,0, Djmn(1, 1, 1,phi,theta,gamma));
00110 vertex(2,0,1, Djmn(1,-1, 1,phi,theta,gamma));
00111 vertex(2,0,2, Djmn(1, 0, 1,phi,theta,gamma));
00112
00113 vertex(2,1,0, Djmn(1, 1,-1,phi,theta,gamma));
00114 vertex(2,1,1, Djmn(1,-1,-1,phi,theta,gamma));
00115 vertex(2,1,2, Djmn(1, 0,-1,phi,theta,gamma));
00116
00117 return ;
00118
00119 }
00120
00121
00122
00123