BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtTSS.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: EvtTSS.cc
12
//
13
// Description: Routine to decay tensor-> scalar scalar
14
//
15
// Modification history:
16
//
17
// RYD November 24, 1996 Module created
18
//
19
//------------------------------------------------------------------------
20
// -*- C++ -*-
21
//
22
// Package: EVT
23
// Module: EvtTSS
24
//
25
//
26
// Implimentation:
27
//
28
//
29
// Author: ryd
30
// Created: Nov 24, 1996
31
//
32
//
33
#include "
EvtTSS.hh
"
34
#include "
../EvtGenBase/EvtGenKine.hh
"
35
#include "
../EvtGenBase/EvtPDL.hh
"
36
#include "
../EvtGenBase/EvtParticle.hh
"
37
#include "
../EvtGenBase/EvtPatches.hh
"
38
#include "
../EvtGenBase/EvtReport.hh
"
39
#include "
../EvtGenBase/EvtTensor4C.hh
"
40
#include "
../EvtGenBase/EvtVector4C.hh
"
41
#include <stdlib.h>
42
#include <string>
43
44
EvtTSS::~EvtTSS
() {}
45
46
void
EvtTSS::getName
( std::string& model_name ) { model_name =
"TSS"
; }
47
48
EvtDecayBase
*
EvtTSS::clone
() {
return
new
EvtTSS
; }
49
50
void
EvtTSS::init
() {
51
52
// check that there are 0 arguments
53
checkNArg
( 0 );
54
55
checkNDaug
( 2 );
56
57
checkSpinParent
(
EvtSpinType::TENSOR
);
58
59
checkSpinDaughter
( 0,
EvtSpinType::SCALAR
);
60
checkSpinDaughter
( 1,
EvtSpinType::SCALAR
);
61
}
62
63
void
EvtTSS::initProbMax
() {
setProbMax
( 1.0 ); }
64
65
void
EvtTSS::decay
(
EvtParticle
* p ) {
66
67
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
68
69
EvtVector4R
moms1 = p->
getDaug
( 0 )->
getP4
();
70
71
double
norm = 1.0 / ( moms1.
d3mag
() * moms1.
d3mag
() );
72
73
vertex
( 0, norm * ( p->
epsTensor
( 0 ).
cont1
(
EvtVector4C
( moms1 ) ) * ( moms1 ) ) );
74
vertex
( 1, norm * ( p->
epsTensor
( 1 ).
cont1
(
EvtVector4C
( moms1 ) ) * ( moms1 ) ) );
75
vertex
( 2, norm * ( p->
epsTensor
( 2 ).
cont1
(
EvtVector4C
( moms1 ) ) * ( moms1 ) ) );
76
vertex
( 3, norm * ( p->
epsTensor
( 3 ).
cont1
(
EvtVector4C
( moms1 ) ) * ( moms1 ) ) );
77
vertex
( 4, norm * ( p->
epsTensor
( 4 ).
cont1
(
EvtVector4C
( moms1 ) ) * ( moms1 ) ) );
78
79
return
;
80
}
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtReport.hh
EvtTSS.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::getP4
const EvtVector4R & getP4() const
Definition
EvtParticle.cc:108
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition
EvtParticle.cc:80
EvtParticle::epsTensor
virtual EvtTensor4C epsTensor(int i) const
Definition
EvtParticle.cc:682
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition
EvtParticle.cc:1042
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:31
EvtSpinType::TENSOR
@ TENSOR
Definition
EvtSpinType.hh:33
EvtTSS::decay
void decay(EvtParticle *p)
Definition
EvtTSS.cc:65
EvtTSS::clone
EvtDecayBase * clone()
Definition
EvtTSS.cc:48
EvtTSS::initProbMax
void initProbMax()
Definition
EvtTSS.cc:63
EvtTSS::~EvtTSS
virtual ~EvtTSS()
Definition
EvtTSS.cc:44
EvtTSS::getName
void getName(std::string &name)
Definition
EvtTSS.cc:46
EvtTSS::init
void init()
Definition
EvtTSS.cc:50
EvtTSS::EvtTSS
EvtTSS()
Definition
EvtTSS.hh:34
EvtTensor4C::cont1
EvtVector4C cont1(const EvtVector4C &v4) const
Definition
EvtTensor4C.cc:410
EvtVector4C
Definition
EvtVector4C.hh:31
EvtVector4R
Definition
EvtVector4R.hh:29
EvtVector4R::d3mag
double d3mag() const
Definition
EvtVector4R.cc:168
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtTSS.cc
Generated by
1.16.1