BOSS
6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtVSSMix.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) 1998 Caltech, UCSB
10
//
11
// Module: EvtVSSMix.cc
12
//
13
// Description: Routine to decay vector-> scalar scalar
14
//
15
// Modification history:
16
//
17
// RYD November 24, 1996 Module created
18
//
19
//------------------------------------------------------------------------
20
//
21
#include "
EvtGenBase/EvtPatches.hh
"
22
#include <stdlib.h>
23
#include "
EvtGenBase/EvtParticle.hh
"
24
#include "
EvtGenBase/EvtGenKine.hh
"
25
#include "
EvtGenBase/EvtPDL.hh
"
26
#include "
EvtGenBase/EvtReport.hh
"
27
#include "
EvtGenBase/EvtVector4C.hh
"
28
#include "
EvtGenModels/EvtVSSMix.hh
"
29
#include "
EvtGenBase/EvtId.hh
"
30
#include <string>
31
#include "
EvtGenBase/EvtConst.hh
"
32
33
EvtVSSMix::~EvtVSSMix
() {}
34
35
void
EvtVSSMix::getName
(std::string& model_name){
36
37
model_name=
"VSS_MIX"
;
38
39
}
40
41
42
EvtDecayBase
*
EvtVSSMix::clone
(){
43
44
return
new
EvtVSSMix
;
45
46
}
47
48
void
EvtVSSMix::init
(){
49
50
// check that there are 1 arguments
51
checkNArg
(1);
52
checkNDaug
(2);
53
54
checkSpinParent
(
EvtSpinType::VECTOR
);
55
56
checkSpinDaughter
(0,
EvtSpinType::SCALAR
);
57
checkSpinDaughter
(1,
EvtSpinType::SCALAR
);
58
59
}
60
61
void
EvtVSSMix::initProbMax
(){
62
63
setProbMax
(0.5);
64
65
}
66
67
void
EvtVSSMix::decay
(
EvtParticle
*p ){
68
69
//added by Lange Jan4,2000
70
static
EvtId
B0=
EvtPDL::getId
(
"B0"
);
71
static
EvtId
B0B=
EvtPDL::getId
(
"anti-B0"
);
72
73
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
());
74
EvtParticle
*s1,*s2;
75
s1 = p->
getDaug
(0);
76
s2 = p->
getDaug
(1);
77
EvtVector4R
s1mom = s1->
getP4
();
78
79
double
t1,t2,dm;
80
81
s1->
setLifetime
();
82
s2->
setLifetime
();
83
84
t1=s1->
getLifetime
();
85
t2=s2->
getLifetime
();
86
87
//dm should probably be a parameter to this model.
88
89
dm=
getArg
(0)/
EvtConst::c
;
90
91
EvtId
d1,d2;
92
93
d1=s1->
getId
();
94
d2=s2->
getId
();
95
96
double
mix_amp=0.;
97
if
(d1==B0&&d2==B0B) mix_amp=
cos
(0.5*dm*(t1-t2));
98
if
(d1==B0B&&d2==B0) mix_amp=
cos
(0.5*dm*(t1-t2));
99
if
(d1==B0&&d2==B0) mix_amp=
sin
(0.5*dm*(t1-t2));
100
if
(d1==B0B&&d2==B0B) mix_amp=
sin
(0.5*dm*(t1-t2));
101
102
double
norm=1.0/s1mom.
d3mag
();
103
104
vertex
(0,norm*mix_amp*s1mom*(p->
eps
(0)));
105
vertex
(1,norm*mix_amp*s1mom*(p->
eps
(1)));
106
vertex
(2,norm*mix_amp*s1mom*(p->
eps
(2)));
107
108
return ;
109
}
110
sin
double sin(const BesAngle a)
Definition:
BesAngle.h:210
cos
double cos(const BesAngle a)
Definition:
BesAngle.h:213
EvtConst.hh
EvtGenKine.hh
EvtId.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtReport.hh
EvtVSSMix.hh
EvtVector4C.hh
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::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
EvtParticle
Definition:
EvtParticle.hh:42
EvtParticle::getId
EvtId getId() const
Definition:
EvtParticle.cc:113
EvtParticle::getLifetime
double getLifetime()
Definition:
EvtParticle.cc:99
EvtParticle::getP4
const EvtVector4R & getP4() const
Definition:
EvtParticle.cc:121
EvtParticle::setLifetime
void setLifetime(double tau)
Definition:
EvtParticle.cc:89
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition:
EvtParticle.cc:85
EvtParticle::eps
virtual EvtVector4C eps(int i) const
Definition:
EvtParticle.cc:574
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition:
EvtParticle.cc:1069
EvtSpinType::SCALAR
@ SCALAR
Definition:
EvtSpinType.hh:31
EvtSpinType::VECTOR
@ VECTOR
Definition:
EvtSpinType.hh:31
EvtVSSMix::init
void init()
Definition:
EvtVSSMix.cc:48
EvtVSSMix::getName
void getName(std::string &name)
Definition:
EvtVSSMix.cc:35
EvtVSSMix::clone
EvtDecayBase * clone()
Definition:
EvtVSSMix.cc:42
EvtVSSMix::~EvtVSSMix
virtual ~EvtVSSMix()
Definition:
EvtVSSMix.cc:33
EvtVSSMix::decay
void decay(EvtParticle *p)
Definition:
EvtVSSMix.cc:67
EvtVSSMix::initProbMax
void initProbMax()
Definition:
EvtVSSMix.cc:61
EvtVSSMix::EvtVSSMix
EvtVSSMix()
Definition:
EvtVSSMix.hh:32
EvtVector4R
Definition:
EvtVector4R.hh:29
EvtVector4R::d3mag
double d3mag() const
Definition:
EvtVector4R.cc:186
source
Generator
BesEvtGen
BesEvtGen-00-01-94
src
EvtGen
EvtGenModels
EvtVSSMix.cc
Generated by
1.9.6