BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtD0ToKpipipi Class Reference

#include <EvtD0ToKpipipi.hh>

+ Inheritance diagram for EvtD0ToKpipipi:

Public Member Functions

 EvtD0ToKpipipi ()
 
virtual ~EvtD0ToKpipipi ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void init ()
 
void initProbMax ()
 
void decay (EvtParticle *p)
 
- Public Member Functions inherited from EvtDecayProb
void makeDecay (EvtParticle *p)
 
void setProb (double prob)
 
double getProb ()
 
void setWeight (double weight)
 
virtual ~EvtDecayProb ()
 
- Public Member Functions inherited from EvtDecayBase
virtual void getName (std::string &name)=0
 
virtual void decay (EvtParticle *p)=0
 
virtual void makeDecay (EvtParticle *p)=0
 
virtual EvtDecayBaseclone ()=0
 
virtual void init ()
 
virtual void initProbMax ()
 
virtual std::string commandName ()
 
virtual void command (std::string cmd)
 
double getProbMax (double prob)
 
double resetProbMax (double prob)
 
 EvtDecayBase ()
 
virtual ~EvtDecayBase ()
 
virtual bool matchingDecay (const EvtDecayBase &other) const
 
EvtId getParentId ()
 
double getBranchingFraction ()
 
void disableCheckQ ()
 
void checkQ ()
 
int getNDaug ()
 
EvtIdgetDaugs ()
 
EvtId getDaug (int i)
 
int getNArg ()
 
int getPHOTOS ()
 
void setPHOTOS ()
 
void setVerbose ()
 
void setSummary ()
 
double * getArgs ()
 
std::string * getArgsStr ()
 
double getArg (int j)
 
std::string getArgStr (int j)
 
std::string getModelName ()
 
int getDSum ()
 
int summary ()
 
int verbose ()
 
void saveDecayInfo (EvtId ipar, int ndaug, EvtId *daug, int narg, std::vector< std::string > &args, std::string name, double brfr)
 
void printSummary ()
 
void setProbMax (double prbmx)
 
void noProbMax ()
 
void checkNArg (int a1, int a2=-1, int a3=-1, int a4=-1)
 
void checkNDaug (int d1, int d2=-1)
 
void checkSpinParent (EvtSpinType::spintype sp)
 
void checkSpinDaughter (int d1, EvtSpinType::spintype sp)
 
virtual int nRealDaughters ()
 

Additional Inherited Members

- Static Public Member Functions inherited from EvtDecayBase
static void findMasses (EvtParticle *p, int ndaugs, EvtId daugs[10], double masses[10])
 
static void findMass (EvtParticle *p)
 
static double findMaxMass (EvtParticle *p)
 
- Protected Member Functions inherited from EvtDecayBase
bool daugsDecayedByParentModel ()
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Definition at line 8 of file EvtD0ToKpipipi.hh.

Constructor & Destructor Documentation

◆ EvtD0ToKpipipi()

EvtD0ToKpipipi::EvtD0ToKpipipi ( )
inline

Definition at line 12 of file EvtD0ToKpipipi.hh.

12{}

Referenced by clone().

◆ ~EvtD0ToKpipipi()

EvtD0ToKpipipi::~EvtD0ToKpipipi ( )
virtual

Definition at line 30 of file EvtD0ToKpipipi.cc.

