BOSS
7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSVS.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: EvtSVS.cc
12
//
13
// Description: Routine to decay scalar -> vector + 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/EvtReport.hh
"
26
#include "
EvtGenBase/EvtPDL.hh
"
27
#include "
EvtGenBase/EvtVector4C.hh
"
28
#include "
EvtGenModels/EvtSVS.hh
"
29
#include <string>
30
31
EvtSVS::~EvtSVS
() {}
32
33
void
EvtSVS::getName
(std::string& model_name){
34
35
model_name=
"SVS"
;
36
37
}
38
39
40
EvtDecayBase
*
EvtSVS::clone
(){
41
42
return
new
EvtSVS
;
43
44
}
45
46
void
EvtSVS::init
(){
47
48
// check that there are 0 arguments
49
checkNArg
(0);
50
checkNDaug
(2);
51
52
checkSpinParent
(
EvtSpinType::SCALAR
);
53
54
checkSpinDaughter
(0,
EvtSpinType::VECTOR
);
55
checkSpinDaughter
(1,
EvtSpinType::SCALAR
);
56
57
58
}
59
60
61
62
void
EvtSVS::initProbMax
(){
63
64
setProbMax
(1.0);
65
66
}
67
68
void
EvtSVS::decay
(
EvtParticle
*p){
69
70
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
());
71
//report(INFO,"EvtGen") << "par " << p->getP4() << " " << p->getDaug(0)->getP4() << " " <<
72
// p->getDaug(1)->getP4() << " " << p->mass() << " " <<
73
// p->getDaug(0)->mass() << " " << p->getDaug(1)->mass() <<endl;
74
EvtParticle
*
v
;
75
v
= p->
getDaug
(0);
76
double
massv =
v
->mass();
77
EvtVector4R
momv =
v
->getP4();
78
EvtVector4R
moms = p->
getDaug
(1)->
getP4
();
79
double
m_parent = p->
mass
();
80
EvtVector4R
p4_parent = momv+moms;
81
82
double
norm=massv/(momv.
d3mag
()*m_parent);
83
p4_parent = norm*p4_parent;
84
vertex
(0,p4_parent*(
v
->epsParent(0)));
85
vertex
(1,p4_parent*(
v
->epsParent(1)));
86
vertex
(2,p4_parent*(
v
->epsParent(2)));
87
88
return ;
89
}
90
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtReport.hh
EvtSVS.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
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::getP4
const EvtVector4R & getP4() const
Definition
EvtParticle.cc:120
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition
EvtParticle.cc:84
EvtParticle::mass
double mass() const
Definition
EvtParticle.cc:126
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition
EvtParticle.cc:1070
EvtSVS::clone
EvtDecayBase * clone()
Definition
EvtSVS.cc:40
EvtSVS::getName
void getName(std::string &name)
Definition
EvtSVS.cc:33
EvtSVS::EvtSVS
EvtSVS()
Definition
EvtSVS.hh:34
EvtSVS::initProbMax
void initProbMax()
Definition
EvtSVS.cc:62
EvtSVS::~EvtSVS
virtual ~EvtSVS()
Definition
EvtSVS.cc:31
EvtSVS::init
void init()
Definition
EvtSVS.cc:46
EvtSVS::decay
void decay(EvtParticle *p)
Definition
EvtSVS.cc:68
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:31
EvtSpinType::VECTOR
@ VECTOR
Definition
EvtSpinType.hh:31
EvtVector4R
Definition
EvtVector4R.hh:29
EvtVector4R::d3mag
double d3mag() const
Definition
EvtVector4R.cc:186
7.1.2
Generator
BesEvtGen
BesEvtGen-00-04-30
src
EvtGen
EvtGenModels
EvtSVS.cc
Generated by
1.12.0