BOSS
6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPhsp.cc
Go to the documentation of this file.
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
30
EvtPhsp::~EvtPhsp
() {}
31
32
void
EvtPhsp::getName
(std::string& model_name){
33
34
model_name=
"PHSP"
;
35
36
}
37
38
EvtDecayBase
*
EvtPhsp::clone
(){
39
40
return
new
EvtPhsp
;
41
42
}
43
44
45
void
EvtPhsp::init
(){
46
47
// check that there are 0 arguments
48
checkNArg
(0);
49
50
}
51
52
void
EvtPhsp::initProbMax
(){
53
54
noProbMax
();
55
56
}
57
58
void
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
double
weight
= p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
());
69
// std::cout<<"weight= "<<weight<<std::endl;
70
71
return ;
72
}
73
74
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtPhsp.hh
EvtReport.hh
weight
*********Class see also m_nmax DOUBLE PRECISION m_MasPhot DOUBLE PRECISION m_phsu DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_r2 DOUBLE PRECISION m_WtMass INTEGER m_nmax INTEGER m_Nevgen INTEGER m_IsFSR INTEGER m_MarTot *COMMON c_KarFin $ !Output file $ !Event serial number $ !alpha QED at Thomson limit $ !minimum energy at CMS for remooval $ !infrared dimensionless $ !dummy photon IR regulator $ !crude photon multiplicity enhancement factor *EVENT $ !MC crude volume of PhhSpace *Sfactors $ !YFS formfactor IR part only $ !YFS formfactor non IR finite part $ !mass weight
Definition:
KarFin.h:34
EvtDecayBase
Definition:
EvtDecayBase.hh:33
EvtDecayBase::noProbMax
void noProbMax()
Definition:
EvtDecayBase.cc:304
EvtDecayBase::getNDaug
int getNDaug()
Definition:
EvtDecayBase.hh:64
EvtDecayBase::getDaugs
EvtId * getDaugs()
Definition:
EvtDecayBase.hh:65
EvtDecayBase::checkNArg
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition:
EvtDecayBase.cc:482
EvtParticle
Definition:
EvtParticle.hh:42
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition:
EvtParticle.cc:1069
EvtPhsp::EvtPhsp
EvtPhsp()
Definition:
EvtPhsp.hh:34
EvtPhsp::getName
void getName(std::string &name)
Definition:
EvtPhsp.cc:32
EvtPhsp::clone
EvtDecayBase * clone()
Definition:
EvtPhsp.cc:38
EvtPhsp::initProbMax
void initProbMax()
Definition:
EvtPhsp.cc:52
EvtPhsp::~EvtPhsp
virtual ~EvtPhsp()
Definition:
EvtPhsp.cc:30
EvtPhsp::decay
void decay(EvtParticle *p)
Definition:
EvtPhsp.cc:58
EvtPhsp::init
void init()
Definition:
EvtPhsp.cc:45
source
Generator
BesEvtGen
BesEvtGen-00-01-94
src
EvtGen
EvtGenModels
EvtPhsp.cc
Generated by
1.9.6