30{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtD0ToKpipipi::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtD0ToKpipipi.cc.

36 {
37 return new EvtD0ToKpipipi;
38}

◆ decay()

void EvtD0ToKpipipi::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 168 of file EvtD0ToKpipipi.cc.

168 {
169/*
170 double maxprob = 0.0;
171 for(int ir=0;ir<=60000000;ir++){
172 p->initializePhaseSpace(getNDaug(),getDaugs());
173 EvtVector4R Km0 = p->getDaug(0)->getP4();
174 EvtVector4R pi1 = p->getDaug(1)->getP4();
175 EvtVector4R pi2 = p->getDaug(2)->getP4();
176 EvtVector4R pi3 = p->getDaug(3)->getP4();
177 double Km[4],Pip1[4],Pip2[4],Pim[4];
178 Km[0] = Km0.get(0); Pip1[0] = pi1.get(0); Pip2[0] = pi2.get(0); Pim[0] = pi3.get(0);
179 Km[1] = Km0.get(1); Pip1[1] = pi1.get(1); Pip2[1] = pi2.get(1); Pim[1] = pi3.get(1);
180 Km[2] = Km0.get(2); Pip1[2] = pi1.get(2); Pip2[2] = pi2.get(2); Pim[2] = pi3.get(2);
181 Km[3] = Km0.get(3); Pip1[3] = pi1.get(3); Pip2[3] = pi2.get(3); Pim[3] = pi3.get(3);
182 double Prob = calPDF(Km, Pip1, Pip2, Pim);
183 if(Prob>maxprob) {
184 maxprob=Prob;
185 std::cout << "Max PDF = " << ir << " prob= " << Prob << std::endl;
186 }
187 }
188 std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
189*/
191 EvtVector4R Km0 = p->getDaug(0)->getP4();
192 EvtVector4R pi1 = p->getDaug(1)->getP4();
193 EvtVector4R pi2 = p->getDaug(2)->getP4();
194 EvtVector4R pi3 = p->getDaug(3)->getP4();
195
196 double Km[4],Pip1[4],Pip2[4],Pim[4];
197 Km[0] = Km0.get(0); Pip1[0] = pi1.get(0); Pip2[0] = pi2.get(0); Pim[0] = pi3.get(0);
198 Km[1] = Km0.get(1); Pip1[1] = pi1.get(1); Pip2[1] = pi2.get(1); Pim[1] = pi3.get(1);
199 Km[2] = Km0.get(2); Pip1[2] = pi1.get(2); Pip2[2] = pi2.get(2); Pim[2] = pi3.get(2);
200 Km[3] = Km0.get(3); Pip1[3] = pi1.get(3); Pip2[3] = pi2.get(3); Pim[3] = pi3.get(3);
201 double prob = calPDF(Km, Pip1, Pip2, Pim);
202 setProb(prob);
203 return;
204}
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
void setProb(double prob)
Definition: EvtDecayProb.hh:34
const EvtVector4R & getP4() const
Definition: EvtParticle.cc:121
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
double get(int i) const
Definition: EvtVector4R.hh:179

◆ getName()

void EvtD0ToKpipipi::getName ( std::string &  name)
virtual

Implements EvtDecayBase.

Definition at line 32 of file EvtD0ToKpipipi.cc.

32 {
33 model_name="D0ToKpipipi";
34}

◆ init()

void EvtD0ToKpipipi::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 40 of file EvtD0ToKpipipi.cc.

40 {
41 checkNArg(0);
42 checkNDaug(4);
44/*
45 checkSpinDaughter(0,EvtSpinType::SCALAR);
46 checkSpinDaughter(1,EvtSpinType::SCALAR);
47 checkSpinDaughter(3,EvtSpinType::SCALAR);
48 checkSpinDaughter(4,EvtSpinType::SCALAR);
49*/
50 std::cout << "EvtD0ToKpipipi ==> Initialization !" << std::endl;
51
52 width[0] = 0.09;
53 width[1] = 0.044183653178315;
54 width[2] = 0.541879469380012;
55 width[3] = 0.148423336450619;
56 mass[0] = 1.272;
57 mass[1] = 0.894781734682169;
58 mass[2] = 1.3622013558915;
59 mass[3] = 0.779143408171384;
60
61 phi[0] = 2.34794687054858;
62 rho[0] = 0.0759345115620669;
63 phi[1] = -2.24641399153466;
64 rho[1] = 0.0383327604903577;
65 phi[2] = 2.48955684856045;
66 rho[2] = 0.0931445480476023;
67
68 phi[3] = 0;
69 rho[3] = 1;
70
71 phi[4] = -2.10558220063012;
72 rho[4] = 0.347041869435286;
73 phi[5] = 1.47445088061872;
74 phi[6] = 3.00243265559304;
75 rho[5] = 0.00965088341753795;
76 rho[6] = 0.120536507325731;
77 phi[7] = -2.45477499325158;
78 rho[7] = 0.101419048440676;
79 phi[8] = -1.35809992343491;
80 rho[8] = 4.28149643321317;
81 phi[9] = -2.45149221243198;
82 rho[9] = 0.339492272598394;
83 phi[10] = -0.17419389225461;
84 rho[10] = -0.143619437541254;
85
86 phi[11] = -2.08744386934208;
87 rho[11] = 0.296286583716349;
88 phi[12] = 0.;
89 rho[12] = 0.;
90 phi[13] = -0.432190571560873;
91 rho[13] = 0.657344690733276;
92 phi[14] = -1.39790294886865;
93 rho[14] = 1.71208007006123;
94 phi[15] = 1.58945300476228;
95 rho[15] = 3.58248347683687;
96 phi[16] = 2.58249107256307;
97 rho[16] = -1.10728829503506;
98 phi[17] = -0.163623135170955;
99 rho[17] = 1.70863070178363;
100 phi[18] = -0.134699023080211;
101 rho[18] = 0.567531283682344;
102 phi[19] = -2.12670610368279;
103 rho[19] = 0.276571752504914;
104 phi[20] = -1.3352622107357;
105 rho[20] = 0.416634203151278;
106
107 phi[21] = -2.91571684221842;
108 rho[21] = 0.423062298489176;
109 phi[22] = 2.4544220004327;
110 rho[22] = 1.4017194038459;
111 phi[23] = -2.23388390670423;
112 rho[23] = 4.11110400629068;
113
114 for (int i=0; i<24; i++) {
115 cout << i << "rho,phi = " << rho[i] << ", "<< phi[i] << endl;
116 }
117
118 mD = 1.86486;
119 rRes = 3.0;
120 rD = 5.0;
121 metap = 0.95778;
122 mkstr = 0.89594;
123 mk0 = 0.497614;
124 mass_Kaon = 0.49368;
125 mass_Pion = 0.13957;
126 mass_Pi0 = 0.1349766;
127 math_pi = 3.1415926;
128
129 pi = 3.1415926;
130 mpi = 0.13957;
131 g1 = 0.5468;
132 g2 = 0.23;
133
134 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
135 int EE[4][4][4][4] =
136 { { {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
137 {{0,0,0,0}, {0,0,0,0}, {0,0,0,1}, {0,0,-1,0}},
138 {{0,0,0,0}, {0,0,0,-1}, {0,0,0,0}, {0,1,0,0} },
139 {{0,0,0,0}, {0,0,1,0}, {0,-1,0,0}, {0,0,0,0} } },
140 { {{0,0,0,0}, {0,0,0,0}, {0,0,0,-1}, {0,0,1,0} },
141 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
142 {{0,0,0,1}, {0,0,0,0}, {0,0,0,0}, {-1,0,0,0}},
143 {{0,0,-1,0}, {0,0,0,0}, {1,0,0,0}, {0,0,0,0} } },
144 { {{0,0,0,0}, {0,0,0,1}, {0,0,0,0}, {0,-1,0,0}},
145 {{0,0,0,-1}, {0,0,0,0}, {0,0,0,0}, {1,0,0,0} },
146 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
147 {{0,1,0,0}, {-1,0,0,0}, {0,0,0,0}, {0,0,0,0} } },
148 { {{0,0,0,0}, {0,0,-1,0}, {0,1,0,0}, {0,0,0,0} },
149 {{0,0,1,0}, {0,0,0,0}, {-1,0,0,0}, {0,0,0,0} },
150 {{0,-1,0,0}, {1,0,0,0}, {0,0,0,0}, {0,0,0,0} },
151 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} } } };
152 for (int i=0; i<4; i++) {
153 for (int j=0; j<4; j++) {
154 G[i][j] = GG[i][j];
155 for (int k=0; k<4; k++) {
156 for (int l=0; l<4; l++) {
157 E[i][j][k][l] = EE[i][j][k][l];
158 }
159 }
160 }
161 }
162}
void checkSpinParent(EvtSpinType::spintype sp)
void checkNDaug(int d1, int d2=-1)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)

◆ initProbMax()

void EvtD0ToKpipipi::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 164 of file EvtD0ToKpipipi.cc.

164 {
165 setProbMax(720.0);
166}
void setProbMax(double prbmx)

The documentation for this class was generated from the following files: