BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDsToKSKpi0 Class Reference

#include <EvtDsToKSKpi0.hh>

Inheritance diagram for EvtDsToKSKpi0:

Public Member Functions

 EvtDsToKSKpi0 ()
virtual ~EvtDsToKSKpi0 ()
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 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 9 of file EvtDsToKSKpi0.hh.

Constructor & Destructor Documentation

◆ EvtDsToKSKpi0()

EvtDsToKSKpi0::EvtDsToKSKpi0 ( )
inline

Definition at line 12 of file EvtDsToKSKpi0.hh.

12{}

Referenced by clone().

◆ ~EvtDsToKSKpi0()

EvtDsToKSKpi0::~EvtDsToKSKpi0 ( )
virtual

Definition at line 32 of file EvtDsToKSKpi0.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDsToKSKpi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtDsToKSKpi0.cc.

36{ return new EvtDsToKSKpi0; }

◆ decay()

void EvtDsToKSKpi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 121 of file EvtDsToKSKpi0.cc.

121 {
122 /*
123 double maxprob = 0.0;
124 for(int ir=0;ir<=60000000;ir++){
125 p->initializePhaseSpace(getNDaug(),getDaugs());
126 EvtVector4R D1 = p->getDaug(0)->getP4();
127 EvtVector4R D2 = p->getDaug(1)->getP4();
128 EvtVector4R D3 = p->getDaug(2)->getP4();
129
130 double P1[4], P2[4], P3[4];
131 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
132 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
133 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
134
135 double value;
136 //value = calDalEva(P1, P2, P3);
137 int g0[6]={1,1,1,1,1,1};
138 int spin[6]={0,1,1,1,1,0};
139
140 int nstates=6;
141 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
142 if (value<0) continue;
143 if(value>maxprob) {
144 maxprob=value;
145 cout << "ir= " << ir << endl;
146 cout << "double P1[4] = {" << P1[0] <<","<< P1[1] <<","<< P1[2] <<","<< P1[3]
147 <<"};"<<" "<< sqrt(P1[0]*P1[0]-P1[1]*P1[1]-P1[2]*P1[2]-P1[3]*P1[3]) <<endl; cout <<
148 "double P2[4] = {" << P2[0] <<","<< P2[1]
149 <<","<< P2[2] <<","<< P2[3] <<"};"<< " "<<
150 sqrt(P2[0]*P2[0]-P2[1]*P2[1]-P2[2]*P2[2]-P2[3]*P2[3]) <<endl; cout << "double P3[4] = {"
151 << P3[0] <<","<< P3[1] <<","<< P3[2] <<","<< P3[3] <<"};"<< " "<<
152 sqrt(P3[0]*P3[0]-P3[1]*P3[1]-P3[2]*P3[2]-P3[3]*P3[3]) <<endl; cout << "MAX====> " <<
153 maxprob << endl;
154
155
156 }
157
158 }
159 printf("MAXprob = %.10f\n",maxprob);
160 */
161
163 EvtVector4R D1 = p->getDaug( 0 )->getP4();
164 EvtVector4R D2 = p->getDaug( 1 )->getP4();
165 EvtVector4R D3 = p->getDaug( 2 )->getP4();
166
167 double P1[4], P2[4], P3[4];
168 P1[0] = D1.get( 0 );
169 P1[1] = D1.get( 1 );
170 P1[2] = D1.get( 2 );
171 P1[3] = D1.get( 3 );
172 P2[0] = D2.get( 0 );
173 P2[1] = D2.get( 1 );
174 P2[2] = D2.get( 2 );
175 P2[3] = D2.get( 3 );
176 P3[0] = D3.get( 0 );
177 P3[1] = D3.get( 1 );
178 P3[2] = D3.get( 2 );
179 P3[3] = D3.get( 3 );
180
181 // P1[0] = 0.619505234038183; P1[1] = -0.091552038742807; P1[2] = -0.326369642554372; P1[3]
182 // = 0.145835944211028; P2[0] = 0.537869938150145; P2[1] = 0.060139034763020; P2[2] =
183 // -0.082936309719630; P2[3] = -0.187328468377079; P3[0] = 0.875173341522316; P3[1] =
184 // 0.176856301894967; P3[2] = 0.816309543635941; P3[3] = -0.223764071089403;
185 // P1[0] = 0.958942320949657; P1[1] =-0.130886193017869 ; P1[2] = 0.458368295934040; P1[3] =
186 // -0.666871795529042; P2[0] = 0.840895041827643; P2[1] = -0.279686661949455; P2[2] =
187 // -0.173310031669695; P2[3] = 0.595924907258905; P3[0] = 0.205192165542905 ; P3[1] =
188 // 0.148385551896119; P3[2] = -0.008476135905980; P3[3] = 0.042367724031334; P1[0] = ; P1[1]
189 // = ; P1[2] = ; P1[3] = ;
190 // P2[0] = ; P2[1] = ; P2[2] = ; P2[3] = ;
191 // P3[0] = ; P3[1] = ; P3[2] = ; P3[3] = ;
192 // P1[0] =0.61748841695829326248 ; P1[1] =-0.16431886625773378663 ; P1[2] =
193 // -0.015984626326897594106; P1[3] = -0.32623606810397931532; P2[0] =0.61165109530060246534 ;
194 // P2[1] = -0.16009556658150744801; P2[2] = -0.016518497076036600668; P2[3] =
195 // -0.32325478223947284873; P3[0] =0.73916048774110421071 ; P3[1] = 0.32441443283924120689;
196 // P3[2] = 0.032503123402934194774; P3[3] = 0.64949085034345221956;
197
198 double value;
199 int g0[6] = { 1, 1, 1, 1, 1, 1 };
200 int spin[6] = { 0, 1, 1, 1, 1, 0 };
201 int nstates = 6;
202 calEva( P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value );
203
204 setProb( value );
205
206 return;
207}
EvtId * getDaugs()
void setProb(double prob)
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
double get(int i) const

