BOSS 7.0.3
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//
23#include <stdlib.h>
24#include <iostream>
25#include <string>
28#include "EvtGenBase/EvtPDL.hh"
33
35
36void EvtVVP::getName(std::string& model_name){
37
38 model_name="VVP";
39
40}
41
42
44
45 return new EvtVVP;
46
47}
48
50
51 // check that there are 8 arguments
52
53 checkNArg(8);
54 checkNDaug(2);
55
59}
60
62
63 setProbMax(4.0);
64
65}
66
68
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
EvtVector3R cross(const EvtVector3R &p1, const EvtVector3R &p2)
Definition: EvtVector3R.cc:84
**********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
void vertex(const EvtComplex &amp)
Definition: EvtDecayAmp.hh:37
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
void setProbMax(double prbmx)
void checkNDaug(int d1, int d2=-1)
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
virtual EvtVector4C epsParentPhoton(int i)
Definition: EvtParticle.cc:587
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
virtual EvtVector4C eps(int i) const
Definition: EvtParticle.cc:576
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
EvtVVP()
Definition: EvtVVP.hh:32
virtual ~EvtVVP()
Definition: EvtVVP.cc:34
EvtDecayBase * clone()
Definition: EvtVVP.cc:43
void initProbMax()
Definition: EvtVVP.cc:61
void decay(EvtParticle *p)
Definition: EvtVVP.cc:67
void getName(std::string &name)
Definition: EvtVVP.cc:36
void init()
Definition: EvtVVP.cc:49
EvtVector3C conj() const
Definition: EvtVector3C.hh:171
EvtVector3C vec() const
Definition: EvtVector4C.hh:114