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 a particle according th phase space
15 // Modification history:
17 // RYD January 8, 1997 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/EvtReport.hh"
27 #include "EvtGenModels/EvtPhsp.hh"
30 EvtPhsp::~EvtPhsp() {}
32 std::string EvtPhsp::getName(){
38 EvtDecayBase* EvtPhsp::clone(){
47 // check that there are 0 arguments
52 void EvtPhsp::initProbMax(){
58 void EvtPhsp::decay( EvtParticle *p ){
60 //unneeded - lange - may13-02
61 //if ( p->getNDaug() != 0 ) {
62 //Will end up here because maxrate multiplies by 1.2
63 // report(DEBUG,"EvtGen") << "In EvtPhsp: has "
64 // <<" daugthers should not be here!"<<endl;
68 p->initializePhaseSpace(getNDaug(),getDaugs());