BOSS
8.0.0
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 "
EvtSVSCPLH.hh
"
24
#include "
../EvtGenBase/EvtCPUtil.hh
"
25
#include "
../EvtGenBase/EvtConst.hh
"
26
#include "
../EvtGenBase/EvtGenKine.hh
"
27
#include "
../EvtGenBase/EvtId.hh
"
28
#include "
../EvtGenBase/EvtPDL.hh
"
29
#include "
../EvtGenBase/EvtParticle.hh
"
30
#include "
../EvtGenBase/EvtPatches.hh
"
31
#include "
../EvtGenBase/EvtReport.hh
"
32
#include "
../EvtGenBase/EvtVector4C.hh
"
33
#include <stdlib.h>
34
#include <string>
35
using
std::endl;
36
37
EvtSVSCPLH::~EvtSVSCPLH
() {}
38
39
void
EvtSVSCPLH::getName
( std::string& model_name ) { model_name =
"SVS_CPLH"
; }
40
41
EvtDecayBase
*
EvtSVSCPLH::clone
() {
return
new
EvtSVSCPLH
; }
42
43
void
EvtSVSCPLH::init
() {
44
45
// check that there are 8 arguments
46
checkNArg
( 8 );
47
checkNDaug
( 2 );
48
49
checkSpinParent
(
EvtSpinType::SCALAR
);
50
51
checkSpinDaughter
( 0,
EvtSpinType::VECTOR
);
52
checkSpinDaughter
( 1,
EvtSpinType::SCALAR
);
53
54
static
double
ctau =
EvtPDL::getctau
(
EvtPDL::getId
(
"B0"
) );
55
56
// hbar/s
57
_dm =
getArg
( 0 );
58
_dgamma =
EvtConst::c
*
getArg
( 1 ) / ctau;
59
60
_qop =
getArg
( 2 ) *
exp
(
EvtComplex
( 0.0,
getArg
( 3 ) ) );
61
62
_poq = 1.0 / _qop;
63
64
_Af =
getArg
( 4 ) *
exp
(
EvtComplex
( 0.0,
getArg
( 5 ) ) );
65
_Abarf =
getArg
( 6 ) *
exp
(
EvtComplex
( 0.0,
getArg
( 7 ) ) );
66
67
if
(
verbose
() )
68
{
69
report
(
INFO
,
"EvtGen"
) <<
":EvtSVSCPLH:dm="
<< _dm << endl;
70
report
(
INFO
,
"EvtGen"
) <<
":EvtSVSCPLH:dGamma="
<< _dgamma << endl;
71
report
(
INFO
,
"EvtGen"
) <<
":EvtSVSCPLH:q/p="
<< _qop << endl;
72
report
(
INFO
,
"EvtGen"
) <<
":EvtSVSCPLH:Af="
<< _Af << endl;
73
report
(
INFO
,
"EvtGen"
) <<
":EvtSVSCPLH:Abarf="
<< _Abarf << endl;
74
}
75
}
76
77
void
EvtSVSCPLH::initProbMax
() {
78
79
// This is probably not quite right, but it should do as a start...
80
// Anders
81
82
setProbMax
( 4.0 * (
getArg
( 4 ) *
getArg
( 4 ) +
getArg
( 6 ) *
getArg
( 6 ) ) );
83
}
84
85
void
EvtSVSCPLH::decay
(
EvtParticle
* p ) {
86
87
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
88
89
static
EvtId
B0 =
EvtPDL::getId
(
"B0"
);
90
static
EvtId
B0B =
EvtPDL::getId
(
"anti-B0"
);
91
92
double
t
;
93
EvtId
other_b;
94
95
EvtCPUtil::OtherB
( p,
t
, other_b, 0.5 );
96
97
// convert time from mm to seconds
98
t
/=
EvtConst::c
;
99
100
// sign convention is dm=Mheavy-Mlight
101
// dGamma=Gammalight-Gammaheavy
102
// such that in the standard model both of these are positive.
103
EvtComplex
gp = 0.5 * (
exp
(
EvtComplex
( 0.25 *
t
* _dgamma, -0.5 *
t
* _dm ) ) +
104
exp
(
EvtComplex
( -0.25 *
t
* _dgamma, 0.5 *
t
* _dm ) ) );
105
EvtComplex
gm = 0.5 * (
exp
(
EvtComplex
( 0.25 *
t
* _dgamma, -0.5 *
t
* _dm ) ) -
106
exp
(
EvtComplex
( -0.25 *
t
* _dgamma, 0.5 *
t
* _dm ) ) );
107
108
EvtComplex
amp;
109
110
if
( other_b == B0B ) { amp = gp * _Af + _qop * gm * _Abarf; }
111
else
if
( other_b == B0 ) { amp = gp * _Abarf + _poq * gm * _Af; }
112
else
113
{
114
report
(
ERROR
,
"EvtGen"
) <<
"other_b was not B0 or B0B!"
<< endl;
115
::abort();
116
}
117
118
EvtVector4R
p4_parent = p->
getP4Restframe
();
119
;
120
121
double
norm =
122
p->
getDaug
( 0 )->
mass
() / ( p->
getDaug
( 0 )->
getP4
().d3mag() * p4_parent.
mass
() );
123
124
EvtParticle
*
v
= p->
getDaug
( 0 );
125
126
vertex
( 0, amp * norm * ( p4_parent * (
v
->epsParent( 0 ) ) ) );
127
vertex
( 1, amp * norm * ( p4_parent * (
v
->epsParent( 1 ) ) ) );
128
vertex
( 2, amp * norm * ( p4_parent * (
v
->epsParent( 2 ) ) ) );
129
130
return
;
131
}
EvtCPUtil.hh
exp
EvtComplex exp(const EvtComplex &c)
Definition
EvtComplex.hh:209
EvtConst.hh
EvtGenKine.hh
EvtId.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
report
ostream & report(Severity severity, const char *facility)
Definition
EvtReport.cc:34
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
getP4
HepLorentzVector getP4(RecEmcShower *gtrk)
Definition
MyUtil.cxx:16
EvtCPUtil::OtherB
static void OtherB(EvtParticle *p, double &t, EvtId &otherb)
Definition
EvtCPUtil.cc:225
EvtComplex
Definition
EvtComplex.hh:28
EvtConst::c
static const double c
Definition
EvtConst.hh:31
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::verbose
int verbose()
Definition
EvtDecayBase.hh:82
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
EvtDecayBase::checkNArg
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition
EvtDecayBase.cc:449
EvtId
Definition
EvtId.hh:27
EvtPDL::getId
static EvtId getId(const std::string &name)
Definition
EvtPDL.cc:272
EvtPDL::getctau
static double getctau(EvtId i)
Definition
EvtPDL.hh:60
EvtParticle
Definition
EvtParticle.hh:42
EvtParticle::getP4Restframe
EvtVector4R getP4Restframe()
Definition
EvtParticle.cc:710
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition
EvtParticle.cc:80
EvtParticle::mass
double mass() const
Definition
EvtParticle.cc:114
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition
EvtParticle.cc:1042
EvtSVSCPLH::getName
void getName(std::string &name)
Definition
EvtSVSCPLH.cc:39
EvtSVSCPLH::initProbMax
void initProbMax()
Definition
EvtSVSCPLH.cc:77
EvtSVSCPLH::init
void init()
Definition
EvtSVSCPLH.cc:43
EvtSVSCPLH::EvtSVSCPLH
EvtSVSCPLH()
Definition
EvtSVSCPLH.hh:32
EvtSVSCPLH::clone
EvtDecayBase * clone()
Definition
EvtSVSCPLH.cc:41
EvtSVSCPLH::~EvtSVSCPLH
virtual ~EvtSVSCPLH()
Definition
EvtSVSCPLH.cc:37
EvtSVSCPLH::decay
void decay(EvtParticle *p)
Definition
EvtSVSCPLH.cc:85
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:31
EvtSpinType::VECTOR
@ VECTOR
Definition
EvtSpinType.hh:32
EvtVector4R
Definition
EvtVector4R.hh:29
EvtVector4R::mass
double mass() const
Definition
EvtVector4R.cc:40
t
int t()
Definition
t.c:1
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtSVSCPLH.cc
Generated by
1.16.1