]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/EvtGenModels/EvtPhsp.cxx
added a histogram
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenModels / EvtPhsp.cxx
CommitLineData
da0e9ce3 1//--------------------------------------------------------------------------
2//
3// Environment:
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.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtPhsp.cc
12//
13// Description: Routine to decay a particle according th phase space
14//
15// Modification history:
16//
17// RYD January 8, 1997 Module created
18//
19//------------------------------------------------------------------------
20//
21#include "EvtGenBase/EvtPatches.hh"
22#include <stdlib.h>
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"
28#include <string>
29
30EvtPhsp::~EvtPhsp() {}
31
32std::string EvtPhsp::getName(){
33
34 return "PHSP";
35
36}
37
38EvtDecayBase* EvtPhsp::clone(){
39
40 return new EvtPhsp;
41
42}
43
44
45void EvtPhsp::init(){
46
47 // check that there are 0 arguments
48 checkNArg(0);
49
50}
51
52void EvtPhsp::initProbMax(){
53
54 noProbMax();
55
56}
57
58void EvtPhsp::decay( EvtParticle *p ){
59
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;
65 // return;
66 //}
67
68 p->initializePhaseSpace(getNDaug(),getDaugs());
69
70 return ;
71}
72
73