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

#include <EvtDsToKpipi.hh>

Inheritance diagram for EvtDsToKpipi:

Public Member Functions

 EvtDsToKpipi ()
virtual ~EvtDsToKpipi ()
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 EvtDsToKpipi.hh.

Constructor & Destructor Documentation

◆ EvtDsToKpipi()

EvtDsToKpipi::EvtDsToKpipi ( )
inline

Definition at line 12 of file EvtDsToKpipi.hh.

12{}

Referenced by clone().

◆ ~EvtDsToKpipi()

EvtDsToKpipi::~EvtDsToKpipi ( )
virtual

Definition at line 32 of file EvtDsToKpipi.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDsToKpipi::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtDsToKpipi.cc.

36{ return new EvtDsToKpipi; }

◆ decay()

void EvtDsToKpipi::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 148 of file EvtDsToKpipi.cc.

148 {
149 /*
150 double maxprob = 0.0;
151 for(int ir=0;ir<=60000000;ir++){
152 p->initializePhaseSpace(getNDaug(),getDaugs());
153 EvtVector4R D1 = p->getDaug(0)->getP4();
154 EvtVector4R D2 = p->getDaug(1)->getP4();
155 EvtVector4R D3 = p->getDaug(2)->getP4();
156
157 double P1[4], P2[4], P3[4];
158 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
159 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
160 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
161
162 double value;
163 int g0[8]={1,1,4,2,500,1,1,2};
164 int spin[8]={1,1,0,0,0,1,1,0};
165 int nstates=8;
166 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
167 if (value<0) continue;
168 if(value>maxprob) {
169 maxprob=value;
170 cout << "ir= " << ir << endl;
171 cout << "double P1[4] = {" << P1[0] <<","<< P1[1] <<","<< P1[2] <<","<< P1[3]
172 <<"};"<< endl; cout << "double P2[4] = {" << P2[0] <<","<< P2[1] <<","<< P2[2] <<","<<
173 P2[3] <<"};"<< endl; cout << "double P3[4] = {" << P3[0] <<","<< P3[1] <<","<< P3[2]
174 <<","<< P3[3] <<"};"<< endl; cout << "MAX====> " << maxprob << endl;
175 }
176 }
177 printf("MAXprob = %.10f\n",maxprob);
178 */
179
181 EvtVector4R D1 = p->getDaug( 0 )->getP4();
182 EvtVector4R D2 = p->getDaug( 1 )->getP4();
183 EvtVector4R D3 = p->getDaug( 2 )->getP4();
184
185 double P1[4], P2[4], P3[4];
186 P1[0] = D1.get( 0 );
187 P1[1] = D1.get( 1 );
188 P1[2] = D1.get( 2 );
189 P1[3] = D1.get( 3 );
190 P2[0] = D2.get( 0 );
191 P2[1] = D2.get( 1 );
192 P2[2] = D2.get( 2 );
193 P2[3] = D2.get( 3 );
194 P3[0] = D3.get( 0 );
195 P3[1] = D3.get( 1 );
196 P3[2] = D3.get( 2 );
197 P3[3] = D3.get( 3 );
198
199 // P1[0] =0.863405 ;P1[1] =-0.239724 ;P1[2] =-0.665631 ; P1[3] =-0.0349068 ;
200 // P2[0] =0.209097 ;P2[1] =0.0992859 ;P2[2] =-0.119905 ; P2[3] =-0.00262863 ;
201 // P3[0] =0.941396 ;P3[1] =-0.270638 ;P3[2] =0.890782 ; P3[3] = -0.00293441 ;
202
203 double value;
204 int g0[8] = { 1, 1, 4, 2, 500, 1, 1, 2 };
205 int spin[8] = { 1, 1, 0, 0, 0, 1, 1, 0 };
206 int nstates = 8;
207 calEva( P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value );
208
209 setProb( value );
210
211 return;
212}
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 EvtDsToKpipi::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 34 of file EvtDsToKpipi.cc.

34{ model_name = "DsToKpipi"; }

◆ init()

void EvtDsToKpipi::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 38 of file EvtDsToKpipi.cc.

38 {
39 // check that there are 0 arguments
40 checkNArg( 0 );
41 checkNDaug( 3 );
46
47 phi[0] = 0;
48 rho[0] = 1;
49 phi[1] = 0;
50 rho[1] = 0;
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[6] = 0;
60 rho[6] = 0;
61 phi[7] = 0;
62 rho[7] = 0;
63
64 phi[1] = -3.47995752;
65 phi[2] = -1.249864467;
66 phi[3] = -0.3067504308;
67 phi[4] = 0.9229242379;
68 phi[5] = -3.278567926;
69 phi[6] = -0.6346408622;
70 phi[7] = 1.762377475;
71
72 rho[1] = 2.463898984;
73 rho[2] = 0.7361782665;
74 rho[3] = 1.90216812;
75 rho[4] = 2.140687169;
76 rho[5] = 0.914684056;
77 rho[6] = 1.116206881;
78 rho[7] = 1.483440555;
79
80 modetype[0] = 23;
81 modetype[1] = 23;
82 modetype[2] = 23;
83 modetype[3] = 23;
84 modetype[4] = 23;
85 modetype[5] = 13;
86 modetype[6] = 13;
87 modetype[7] = 13;
88
89 // cout << "DsToKpipi :" << endl;
90 // for (int i=0; i<8; i++) {
91 // cout << i << " rho= " << rho[i] << " phi= " << phi[i] << endl;
92 // }
93
94 width[0] = 0.1478;
95 width[1] = 0.400;
96 width[2] = 0.100;
97 width[3] = 0.265;
98 width[4] = 0.270;
99 width[5] = 0.0473;
100 width[6] = 0.232;
101 width[7] = 0.270;
102
103 mass[0] = 0.77526;
104 mass[1] = 1.465;
105 mass[2] = 0.965;
106 mass[3] = 1.35;
107 mass[4] = 1.425;
108 mass[5] = 0.89555;
109 mass[6] = 1.414;
110 mass[7] = 1.432787726;
111
112 mDsM = 1.9683;
113 mD = 1.86486;
114 mDs = 1.9683;
115 // rRes = 9.0;
116 rD = 25.0;
117 metap = 0.95778;
118 mkstr = 0.89594;
119 mk0 = 0.497614;
120 mass_Kaon = 0.49368;
121 mass_Pion = 0.13957;
122 mass_Pi0 = 0.1349766;
123 math_pi = 3.1415926;
124 mKa2 = 0.24371994;
125 mPi2 = 0.01947978;
126 mPi = 0.13957;
127 mKa = 0.49368;
128 // mrho = 0.77549;
129 // Grho = 0.1491;
130 ma0 = 0.99;
131 Ga0 = 0.0756;
132 meta = 0.547862;
133
134 GS1 = 0.636619783;
135 GS2 = 0.01860182466;
136 GS3 = 0.1591549458; // 1/(2*math_2pi)
137 GS4 = 0.00620060822; // mass_Pion2/math_pi
138
139 int GG[4][4] = { { 1, 0, 0, 0 }, { 0, -1, 0, 0 }, { 0, 0, -1, 0 }, { 0, 0, 0, -1 } };
140 for ( int i = 0; i < 4; i++ )
141 {
142 for ( int j = 0; j < 4; j++ ) { G[i][j] = GG[i][j]; }
143 }
144}
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 EvtDsToKpipi::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 146 of file EvtDsToKpipi.cc.

146{ setProbMax( 825.0 ); }
void setProbMax(double prbmx)

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