BOSS
7.1.0
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
23
#include "
EvtGenBase/EvtPatches.hh
"
24
#include <stdlib.h>
25
#include "
EvtGenBase/EvtParticle.hh
"
26
#include "
EvtGenBase/EvtGenKine.hh
"
27
#include "
EvtGenBase/EvtPDL.hh
"
28
#include "
EvtGenBase/EvtVector4C.hh
"
29
#include "
EvtGenBase/EvtVector4R.hh
"
30
#include "
EvtGenBase/EvtTensor4C.hh
"
31
#include "
EvtGenBase/EvtReport.hh
"
32
#include "
EvtGenBase/EvtHelSys.hh
"
33
#include "
EvtPBB2.hh
"
34
#include "
EvtGenBase/EvtdFunctionSingle.hh
"
35
#include "
EvtGenBase/EvtRaritaSchwinger.hh
"
36
#include "
EvtGenBase/EvtRaritaSchwingerParticle.hh
"
37
38
#include <string>
39
40
using
std::endl;
41
using
std::cout;
42
EvtPBB2::~EvtPBB2
() {}
43
44
void
EvtPBB2::getName
(std::string& model_name){
45
46
model_name=
"PBB2"
;
47
48
}
49
50
51
EvtDecayBase
*
EvtPBB2::clone
(){
52
53
return
new
EvtPBB2
;
54
55
}
56
57
void
EvtPBB2::init
(){
58
checkNDaug
(2);
59
checkSpinParent
(
EvtSpinType::SCALAR
);
60
checkSpinDaughter
(0,
EvtSpinType::RARITASCHWINGER
);
61
checkSpinDaughter
(1,
EvtSpinType::RARITASCHWINGER
);
62
63
}
64
65
66
void
EvtPBB2::initProbMax
() {
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
74
void
EvtPBB2::decay
(
EvtParticle
*p){
75
76
77
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
());
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
exp
EvtComplex exp(const EvtComplex &c)
Definition:
EvtComplex.hh:252
EvtGenKine.hh
EvtHelSys.hh
EvtPBB2.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtRaritaSchwingerParticle.hh
EvtRaritaSchwinger.hh
EvtReport.hh
EvtTensor4C.hh
EvtVector4C.hh
EvtVector4R.hh
EvtdFunctionSingle.hh
EvtComplex
Definition:
EvtComplex.hh:28
EvtDecayAmp::vertex
void vertex(const EvtComplex &)
Definition:
EvtDecayAmp.hh:37
EvtDecayBase
Definition:
EvtDecayBase.hh:33
EvtDecayBase::checkSpinDaughter
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
Definition:
EvtDecayBase.cc:533
EvtDecayBase::checkSpinParent
void checkSpinParent(EvtSpinType::spintype sp)
Definition:
EvtDecayBase.cc:520
EvtDecayBase::getArg
double getArg(int j)
Definition:
EvtDecayBase.cc:564
EvtDecayBase::setProbMax
void setProbMax(double prbmx)
Definition:
EvtDecayBase.cc:297
EvtDecayBase::getNDaug
int getNDaug()
Definition:
EvtDecayBase.hh:64
EvtDecayBase::checkNDaug
void checkNDaug(int d1, int d2=-1)
Definition:
EvtDecayBase.cc:504
EvtDecayBase::getDaugs
EvtId * getDaugs()
Definition:
EvtDecayBase.hh:65
EvtPBB2::getName
void getName(std::string &name)
Definition:
EvtPBB2.cc:44
EvtPBB2::EvtPBB2
EvtPBB2()
Definition:
EvtPBB2.hh:34
EvtPBB2::initProbMax
void initProbMax()
Definition:
EvtPBB2.cc:66
EvtPBB2::~EvtPBB2
virtual ~EvtPBB2()
Definition:
EvtPBB2.cc:42
EvtPBB2::decay
void decay(EvtParticle *p)
Definition:
EvtPBB2.cc:74
EvtPBB2::clone
EvtDecayBase * clone()
Definition:
EvtPBB2.cc:51
EvtPBB2::init
void init()
Definition:
EvtPBB2.cc:57
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:1070
EvtSpinType::SCALAR
@ SCALAR
Definition:
EvtSpinType.hh:31
EvtSpinType::RARITASCHWINGER
@ RARITASCHWINGER
Definition:
EvtSpinType.hh:32
source
Generator
BesEvtGen
BesEvtGen-00-04-26
src
EvtGen
EvtGenModels
EvtPBB2.cc
Generated by
1.9.6