BOSS
7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSVSCPLH.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) 2001 Caltech, UCSB
10
//
11
// Module: EvtSVSCPLH.cc
12
//
13
// Description: The decay of a scalar to a scalar and a vector particle are
14
// performed with CP violation and different widths for
15
// the cp even and odd states. E.g. B->J/psi K_S.
16
//
17
// Modification history:
18
//
19
// Ryd March 29, 2001 Module created
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/EvtCPUtil.hh
"
28
#include "
EvtGenBase/EvtPDL.hh
"
29
#include "
EvtGenBase/EvtReport.hh
"
30
#include "
EvtGenModels/EvtSVSCPLH.hh
"
31
#include "
EvtGenBase/EvtId.hh
"
32
#include <string>
33
#include "
EvtGenBase/EvtConst.hh
"
34
#include "
EvtGenBase/EvtVector4C.hh
"
35
using
std::endl;
36
37
EvtSVSCPLH::~EvtSVSCPLH
() {}
38
39
void
EvtSVSCPLH::getName
(std::string& model_name){
40
41
model_name=
"SVS_CPLH"
;
42
43
}
44
45
46
EvtDecayBase
*
EvtSVSCPLH::clone
(){
47
48
return
new
EvtSVSCPLH
;
49
50
}
51
52
void
EvtSVSCPLH::init
(){
53
54
// check that there are 8 arguments
55
checkNArg
(8);
56
checkNDaug
(2);
57
58
checkSpinParent
(
EvtSpinType::SCALAR
);
59
60
checkSpinDaughter
(0,
EvtSpinType::VECTOR
);
61
checkSpinDaughter
(1,
EvtSpinType::SCALAR
);
62
63
static
double
ctau=
EvtPDL::getctau
(
EvtPDL::getId
(
"B0"
));
64
65
// hbar/s
66
_dm=
getArg
(0);
67
_dgamma=
EvtConst::c
*
getArg
(1)/ctau;
68
69
_qop=
getArg
(2)*
exp
(
EvtComplex
(0.0,
getArg
(3)));
70
71
_poq=1.0/_qop;
72
73
_Af=
getArg
(4)*
exp
(
EvtComplex
(0.0,
getArg
(5)));
74
_Abarf=
getArg
(6)*
exp
(
EvtComplex
(0.0,
getArg
(7)));
75
76
if
(
verbose
()){
77
report
(
INFO
,
"EvtGen"
)<<
":EvtSVSCPLH:dm="
<<_dm<<endl;
78
report
(
INFO
,
"EvtGen"
)<<
":EvtSVSCPLH:dGamma="
<<_dgamma<<endl;
79
report
(
INFO
,
"EvtGen"
)<<
":EvtSVSCPLH:q/p="
<<_qop<<endl;
80
report
(
INFO
,
"EvtGen"
)<<
":EvtSVSCPLH:Af="
<<_Af<<endl;
81
report
(
INFO
,
"EvtGen"
)<<
":EvtSVSCPLH:Abarf="
<<_Abarf<<endl;
82
}
83
84
85
}
86
87
void
EvtSVSCPLH::initProbMax
(){
88
89
//This is probably not quite right, but it should do as a start...
90
//Anders
91
92
setProbMax
(4.0*(
getArg
(4)*
getArg
(4)+
getArg
(6)*
getArg
(6)));
93
94
}
95
96
void
EvtSVSCPLH::decay
(
EvtParticle
*p){
97
98
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
());
99
100
static
EvtId
B0=
EvtPDL::getId
(
"B0"
);
101
static
EvtId
B0B=
EvtPDL::getId
(
"anti-B0"
);
102
103
double
t
;
104
EvtId
other_b;
105
106
EvtCPUtil::OtherB
(p,
t
,other_b,0.5);
107
108
//convert time from mm to seconds
109
t
/=
EvtConst::c
;
110
111
//sign convention is dm=Mheavy-Mlight
112
// dGamma=Gammalight-Gammaheavy
113
//such that in the standard model both of these are positive.
114
EvtComplex
gp=0.5*(
exp
(
EvtComplex
(0.25*
t
*_dgamma,-0.5*
t
*_dm))+
exp
(
EvtComplex
(-0.25*
t
*_dgamma,0.5*
t
*_dm)));
115
EvtComplex
gm=0.5*(
exp
(
EvtComplex
(0.25*
t
*_dgamma,-0.5*
t
*_dm))-
exp
(
EvtComplex
(-0.25*
t
*_dgamma,0.5*
t
*_dm)));
116
117
EvtComplex
amp;
118
119
if
(other_b==B0B){
120
amp=gp*_Af+_qop*gm*_Abarf;
121
}
122
else
if
(other_b==B0){
123
amp=gp*_Abarf+_poq*gm*_Af;
124
}
125
else
{
126
report
(
ERROR
,
"EvtGen"
) <<
"other_b was not B0 or B0B!"
<<endl;
127
::abort();
128
}
129
130
EvtVector4R
p4_parent=p->
getP4Restframe
();;
131
132
double
norm=p->
getDaug
(0)->
mass
()/(p->
getDaug
(0)->
getP4
().
d3mag
()*p4_parent.
mass
());
133
134
EvtParticle
*
v
=p->
getDaug
(0);
135
136
vertex
(0,amp*norm*(p4_parent*(
v
->epsParent(0))));
137
vertex
(1,amp*norm*(p4_parent*(
v
->epsParent(1))));
138
vertex
(2,amp*norm*(p4_parent*(
v
->epsParent(2))));
139
140
141
return ;
142
}
143
144
145
EvtCPUtil.hh
exp
EvtComplex exp(const EvtComplex &c)
Definition:
EvtComplex.hh:252
EvtConst.hh
EvtGenKine.hh
EvtId.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
report
ostream & report(Severity severity, const char *facility)
Definition:
EvtReport.cc:36
EvtReport.hh
ERROR
@ ERROR
Definition:
EvtReport.hh:49
INFO
@ INFO
Definition:
EvtReport.hh:52
EvtSVSCPLH.hh
EvtVector4C.hh
v
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition:
KarLud.h:35
t
TTree * t
Definition:
binning.cxx:23
EvtCPUtil::OtherB
static void OtherB(EvtParticle *p, double &t, EvtId &otherb)
Definition:
EvtCPUtil.cc:229
EvtComplex
Definition:
EvtComplex.hh:28
EvtConst::c
static const double c
Definition:
EvtConst.hh:32
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::verbose
int verbose()
Definition:
EvtDecayBase.hh:79
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
EvtDecayBase::checkNArg
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition:
EvtDecayBase.cc:482
EvtId
Definition:
EvtId.hh:27
EvtPDL::getId
static EvtId getId(const std::string &name)
Definition:
EvtPDL.cc:287
EvtPDL::getctau
static double getctau(EvtId i)
Definition:
EvtPDL.hh:55
EvtParticle
Definition:
EvtParticle.hh:42
EvtParticle::getP4Restframe
EvtVector4R getP4Restframe()
Definition:
EvtParticle.cc:700
EvtParticle::getP4
const EvtVector4R & getP4() const
Definition:
EvtParticle.cc:121
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition:
EvtParticle.cc:85
EvtParticle::mass
double mass() const
Definition:
EvtParticle.cc:127
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition:
EvtParticle.cc:1071
EvtSVSCPLH::getName
void getName(std::string &name)
Definition:
EvtSVSCPLH.cc:39
EvtSVSCPLH::initProbMax
void initProbMax()
Definition:
EvtSVSCPLH.cc:87
EvtSVSCPLH::init
void init()
Definition:
EvtSVSCPLH.cc:52
EvtSVSCPLH::EvtSVSCPLH
EvtSVSCPLH()
Definition:
EvtSVSCPLH.hh:33
EvtSVSCPLH::clone
EvtDecayBase * clone()
Definition:
EvtSVSCPLH.cc:46
EvtSVSCPLH::~EvtSVSCPLH
virtual ~EvtSVSCPLH()
Definition:
EvtSVSCPLH.cc:37
EvtSVSCPLH::decay
void decay(EvtParticle *p)
Definition:
EvtSVSCPLH.cc:96
EvtSpinType::SCALAR
@ SCALAR
Definition:
EvtSpinType.hh:31
EvtSpinType::VECTOR
@ VECTOR
Definition:
EvtSpinType.hh:31
EvtVector4R
Definition:
EvtVector4R.hh:29
EvtVector4R::mass
double mass() const
Definition:
EvtVector4R.cc:39
EvtVector4R::d3mag
double d3mag() const
Definition:
EvtVector4R.cc:186
source
Generator
BesEvtGen
BesEvtGen-00-04-08
src
EvtGen
EvtGenModels
EvtSVSCPLH.cc
Generated by
1.9.6