BOSS
8.0.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
#include "
EvtPBB2.hh
"
23
#include "
../EvtGenBase/EvtGenKine.hh
"
24
#include "
../EvtGenBase/EvtHelSys.hh
"
25
#include "
../EvtGenBase/EvtPDL.hh
"
26
#include "
../EvtGenBase/EvtParticle.hh
"
27
#include "
../EvtGenBase/EvtPatches.hh
"
28
#include "
../EvtGenBase/EvtRaritaSchwinger.hh
"
29
#include "
../EvtGenBase/EvtRaritaSchwingerParticle.hh
"
30
#include "
../EvtGenBase/EvtReport.hh
"
31
#include "
../EvtGenBase/EvtTensor4C.hh
"
32
#include "
../EvtGenBase/EvtVector4C.hh
"
33
#include "
../EvtGenBase/EvtVector4R.hh
"
34
#include "
../EvtGenBase/EvtdFunctionSingle.hh
"
35
#include <stdlib.h>
36
37
#include <string>
38
39
using
std::cout;
40
using
std::endl;
41
EvtPBB2::~EvtPBB2
() {}
42
43
void
EvtPBB2::getName
( std::string& model_name ) { model_name =
"PBB2"
; }
44
45
EvtDecayBase
*
EvtPBB2::clone
() {
return
new
EvtPBB2
; }
46
47
void
EvtPBB2::init
() {
48
checkNDaug
( 2 );
49
checkSpinParent
(
EvtSpinType::SCALAR
);
50
checkSpinDaughter
( 0,
EvtSpinType::RARITASCHWINGER
);
51
checkSpinDaughter
( 1,
EvtSpinType::RARITASCHWINGER
);
52
}
53
54
void
EvtPBB2::initProbMax
() {
55
56
// Hard coded... should not be hard to calculate...
57
double
rt =
getArg
( 0 );
58
double
pmax = 2 + 2 * rt * rt;
59
setProbMax
( pmax );
60
}
61
62
void
EvtPBB2::decay
(
EvtParticle
* p ) {
63
64
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
65
66
double
rt =
getArg
( 0 );
67
double
phs =
getArg
( 0 );
68
69
int
ii, jj;
70
for
( ii = 0; ii < 4; ii++ )
71
{
72
for
( jj = 0; jj < 4; jj++ ) {
vertex
( ii, jj, 0 ); }
73
}
74
75
vertex
( 0, 0, 1. );
76
vertex
( 1, 1, rt *
exp
(
EvtComplex
( 0, phs ) ) );
77
vertex
( 2, 2, -rt *
exp
(
EvtComplex
( 0, phs ) ) );
78
vertex
( 3, 3, -1 );
79
return
;
80
}
exp
EvtComplex exp(const EvtComplex &c)
Definition
EvtComplex.hh:209
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:36
EvtDecayBase::checkSpinDaughter
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
Definition
EvtDecayBase.cc:492
EvtDecayBase::checkSpinParent
void checkSpinParent(EvtSpinType::spintype sp)
Definition
EvtDecayBase.cc:479
EvtDecayBase::getArg
double getArg(int j)
Definition
EvtDecayBase.cc:520
EvtDecayBase::EvtDecayBase
EvtDecayBase()
Definition
EvtDecayBase.cc:205
EvtDecayBase::setProbMax
void setProbMax(double prbmx)
Definition
EvtDecayBase.cc:261
EvtDecayBase::getNDaug
int getNDaug()
Definition
EvtDecayBase.hh:67
EvtDecayBase::checkNDaug
void checkNDaug(int d1, int d2=-1)
Definition
EvtDecayBase.cc:465
EvtDecayBase::getDaugs
EvtId * getDaugs()
Definition
EvtDecayBase.hh:68
EvtPBB2::getName
void getName(std::string &name)
Definition
EvtPBB2.cc:43
EvtPBB2::EvtPBB2
EvtPBB2()
Definition
EvtPBB2.hh:32
EvtPBB2::initProbMax
void initProbMax()
Definition
EvtPBB2.cc:54
EvtPBB2::~EvtPBB2
virtual ~EvtPBB2()
Definition
EvtPBB2.cc:41
EvtPBB2::decay
void decay(EvtParticle *p)
Definition
EvtPBB2.cc:62
EvtPBB2::clone
EvtDecayBase * clone()
Definition
EvtPBB2.cc:45
EvtPBB2::init
void init()
Definition
EvtPBB2.cc:47
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:1042
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:31
EvtSpinType::RARITASCHWINGER
@ RARITASCHWINGER
Definition
EvtSpinType.hh:38
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtPBB2.cc
Generated by
1.16.1