BOSS
8.0.0
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 "
EvtSTS.hh
"
23
#include "
../EvtGenBase/EvtCPUtil.hh
"
24
#include "
../EvtGenBase/EvtGenKine.hh
"
25
#include "
../EvtGenBase/EvtId.hh
"
26
#include "
../EvtGenBase/EvtPDL.hh
"
27
#include "
../EvtGenBase/EvtParticle.hh
"
28
#include "
../EvtGenBase/EvtPatches.hh
"
29
#include "
../EvtGenBase/EvtReport.hh
"
30
#include "
../EvtGenBase/EvtTensor4C.hh
"
31
#include "
../EvtGenBase/EvtVector4C.hh
"
32
#include <stdlib.h>
33
#include <string>
34
35
EvtSTS::~EvtSTS
() {}
36
37
void
EvtSTS::getName
( std::string& model_name ) { model_name =
"STS"
; }
38
39
EvtDecayBase
*
EvtSTS::clone
() {
return
new
EvtSTS
; }
40
41
void
EvtSTS::initProbMax
() {
setProbMax
( 20.0 ); }
42
43
void
EvtSTS::init
() {
44
45
// check that there are 0 arguments
46
checkNArg
( 0 );
47
checkNDaug
( 2 );
48
49
checkSpinParent
(
EvtSpinType::SCALAR
);
50
51
checkSpinDaughter
( 0,
EvtSpinType::TENSOR
);
52
checkSpinDaughter
( 1,
EvtSpinType::SCALAR
);
53
}
54
55
void
EvtSTS::decay
(
EvtParticle
* p ) {
56
57
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
58
59
EvtParticle
* t1 = p->
getDaug
( 0 );
60
61
EvtVector4R
momt = t1->
getP4
();
62
EvtVector4R
moms = p->
getDaug
( 1 )->
getP4
();
63
double
masst = t1->
mass
();
64
65
EvtVector4R
p4_parent = momt + moms;
66
67
double
m_parent = p4_parent.
mass
();
68
69
double
norm = masst * masst / ( m_parent * momt.
d3mag
() * momt.
d3mag
() );
70
71
vertex
( 0, norm * t1->
epsTensorParent
( 0 ).
cont1
( p4_parent ) * p4_parent );
72
vertex
( 1, norm * t1->
epsTensorParent
( 1 ).
cont1
( p4_parent ) * p4_parent );
73
vertex
( 2, norm * t1->
epsTensorParent
( 2 ).
cont1
( p4_parent ) * p4_parent );
74
vertex
( 3, norm * t1->
epsTensorParent
( 3 ).
cont1
( p4_parent ) * p4_parent );
75
vertex
( 4, norm * t1->
epsTensorParent
( 4 ).
cont1
( p4_parent ) * p4_parent );
76
77
return
;
78
}
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: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::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
EvtDecayBase::checkNArg
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
Definition
EvtDecayBase.cc:449
EvtParticle
Definition
EvtParticle.hh:42
EvtParticle::epsTensorParent
virtual EvtTensor4C epsTensorParent(int i) const
Definition
EvtParticle.cc:670
EvtParticle::getP4
const EvtVector4R & getP4() const
Definition
EvtParticle.cc:108
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
EvtSTS::initProbMax
void initProbMax()
Definition
EvtSTS.cc:41
EvtSTS::getName
void getName(std::string &name)
Definition
EvtSTS.cc:37
EvtSTS::decay
void decay(EvtParticle *p)
Definition
EvtSTS.cc:55
EvtSTS::EvtSTS
EvtSTS()
Definition
EvtSTS.hh:31
EvtSTS::init
void init()
Definition
EvtSTS.cc:43
EvtSTS::clone
EvtDecayBase * clone()
Definition
EvtSTS.cc:39
EvtSTS::~EvtSTS
virtual ~EvtSTS()
Definition
EvtSTS.cc:35
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:31
EvtSpinType::TENSOR
@ TENSOR
Definition
EvtSpinType.hh:33
EvtTensor4C::cont1
EvtVector4C cont1(const EvtVector4C &v4) const
Definition
EvtTensor4C.cc:410
EvtVector4R
Definition
EvtVector4R.hh:29
EvtVector4R::mass
double mass() const
Definition
EvtVector4R.cc:40
EvtVector4R::d3mag
double d3mag() const
Definition
EvtVector4R.cc:168
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtSTS.cc
Generated by
1.16.1