CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPBB2.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of models developed at BES collaboration
5// based on the EvtGen framework. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/BesCopyright
9// Copyright (A) 2006 Ping Rong-Gang @IHEP
10//
11// Module: EvtPBB2.cc
12//
13// Description: Routine to decay pseudoscalar to B_10 bar B_10 using
14// helicity amplitude.
15//
16// Modification history:
17//
18// Ping R.-G. Apr., 2007 Module created
19//
20//------------------------------------------------------------------------
21
22
24#include <stdlib.h>
27#include "EvtGenBase/EvtPDL.hh"
33#include "EvtPBB2.hh"
37
38#include <string>
39
40using std::endl;
41using std::cout;
43
44void EvtPBB2::getName(std::string& model_name){
45
46 model_name="PBB2";
47
48}
49
50
52
53 return new EvtPBB2;
54
55}
56
64
65
67
68 //Hard coded... should not be hard to calculate...
69 double rt =getArg(0);
70 double pmax=2+2*rt*rt;
71 setProbMax(pmax);
72}
73
75
76
78
79 double rt =getArg(0);
80 double phs=getArg(0);
81
82 int ii,jj;
83 for(ii=0;ii<4;ii++){
84 for(jj=0;jj<4;jj++){
85 vertex(ii,jj,0);
86 }
87 }
88
89 vertex(0,0, 1.);
90 vertex(1,1, rt*exp(EvtComplex(0,phs)));
91 vertex(2,2,-rt*exp(EvtComplex(0,phs)));
92 vertex(3,3, -1);
93 return ;
94
95}
96
97
98
99
EvtComplex exp(const EvtComplex &c)
void vertex(const EvtComplex &amp)
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
double getArg(int j)
void setProbMax(double prbmx)
void checkNDaug(int d1, int d2=-1)
EvtId * getDaugs()
void getName(std::string &name)
Definition EvtPBB2.cc:44
EvtPBB2()
Definition EvtPBB2.hh:34
void initProbMax()
Definition EvtPBB2.cc:66
virtual ~EvtPBB2()
Definition EvtPBB2.cc:42
void decay(EvtParticle *p)
Definition EvtPBB2.cc:74
EvtDecayBase * clone()
Definition EvtPBB2.cc:51
void init()
Definition EvtPBB2.cc:57
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)