BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtEtap2pipieta.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
//
3
// Environment:
4
// This software is part of models developed at BES collaboration
5
// based on the EvtGen framework. If you use all or part
6
// of it, please give an appropriate acknowledgement.
7
//
8
// Copyright Information: See EvtGen/BesCopyright
9
// Copyright (A) 2006 Ping Rong-Gang @IHEP
10
//
11
// Module: EvtEtap2pipieta.cc
12
//
13
// Description: etaprime -> pi+pi- eta
14
// see PHYSICAL REVIEW D 97, 012003 (2018)
15
//
16
// Modification history:
17
// Jun 03 00:42:10 2024 Liaoyuan Dong Module created
18
//------------------------------------------------------------------------
19
20
#include "
EvtEtap2pipieta.hh
"
21
#include "
../EvtGenBase/EvtGenKine.hh
"
22
#include "
../EvtGenBase/EvtPDL.hh
"
23
#include "
../EvtGenBase/EvtParticle.hh
"
24
#include "
../EvtGenBase/EvtPatches.hh
"
25
#include "
../EvtGenBase/EvtReport.hh
"
26
#include "
../EvtGenBase/EvtVector4R.hh
"
27
#include <stdlib.h>
28
#include <string>
29
using namespace
std
;
//::endl;
30
31
EvtEtap2pipieta::~EvtEtap2pipieta
() {}
32
33
void
EvtEtap2pipieta::getName
( std::string& model_name ) { model_name =
"Etap2pipieta"
; }
34
35
EvtDecayBase
*
EvtEtap2pipieta::clone
() {
return
new
EvtEtap2pipieta
; }
36
37
void
EvtEtap2pipieta::init
() {
38
checkNDaug
( 3 );
39
checkSpinParent
(
EvtSpinType::SCALAR
);
40
EvtSpinType::spintype
parenttype =
EvtPDL::getSpinType
(
getParentId
() );
41
m_MetaOverMpip = 0.547862 / 0.13957018;
// m_Meta/m_Mpi
42
m_sqrt3 = sqrt( 3.0 );
43
par[0] = -0.127;
44
par[1] = -0.106;
45
par[2] = 1.5e-03;
46
par[3] = -0.082;
47
}
48
49
void
EvtEtap2pipieta::initProbMax
() {
setProbMax
( 1.03805 ); }
50
51
void
EvtEtap2pipieta::decay
(
EvtParticle
* p ) {
52
/*
53
double maxprob = 0.0;
54
for(int ir=0;ir<=60000000;ir++){
55
p->initializePhaseSpace(getNDaug(),getDaugs());
56
_pd[0]=p->getDaug(0)->getP4();
57
_pd[1]=p->getDaug(1)->getP4();
58
_pd[2]=p->getDaug(2)->getP4();
59
double Prob = AMPsq();
60
if(Prob>maxprob) {
61
maxprob=Prob;
62
std::cout << "Max PDF = " << ir << " prob= " << Prob << std::endl;
63
}
64
}
65
std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
66
*/
67
p->
initializePhaseSpace
(
getNDaug
(),
getDaugs
() );
68
_pd[0] = p->
getDaug
( 0 )->
getP4
();
69
_pd[1] = p->
getDaug
( 1 )->
getP4
();
70
_pd[2] = p->
getDaug
( 2 )->
getP4
();
71
double
prob = AMPsq();
72
setProb
( prob );
73
return
;
74
}
75
76
double
EvtEtap2pipieta::AMPsq() {
77
EvtVector4R
petap = _pd[0] + _pd[1] + _pd[2];
78
EvtVector4R
Betap( petap.
get
( 0 ), -1.0 * petap.
get
( 1 ), -1.0 * petap.
get
( 2 ),
79
-1.0 * petap.
get
( 3 ) );
80
81
EvtVector4R
pip_etapcms =
boostTo
( _pd[0], Betap );
82
EvtVector4R
pim_etapcms =
boostTo
( _pd[1], Betap );
83
EvtVector4R
eta_etapcms =
boostTo
( _pd[2], Betap );
84
85
double
Q = Betap.mass() - pip_etapcms.
mass
() - pim_etapcms.
mass
() - eta_etapcms.
mass
();
86
87
double
Tp = pip_etapcms.
get
( 0 ) - pip_etapcms.
mass
();
88
double
Tm = pim_etapcms.
get
( 0 ) - pim_etapcms.
mass
();
89
double
Te = eta_etapcms.
get
( 0 ) - eta_etapcms.
mass
();
90
91
double
X = m_sqrt3 * ( Tp - Tm ) / Q;
92
double
Y = ( 2.0 + m_MetaOverMpip ) * Te / Q - 1.0;
93
94
double
amp2 = 1.0 + par[0] * Y + par[1] * Y * Y + par[2] * X + par[3] * X * X;
95
return
amp2;
96
}
boostTo
EvtDiracSpinor boostTo(const EvtDiracSpinor &sp, const EvtVector4R p4)
Definition
EvtDiracSpinor.cc:67
EvtEtap2pipieta.hh
EvtGenKine.hh
EvtPDL.hh
EvtParticle.hh
EvtPatches.hh
EvtReport.hh
EvtVector4R.hh
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::getParentId
EvtId getParentId()
Definition
EvtDecayBase.hh:63
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
EvtDecayProb::setProb
void setProb(double prob)
Definition
EvtDecayProb.hh:40
EvtEtap2pipieta::EvtEtap2pipieta
EvtEtap2pipieta()
Definition
EvtEtap2pipieta.hh:11
EvtEtap2pipieta::~EvtEtap2pipieta
virtual ~EvtEtap2pipieta()
Definition
EvtEtap2pipieta.cc:31
EvtEtap2pipieta::getName
void getName(std::string &name)
Definition
EvtEtap2pipieta.cc:33
EvtEtap2pipieta::initProbMax
void initProbMax()
Definition
EvtEtap2pipieta.cc:49
EvtEtap2pipieta::clone
EvtDecayBase * clone()
Definition
EvtEtap2pipieta.cc:35
EvtEtap2pipieta::init
void init()
Definition
EvtEtap2pipieta.cc:37
EvtEtap2pipieta::decay
void decay(EvtParticle *p)
Definition
EvtEtap2pipieta.cc:51
EvtPDL::getSpinType
static EvtSpinType::spintype getSpinType(EvtId i)
Definition
EvtPDL.hh:66
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
EvtSpinType::spintype
spintype
Definition
EvtSpinType.hh:30
EvtSpinType::SCALAR
@ SCALAR
Definition
EvtSpinType.hh:31
EvtVector4R
Definition
EvtVector4R.hh:29
EvtVector4R::mass
double mass() const
Definition
EvtVector4R.cc:40
EvtVector4R::get
double get(int i) const
Definition
EvtVector4R.hh:171
std
Definition
x86_64-el9-gcc13-dbg/Event/RootEventData/RootEventDataDict.cxx:101
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtEtap2pipieta.cc
Generated by
1.16.1