1 //--------------------------------------------------------------------------
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtVVSPwave.cc
13 // Description: Routine to decay vector-> vector scalar in Partial-wave
14 // Routine to decay a vector into a vector and scalar. Started
15 // by ryd on Aug 20, 1996.
17 // Modification history:
19 // RYD November 24, 1996 Module created
21 //------------------------------------------------------------------------
23 #include "EvtGenBase/EvtPatches.hh"
25 #include "EvtGenBase/EvtParticle.hh"
26 #include "EvtGenBase/EvtGenKine.hh"
27 #include "EvtGenBase/EvtPDL.hh"
28 #include "EvtGenBase/EvtVector4C.hh"
29 #include "EvtGenBase/EvtTensor4C.hh"
30 #include "EvtGenBase/EvtReport.hh"
31 #include "EvtGenModels/EvtVVSPwave.hh"
35 EvtVVSPwave::~EvtVVSPwave() {}
37 std::string EvtVVSPwave::getName(){
44 EvtDecayBase* EvtVVSPwave::clone(){
46 return new EvtVVSPwave;
50 void EvtVVSPwave::init(){
52 // check that there are 6 arguments
56 checkSpinParent(EvtSpinType::VECTOR);
57 checkSpinDaughter(0,EvtSpinType::VECTOR);
58 checkSpinDaughter(1,EvtSpinType::SCALAR);
61 void EvtVVSPwave::initProbMax() {
63 //probmax is 1.0 for all possible decays I think!
69 void EvtVVSPwave::decay( EvtParticle *p){
71 p->initializePhaseSpace(getNDaug(),getDaugs());
73 EvtComplex as(getArg(0)*cos(getArg(1)),getArg(0)*sin(getArg(1)));
74 EvtComplex ap(getArg(2)*cos(getArg(3)),getArg(2)*sin(getArg(3)));
75 EvtComplex ad(getArg(4)*cos(getArg(5)),getArg(4)*sin(getArg(5)));
77 if (ap!=EvtComplex(0.0,0.0)) {
78 report(ERROR,"EvtGen") << "In EvtVectorToVectorScalar.cc"<<endl;
79 report(ERROR,"EvtGen") << "P wave not yet implemented!!"<<endl;
89 g.setdiag(1.0,-1.0,-1.0,-1.0);
91 d=ad*((1.0/(v->getP4().d3mag()*v->getP4().d3mag()))*directProd(v->getP4(),v->getP4())+(1/3.0)*g)+
94 EvtVector4C ep0,ep1,ep2;
96 ep0=d.cont1(p->eps(0));
97 ep1=d.cont1(p->eps(1));
98 ep2=d.cont1(p->eps(2));
100 vertex(0,0,ep0.cont(v->eps(0).conj()));
101 vertex(0,1,ep0.cont(v->eps(1).conj()));
102 vertex(0,2,ep0.cont(v->eps(2).conj()));
104 vertex(1,0,ep1.cont(v->eps(0).conj()));
105 vertex(1,1,ep1.cont(v->eps(1).conj()));
106 vertex(1,2,ep1.cont(v->eps(2).conj()));
108 vertex(2,0,ep2.cont(v->eps(0).conj()));
109 vertex(2,1,ep2.cont(v->eps(1).conj()));
110 vertex(2,2,ep2.cont(v->eps(2).conj()));