CGEM BOSS
6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtVVP.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: EvtVVP.cc
12
//
13
// Description: The decay Vector -> Vector gamma
14
// E.g., CHI1->PSI GAMMA
15
//
16
// Modification history:
17
//
18
// RYD September 5, 1997 Module created
19
//
20
//------------------------------------------------------------------------
21
//
22
#include "
EvtGenBase/EvtPatches.hh
"
23
#include <stdlib.h>
24
#include <iostream>
25
#include <string>
26
#include "
EvtGenBase/EvtVector3C.hh
"
27
#include "
EvtGenBase/EvtParticle.hh
"
28
#include "
EvtGenBase/EvtPDL.hh
"
29
#include "
EvtGenBase/EvtGenKine.hh
"
30
#include "
EvtGenBase/EvtVector4C.hh
"
31
#include "
EvtGenModels/EvtVVP.hh
"
32
#include "
EvtGenBase/EvtReport.hh
"
33
34
EvtVVP::~EvtVVP
() {}
35
36
void
EvtVVP::getName
(std::string& model_name){
37
38
model_name=
"VVP"
;
39
40
}
41
42
43
EvtDecayBase
*
EvtVVP::clone
(){
44
45
return
new
EvtVVP
;
46
47
}
48
49
void
EvtVVP::init
(){
50
51
// check that there are 8 arguments
52
53
checkNArg
(8);
54
checkNDaug
(2);
55
56
checkSpinParent
(
EvtSpinType::VECTOR
);
57
checkSpinDaughter
(0,
EvtSpinType::VECTOR
);
58
checkSpinDaughter
(1,
EvtSpinType::PHOTON
);
59
}
60
61
void
EvtVVP::initProbMax
(){
62
63
setProbMax
(4.0);
64
65
}
66
67
void
EvtVVP::decay
(
EvtParticle
*p){
68
69
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
());
70
71
EvtParticle
*
v
,*ph;
72
73
v
= p->
getDaug
(0);
74
ph = p->
getDaug
(1);
75
76
EvtVector3C
epsp[3];
77
EvtVector3C
epsv[3];
78
EvtVector3C
epsph[2];
79
80
epsp[0]=p->
eps
(0).
vec
();
81
epsp[1]=p->
eps
(1).
vec
();
82
epsp[2]=p->
eps
(2).
vec
();
83
84
epsv[0]=
v
->eps(0).vec().conj();
85
epsv[1]=
v
->eps(1).vec().conj();
86
epsv[2]=
v
->eps(2).vec().conj();
87
88
epsph[0]=ph->
epsParentPhoton
(0).
vec
().
conj
();
89
epsph[1]=ph->
epsParentPhoton
(1).
vec
().
conj
();
90
91
int
i,j,k;
92
for
(i=0;i<3;i++){
93
for
(j=0;j<3;j++){
94
for
(k=0;k<2;k++){
95
vertex
(i,j,k,epsp[i].
cross
(epsv[j])*epsph[k]);
96
97
}
98
}
99
}
100
101
return
;
102
103
}
104
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtReport.hh
EvtVVP.hh
EvtVector3C.hh
cross
EvtVector3R cross(const EvtVector3R &p1, const EvtVector3R &p2)
Definition:
EvtVector3R.cc:84
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::epsParentPhoton
virtual EvtVector4C epsParentPhoton(int i)
Definition:
EvtParticle.cc:585
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition:
EvtParticle.cc:85
EvtParticle::eps
virtual EvtVector4C eps(int i) const
Definition:
EvtParticle.cc:574
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition:
EvtParticle.cc:1069
EvtSpinType::PHOTON
@ PHOTON
Definition:
EvtSpinType.hh:31
EvtSpinType::VECTOR
@ VECTOR
Definition:
EvtSpinType.hh:31
EvtVVP::EvtVVP
EvtVVP()
Definition:
EvtVVP.hh:32
EvtVVP::~EvtVVP
virtual ~EvtVVP()
Definition:
EvtVVP.cc:34
EvtVVP::clone
EvtDecayBase * clone()
Definition:
EvtVVP.cc:43
EvtVVP::initProbMax
void initProbMax()
Definition:
EvtVVP.cc:61
EvtVVP::decay
void decay(EvtParticle *p)
Definition:
EvtVVP.cc:67
EvtVVP::getName
void getName(std::string &name)
Definition:
EvtVVP.cc:36
EvtVVP::init
void init()
Definition:
EvtVVP.cc:49
EvtVector3C
Definition:
EvtVector3C.hh:29
EvtVector3C::conj
EvtVector3C conj() const
Definition:
EvtVector3C.hh:171
EvtVector4C::vec
EvtVector3C vec() const
Definition:
EvtVector4C.hh:114
source
Generator
BesEvtGen
BesEvtGen-00-01-96-slc6tag
src
EvtGen
EvtGenModels
EvtVVP.cc
Generated by
1.9.6