CGEM BOSS
6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSTS.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: EvtSTS.cc
12
//
13
// Description: Routine to decay scalar -> tensor scalar.
14
//
15
//
16
// Modification history:
17
//
18
// RYD Aug 21, 1998 Module created
19
//
20
//------------------------------------------------------------------------
21
//
22
#include "
EvtGenBase/EvtPatches.hh
"
23
#include <stdlib.h>
24
#include "
EvtGenBase/EvtParticle.hh
"
25
#include "
EvtGenBase/EvtGenKine.hh
"
26
#include "
EvtGenBase/EvtCPUtil.hh
"
27
#include "
EvtGenBase/EvtTensor4C.hh
"
28
#include "
EvtGenBase/EvtVector4C.hh
"
29
#include "
EvtGenBase/EvtPDL.hh
"
30
#include "
EvtGenBase/EvtReport.hh
"
31
#include "
EvtGenModels/EvtSTS.hh
"
32
#include "
EvtGenBase/EvtId.hh
"
33
#include <string>
34
35
EvtSTS::~EvtSTS
() {}
36
37
void
EvtSTS::getName
(std::string& model_name){
38
39
model_name=
"STS"
;
40
41
}
42
43
44
EvtDecayBase
*
EvtSTS::clone
(){
45
46
return
new
EvtSTS
;
47
48
}
49
50
void
EvtSTS::initProbMax
(){
51
52
setProbMax
(20.0);
53
54
}
55
56
void
EvtSTS::init
(){
57
58
// check that there are 0 arguments
59
checkNArg
(0);
60
checkNDaug
(2);
61
62
checkSpinParent
(
EvtSpinType::SCALAR
);
63
64
checkSpinDaughter
(0,
EvtSpinType::TENSOR
);
65
checkSpinDaughter
(1,
EvtSpinType::SCALAR
);
66
67
}
68
69
70
void
EvtSTS::decay
(
EvtParticle
*p){
71
72
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
());
73
74
EvtParticle
* t1=p->
getDaug
(0);
75
76
EvtVector4R
momt = t1->
getP4
();
77
EvtVector4R
moms = p->
getDaug
(1)->
getP4
();
78
double
masst = t1->
mass
();
79
80
EvtVector4R
p4_parent=momt+moms;
81
82
double
m_parent=p4_parent.
mass
();
83
84
double
norm=masst*masst/(m_parent*momt.
d3mag
()*momt.
d3mag
());
85
86
vertex
(0,norm*t1->
epsTensorParent
(0).
cont1
(p4_parent)*p4_parent);
87
vertex
(1,norm*t1->
epsTensorParent
(1).
cont1
(p4_parent)*p4_parent);
88
vertex
(2,norm*t1->
epsTensorParent
(2).
cont1
(p4_parent)*p4_parent);
89
vertex
(3,norm*t1->
epsTensorParent
(3).
cont1
(p4_parent)*p4_parent);
90
vertex
(4,norm*t1->
epsTensorParent
(4).
cont1
(p4_parent)*p4_parent);
91
92
return ;
93
}
94
EvtCPUtil.hh
EvtGenKine.hh
EvtId.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtReport.hh
EvtSTS.hh
EvtTensor4C.hh
EvtVector4C.hh
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::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
EvtParticle
Definition
EvtParticle.hh:42
EvtParticle::epsTensorParent
virtual EvtTensor4C epsTensorParent(int i) const
Definition
EvtParticle.cc:655
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:1069
EvtSTS::initProbMax
void initProbMax()
Definition
EvtSTS.cc:50
EvtSTS::getName
void getName(std::string &name)
Definition
EvtSTS.cc:37
EvtSTS::decay
void decay(EvtParticle *p)
Definition
EvtSTS.cc:70
EvtSTS::EvtSTS
EvtSTS()
Definition
EvtSTS.hh:32
EvtSTS::init
void init()
Definition
EvtSTS.cc:56
EvtSTS::clone
EvtDecayBase * clone()
Definition
EvtSTS.cc:44
EvtSTS::~EvtSTS
virtual ~EvtSTS()
Definition
EvtSTS.cc:35
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:31
EvtSpinType::TENSOR
@ TENSOR
Definition
EvtSpinType.hh:31
EvtTensor4C::cont1
EvtVector4C cont1(const EvtVector4C &v4) const
Definition
EvtTensor4C.cc:461
EvtVector4R
Definition
EvtVector4R.hh:29
EvtVector4R::mass
double mass() const
Definition
EvtVector4R.cc:39
EvtVector4R::d3mag
double d3mag() const
Definition
EvtVector4R.cc:186
6.6.5.h
Generator
BesEvtGen
BesEvtGen-00-01-96-slc6tag
src
EvtGen
EvtGenModels
EvtSTS.cc
Generated by
1.12.0