◆ getName()

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

Implements EvtDecayBase.

Definition at line 34 of file EvtDsToKSKpi0.cc.

34{ model_name = "DsToKSKpi0"; }

◆ init()

void EvtDsToKSKpi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 38 of file EvtDsToKSKpi0.cc.

38 {
39 // check that there are 0 arguments
40 checkNArg( 0 );
41 checkNDaug( 3 );
46
47 phi[0] = 0;
48 rho[0] = 0;
49 phi[1] = 0;
50 rho[1] = 1;
51 phi[2] = 0;
52 rho[2] = 0;
53 phi[3] = 0;
54 rho[3] = 0;
55 phi[4] = 0;
56 rho[4] = 0;
57 phi[5] = 0;
58 rho[5] = 0;
59 phi[0] = 5.2793e+00;
60 phi[2] = -6.4411e+00;
61 phi[3] = 2.2286e-01;
62 phi[5] = -2.5771e+00;
63
64 rho[0] = 8.5648e-01;
65 rho[2] = 6.7257e-01;
66 rho[3] = 1.8923e+00;
67 rho[5] = 2.3549e+00;
68
69 modetype[0] = 12;
70 modetype[1] = 13;
71 modetype[2] = 23;
72 modetype[3] = 13;
73 modetype[4] = 23;
74 modetype[5] = 12;
75
76 // cout << "DsToKSKpi0 :" << endl;
77 // for (int i=0; i<6; i++) {
78 // cout << i << " rho= " << rho[i] << " phi= " << phi[i] << endl;
79 // }
80
81 width[0] = 0.0732;
82 width[1] = 0.0473;
83 width[2] = 0.0503;
84 width[3] = 0.232;
85 width[4] = 0.1767;
86 width[5] = 0.0993;
87
88 mass[0] = 1.0007;
89 mass[1] = 0.89555;
90 mass[2] = 0.89176;
91 mass[3] = 1.414;
92 mass[4] = 1.600;
93 mass[5] = 1.8154;
94
95 mD = 1.86486;
96 mDs = 1.9683;
97 rRes = 9.0;
98 rD = 5.0;
99 metap = 0.95778;
100 mkstr = 0.89594;
101 mk0 = 0.497614;
102 mass_Kaon = 0.49368;
103 mass_Pion = 0.13957;
104 mass_Pi0 = 0.1349766;
105 math_pi = 3.1415926;
106
107 GS1 = 0.636619783;
108 GS2 = 0.01860182466;
109 GS3 = 0.1591549458; // 1/(2*math_2pi)
110 GS4 = 0.00620060822; // mass_Pion2/math_pi
111
112 int GG[4][4] = { { 1, 0, 0, 0 }, { 0, -1, 0, 0 }, { 0, 0, -1, 0 }, { 0, 0, 0, -1 } };
113 for ( int i = 0; i < 4; i++ )
114 {
115 for ( int j = 0; j < 4; j++ ) { G[i][j] = GG[i][j]; }
116 }
117}
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
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 EvtDsToKSKpi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 119 of file EvtDsToKSKpi0.cc.

119{ setProbMax( 1871.0 ); }
void setProbMax(double prbmx)

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