BOSS
8.0.0
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 "
EvtPi0Dalitz.hh
"
22
#include "
../EvtGenBase/EvtDiracSpinor.hh
"
23
#include "
../EvtGenBase/EvtGenKine.hh
"
24
#include "
../EvtGenBase/EvtPDL.hh
"
25
#include "
../EvtGenBase/EvtParticle.hh
"
26
#include "
../EvtGenBase/EvtPatches.hh
"
27
#include "
../EvtGenBase/EvtReport.hh
"
28
#include "
../EvtGenBase/EvtTensor4C.hh
"
29
#include "
../EvtGenBase/EvtVector4C.hh
"
30
#include <fstream>
31
#include <stdio.h>
32
#include <stdlib.h>
33
#include <string>
34
using
std::fstream;
35
36
EvtPi0Dalitz::~EvtPi0Dalitz
() {}
37
38
void
EvtPi0Dalitz::getName
( std::string& model_name ) { model_name =
"PI0_DALITZ"
; }
39
40
EvtDecayBase
*
EvtPi0Dalitz::clone
() {
return
new
EvtPi0Dalitz
; }
41
42
void
EvtPi0Dalitz::initProbMax
() {
setProbMax
( 3.5 ); }
43
44
void
EvtPi0Dalitz::init
() {
45
46
// check that there are 0 arguments
47
checkNArg
( 0 );
48
checkNDaug
( 3 );
49
50
checkSpinParent
(
EvtSpinType::SCALAR
);
51
52
checkSpinDaughter
( 0,
EvtSpinType::DIRAC
);
53
checkSpinDaughter
( 1,
EvtSpinType::DIRAC
);
54
checkSpinDaughter
( 2,
EvtSpinType::PHOTON
);
55
}
56
57
void
EvtPi0Dalitz::decay
(
EvtParticle
* p ) {
58
59
EvtParticle
*
ep
, *em, *gamma;
60
setWeight
( p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
(), 0.00000002, 0, 1 ) );
61
62
ep
= p->
getDaug
( 0 );
63
em = p->
getDaug
( 1 );
64
gamma = p->
getDaug
( 2 );
65
66
// the next four lines generates events with a weight such that
67
// the efficiency for selecting them is good. The parameter below of
68
// 0.1 is the size of the peak at low q^2 (in arbitrary units).
69
// The value of 0.1 is appropriate for muons.
70
// when you use this remember to remove the cut on q^2!
71
72
// ep em invariant mass^2
73
double
m2
= (
ep
->getP4() + em->
getP4
() ).mass2();
74
EvtVector4R
q
=
ep
->getP4() + em->
getP4
();
75
// Just use the prob summed over spins...
76
77
EvtTensor4C
w
,
v
;
78
79
v
= 2.0 * ( gamma->
getP4
() *
q
) *
directProd
(
q
, gamma->
getP4
() ) -
80
( gamma->
getP4
() *
q
) * ( gamma->
getP4
() *
q
) *
EvtTensor4C::g
() -
81
m2
*
directProd
( gamma->
getP4
(), gamma->
getP4
() );
82
83
w
= 4.0 * (
directProd
(
ep
->getP4(), em->
getP4
() ) +
directProd
( em->
getP4
(),
ep
->getP4() ) -
84
EvtTensor4C::g
() * (
ep
->getP4() * em->
getP4
() -
ep
->getP4().mass2() ) );
85
86
double
prob = (
real
(
cont
(
v
,
w
) ) ) / (
m2
*
m2
);
87
prob *= ( 1.0 / ( ( 0.768 * 0.768 -
m2
) * ( 0.768 * 0.768 -
m2
) +
88
0.768 * 0.768 * 0.151 * 0.151 ) );
89
90
// report(INFO,"EvtGen") << "prob is "<<prob<<endl;
91
setProb
( prob );
92
93
return
;
94
}
real
float real
Definition
Eepipi/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:28
EvtPi0Dalitz.hh
EvtReport.hh
cont
EvtComplex cont(const EvtTensor4C &t1, const EvtTensor4C &t2)
Definition
EvtTensor4C.cc:271
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::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
EvtDecayProb::setProb
void setProb(double prob)
Definition
EvtDecayProb.hh:40
EvtDecayProb::setWeight
void setWeight(double weight)
Definition
EvtDecayProb.hh:42
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::initializePhaseSpace
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
Definition
EvtParticle.cc:1042
EvtPi0Dalitz::init
void init()
Definition
EvtPi0Dalitz.cc:44
EvtPi0Dalitz::EvtPi0Dalitz
EvtPi0Dalitz()
Definition
EvtPi0Dalitz.hh:31
EvtPi0Dalitz::decay
void decay(EvtParticle *p)
Definition
EvtPi0Dalitz.cc:57
EvtPi0Dalitz::initProbMax
void initProbMax()
Definition
EvtPi0Dalitz.cc:42
EvtPi0Dalitz::getName
void getName(std::string &name)
Definition
EvtPi0Dalitz.cc:38
EvtPi0Dalitz::~EvtPi0Dalitz
virtual ~EvtPi0Dalitz()
Definition
EvtPi0Dalitz.cc:36
EvtPi0Dalitz::clone
EvtDecayBase * clone()
Definition
EvtPi0Dalitz.cc:40
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:31
EvtSpinType::DIRAC
@ DIRAC
Definition
EvtSpinType.hh:34
EvtSpinType::PHOTON
@ PHOTON
Definition
EvtSpinType.hh:35
EvtTensor4C
Definition
EvtTensor4C.hh:51
EvtTensor4C::g
static const EvtTensor4C & g()
Definition
EvtTensor4C.cc:43
EvtVector4R
Definition
EvtVector4R.hh:29
m2
double double * m2
Definition
qcdloop1.h:83
ep
double int * ep
Definition
qcdloop1.h:82
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtPi0Dalitz.cc
Generated by
1.16.1