BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtVSS.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: EvtVSS.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 "
EvtVSS.hh
"
22
#include "
../EvtGenBase/EvtGenKine.hh
"
23
#include "
../EvtGenBase/EvtPDL.hh
"
24
#include "
../EvtGenBase/EvtParticle.hh
"
25
#include "
../EvtGenBase/EvtPatches.hh
"
26
#include "
../EvtGenBase/EvtReport.hh
"
27
#include "
../EvtGenBase/EvtVector4C.hh
"
28
#include "
../EvtGenBase/EvtVector4R.hh
"
29
#include <stdlib.h>
30
#include <string>
31
32
EvtVSS::~EvtVSS
() {}
33
34
void
EvtVSS::getName
( std::string& model_name ) { model_name =
"VSS"
; }
35
36
EvtDecayBase
*
EvtVSS::clone
() {
return
new
EvtVSS
; }
37
38
void
EvtVSS::init
() {
39
40
// check that there are 0 arguments
41
checkNArg
( 0 );
42
43
// check that there are 2 daughters
44
checkNDaug
( 2 );
45
46
// check the parent and daughter spins
47
checkSpinParent
(
EvtSpinType::VECTOR
);
48
checkSpinDaughter
( 0,
EvtSpinType::SCALAR
);
49
checkSpinDaughter
( 1,
EvtSpinType::SCALAR
);
50
}
51
52
void
EvtVSS::initProbMax
() {
setProbMax
( 1.0 ); }
53
54
void
EvtVSS::decay
(
EvtParticle
* p ) {
55
56
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
57
58
EvtVector4R
pDaug = p->
getDaug
( 0 )->
getP4
();
59
60
double
norm = 1.0 / pDaug.
d3mag
();
61
62
for
(
int
i = 0; i < 3; i++ )
vertex
( i, norm * pDaug * ( p->
eps
( i ) ) );
63
64
return
;
65
}
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtReport.hh
EvtVSS.hh
EvtVector4C.hh
EvtVector4R.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::eps
virtual EvtVector4C eps(int i) const
Definition
EvtParticle.cc:592
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::VECTOR
@ VECTOR
Definition
EvtSpinType.hh:32
EvtVSS::initProbMax
void initProbMax()
Definition
EvtVSS.cc:52
EvtVSS::decay
void decay(EvtParticle *p)
Definition
EvtVSS.cc:54
EvtVSS::EvtVSS
EvtVSS()
Definition
EvtVSS.hh:31
EvtVSS::init
void init()
Definition
EvtVSS.cc:38
EvtVSS::~EvtVSS
virtual ~EvtVSS()
Definition
EvtVSS.cc:32
EvtVSS::getName
void getName(std::string &name)
Definition
EvtVSS.cc:34
EvtVSS::clone
EvtDecayBase * clone()
Definition
EvtVSS.cc:36
EvtVector4R
Definition
EvtVector4R.hh:29
EvtVector4R::d3mag
double d3mag() const
Definition
EvtVector4R.cc:168
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtVSS.cc
Generated by
1.16.1