BOSS 7.1.2
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 38 of file EvtDsToKSKpi0.cc.

38 {
39 return new EvtDsToKSKpi0;
40}

◆ decay()

void EvtDsToKSKpi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 128 of file EvtDsToKSKpi0.cc.

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

◆ init()

void EvtDsToKSKpi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 42 of file EvtDsToKSKpi0.cc.

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

124 {
125 setProbMax(1871.0);
126}
void setProbMax(double prbmx)

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