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
13 // Description: Routine to decay vector-> scalar scalar
15 // Modification history:
17 // RYD November 24, 1996 Module created
19 //------------------------------------------------------------------------
21 #include "EvtGenBase/EvtPatches.hh"
23 #include "EvtGenBase/EvtParticle.hh"
24 #include "EvtGenBase/EvtGenKine.hh"
25 #include "EvtGenBase/EvtPDL.hh"
26 #include "EvtGenBase/EvtVector4C.hh"
27 #include "EvtGenBase/EvtVector4R.hh"
28 #include "EvtGenBase/EvtReport.hh"
29 #include "EvtGenModels/EvtVSS.hh"
34 std::string EvtVSS::getName(){
41 EvtDecayBase* EvtVSS::clone(){
49 // check that there are 0 arguments
52 // check that there are 2 daughters
55 // check the parent and daughter spins
56 checkSpinParent(EvtSpinType::VECTOR);
57 checkSpinDaughter(0,EvtSpinType::SCALAR);
58 checkSpinDaughter(1,EvtSpinType::SCALAR);
61 void EvtVSS::initProbMax() {
67 void EvtVSS::decay( EvtParticle *p){
69 p->initializePhaseSpace(getNDaug(),getDaugs());
71 EvtVector4R pDaug = p->getDaug(0)->getP4();
73 double norm=1.0/pDaug.d3mag();
75 for (int i=0; i<3; i++) vertex(i,norm*pDaug*(p->eps(i)));