BOSS
7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPi0Dalitz.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: EvtPi0Dalitz.cc
12
//
13
// Description: pi0 -> e+ e- gamma
14
//
15
// Modification history:
16
//
17
// DJL/RYD June 30, 1998 Module created
18
//
19
//------------------------------------------------------------------------
20
//
21
#include "
EvtGenBase/EvtPatches.hh
"
22
#include <stdlib.h>
23
#include <fstream>
24
#include <stdio.h>
25
#include <string>
26
#include "
EvtGenBase/EvtGenKine.hh
"
27
#include "
EvtGenBase/EvtParticle.hh
"
28
#include "
EvtGenBase/EvtPDL.hh
"
29
#include "
EvtGenBase/EvtReport.hh
"
30
#include "
EvtGenModels/EvtPi0Dalitz.hh
"
31
#include "
EvtGenBase/EvtVector4C.hh
"
32
#include "
EvtGenBase/EvtDiracSpinor.hh
"
33
#include "
EvtGenBase/EvtVector4C.hh
"
34
#include "
EvtGenBase/EvtTensor4C.hh
"
35
using
std::fstream;
36
37
EvtPi0Dalitz::~EvtPi0Dalitz
() {}
38
39
void
EvtPi0Dalitz::getName
(std::string& model_name){
40
41
model_name=
"PI0_DALITZ"
;
42
43
}
44
45
EvtDecayBase
*
EvtPi0Dalitz::clone
(){
46
47
return
new
EvtPi0Dalitz
;
48
49
}
50
51
52
void
EvtPi0Dalitz::initProbMax
(){
53
54
setProbMax
(3.5);
55
56
}
57
58
59
void
EvtPi0Dalitz::init
(){
60
61
// check that there are 0 arguments
62
checkNArg
(0);
63
checkNDaug
(3);
64
65
66
checkSpinParent
(
EvtSpinType::SCALAR
);
67
68
checkSpinDaughter
(0,
EvtSpinType::DIRAC
);
69
checkSpinDaughter
(1,
EvtSpinType::DIRAC
);
70
checkSpinDaughter
(2,
EvtSpinType::PHOTON
);
71
72
}
73
74
75
void
EvtPi0Dalitz::decay
(
EvtParticle
*p){
76
77
EvtParticle
*ep, *em, *gamma;
78
setWeight
(p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
(),0.00000002,0,1));
79
80
ep=p->
getDaug
(0);
81
em=p->
getDaug
(1);
82
gamma=p->
getDaug
(2);
83
84
// the next four lines generates events with a weight such that
85
// the efficiency for selecting them is good. The parameter below of
86
// 0.1 is the size of the peak at low q^2 (in arbitrary units).
87
// The value of 0.1 is appropriate for muons.
88
// when you use this remember to remove the cut on q^2!
89
90
91
//ep em invariant mass^2
92
double
m2=(ep->
getP4
()+em->
getP4
()).mass2();
93
EvtVector4R
q
=ep->
getP4
()+em->
getP4
();
94
//Just use the prob summed over spins...
95
96
EvtTensor4C
w
,
v
;
97
98
v
=2.0*(gamma->
getP4
()*
q
)*
directProd
(
q
,gamma->
getP4
())
99
- (gamma->
getP4
()*
q
)*(gamma->
getP4
()*
q
)*
EvtTensor4C::g
()
100
-m2*
directProd
(gamma->
getP4
(),gamma->
getP4
());
101
102
w
=4.0*(
directProd
(ep->
getP4
(),em->
getP4
()) +
directProd
(em->
getP4
(),ep->
getP4
())
103
-
EvtTensor4C::g
()*(ep->
getP4
()*em->
getP4
()-ep->
getP4
().
mass2
()));
104
105
double
prob=(
real
(
cont
(
v
,
w
)))/(m2*m2);
106
prob *=(1.0/( (0.768*0.768-m2)*(0.768*0.768-m2)
107
+0.768*0.768*0.151*0.151));
108
109
// report(INFO,"EvtGen") << "prob is "<<prob<<endl;
110
setProb
(prob);
111
112
return
;
113
}
114
115
real
float real
Definition:
Eepipi/Eepipi-00-00-06/src/ee2eepp/basesv5.1/f2c.h:13
directProd
Evt3Rank3C directProd(const EvtVector3C &c1, const EvtVector3C &c2, const EvtVector3C &c3)
EvtDiracSpinor.hh
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
w
double w
Definition:
EvtPhokharaDef.hh:26
EvtPi0Dalitz.hh
EvtReport.hh
cont
EvtComplex cont(const EvtTensor4C &t1, const EvtTensor4C &t2)
Definition:
EvtTensor4C.cc:312
EvtTensor4C.hh
EvtVector4C.hh
q
****INTEGER imax DOUBLE PRECISION m_pi *DOUBLE PRECISION m_amfin DOUBLE PRECISION m_Chfin DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_sinw2 DOUBLE PRECISION m_GFermi DOUBLE PRECISION m_MfinMin DOUBLE PRECISION m_ta2 INTEGER m_out INTEGER m_KeyFSR INTEGER m_KeyQCD *COMMON c_Semalib $ !copy of input $ !CMS energy $ !beam mass $ !final mass $ !beam charge $ !final charge $ !smallest final mass $ !Z mass $ !Z width $ !EW mixing angle $ !Gmu Fermi $ alphaQED at q
Definition:
KKsem.h:33
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
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
EvtDecayProb::setProb
void setProb(double prob)
Definition:
EvtDecayProb.hh:34
EvtDecayProb::setWeight
void setWeight(double weight)
Definition:
EvtDecayProb.hh:36
EvtParticle
Definition:
EvtParticle.hh:42
EvtParticle::getP4
const EvtVector4R & getP4() const
Definition:
EvtParticle.cc:121
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition:
EvtParticle.cc:85
EvtParticle::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition:
EvtParticle.cc:1071
EvtPi0Dalitz::init
void init()
Definition:
EvtPi0Dalitz.cc:59
EvtPi0Dalitz::EvtPi0Dalitz
EvtPi0Dalitz()
Definition:
EvtPi0Dalitz.hh:32
EvtPi0Dalitz::decay
void decay(EvtParticle *p)
Definition:
EvtPi0Dalitz.cc:75
EvtPi0Dalitz::initProbMax
void initProbMax()
Definition:
EvtPi0Dalitz.cc:52
EvtPi0Dalitz::getName
void getName(std::string &name)
Definition:
EvtPi0Dalitz.cc:39
EvtPi0Dalitz::~EvtPi0Dalitz
virtual ~EvtPi0Dalitz()
Definition:
EvtPi0Dalitz.cc:37
EvtPi0Dalitz::clone
EvtDecayBase * clone()
Definition:
EvtPi0Dalitz.cc:45
EvtSpinType::SCALAR
@ SCALAR
Definition:
EvtSpinType.hh:31
EvtSpinType::DIRAC
@ DIRAC
Definition:
EvtSpinType.hh:31
EvtSpinType::PHOTON
@ PHOTON
Definition:
EvtSpinType.hh:31
EvtTensor4C
Definition:
EvtTensor4C.hh:52
EvtTensor4C::g
static const EvtTensor4C & g()
Definition:
EvtTensor4C.cc:47
EvtVector4R
Definition:
EvtVector4R.hh:29
EvtVector4R::mass2
double mass2() const
Definition:
EvtVector4R.hh:116
source
Generator
BesEvtGen
BesEvtGen-00-03-98
src
EvtGen
EvtGenModels
EvtPi0Dalitz.cc
Generated by
1.9.6