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

#include <EvtDsToKSKSpi.hh>

Inheritance diagram for EvtDsToKSKSpi:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDsToKSKSpi()

EvtDsToKSKSpi::EvtDsToKSKSpi ( )
inline

Definition at line 12 of file EvtDsToKSKSpi.hh.

12{}

Referenced by clone().

◆ ~EvtDsToKSKSpi()

EvtDsToKSKSpi::~EvtDsToKSKSpi ( )
virtual

Definition at line 32 of file EvtDsToKSKSpi.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDsToKSKSpi::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtDsToKSKSpi.cc.

36{ return new EvtDsToKSKSpi; }

◆ decay()

void EvtDsToKSKSpi::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 117 of file EvtDsToKSKSpi.cc.

117 {
118 /*
119 double maxprob = 0.0;
120 for(int ir=0;ir<=60000000;ir++){
121 p->initializePhaseSpace(getNDaug(),getDaugs());
122 EvtVector4R D1 = p->getDaug(0)->getP4();
123 EvtVector4R D2 = p->getDaug(1)->getP4();
124 EvtVector4R D3 = p->getDaug(2)->getP4();
125
126 double P1[4], P2[4], P3[4];
127 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
128 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
129 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
130
131 double value;
132 // value = calDalEva(P1, P2, P3);
133 int g0[5]={1,1,1,1,12};
134 int spin[5]={1,0,0,0,0};
135 int nstates=5;
136 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
137 if (value<0) continue;
138 if(value>maxprob) {
139 maxprob=value;
140 cout << "ir= " << ir << endl;
141 cout << "double P1[4] = {" << P1[0] <<","<< P1[1] <<","<< P1[2] <<","<< P1[3]
142 <<"};"<< endl; cout << "double P2[4] = {" << P2[0] <<","<< P2[1] <<","<< P2[2] <<","<< P2[3]
143 <<"};"<< endl; cout << "double P3[4] = {" << P3[0] <<","<< P3[1] <<","<< P3[2] <<","<< P3[3]
144 <<"};"<< endl; cout << "MAX====> " << maxprob << endl;
145 }
146 }
147 printf("MAXprob = %.10f\n",maxprob);
148 */
149
151 EvtVector4R D1 = p->getDaug( 0 )->getP4();
152 EvtVector4R D2 = p->getDaug( 1 )->getP4();
153 EvtVector4R D3 = p->getDaug( 2 )->getP4();
154
155 double P1[4], P2[4], P3[4];
156 P1[0] = D1.get( 0 );
157 P1[1] = D1.get( 1 );
158 P1[2] = D1.get( 2 );
159 P1[3] = D1.get( 3 );
160 P2[0] = D2.get( 0 );
161 P2[1] = D2.get( 1 );
162 P2[2] = D2.get( 2 );
163 P2[3] = D2.get( 3 );
164 P3[0] = D3.get( 0 );
165 P3[1] = D3.get( 1 );
166 P3[2] = D3.get( 2 );
167 P3[3] = D3.get( 3 );
168 // P1[0] = 0.770687885731853; P1[1] = 0.085867043334332; P1[2] =-0.550183164280213; P1[3]
169 // =-0.190434925445587; P2[0] = 0.840768850984605; P2[1] =-0.240025188001374; P2[2] =
170 // 0.631078772181167; P2[3] = 0.058310035302289; P3[0] = 0.393776666168180; P3[1]
171 // =-0.159532664043002; P3[2] =-0.300922058149019; P3[3] = 0.139912371490140;
172
173 double value;
174 int g0[5] = { 1, 1, 1, 1, 12 };
175 int spin[5] = { 1, 0, 0, 0, 0 };
176 int nstates = 5;
177 calEva( P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value );
178
179 setProb( value );
180 return;
181}
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 EvtDsToKSKSpi::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 34 of file EvtDsToKSKSpi.cc.

34{ model_name = "DsToKSKSpi"; }

◆ init()

void EvtDsToKSKSpi::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 38 of file EvtDsToKSKSpi.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[0] = 0.0;
58 phi[1] = 2.3351;
59
60 rho[0] = 1.0;
61 rho[1] = 3.3891;
62
63 modetype[0] = 13;
64 modetype[1] = 12;
65 modetype[2] = 12;
66 modetype[3] = 13;
67 modetype[4] = 13;
68
69 // cout << "DsToKSKSpi :" << endl;
70 // for (int i=0; i<5; i++) {
71 // cout << i << " rho= " << rho[i] << " phi= " << phi[i] << endl;
72 // }
73
74 width[0] = 5.0800e-02;
75 width[1] = 1.4041e-01; // 1.2300e-01
76 width[2] = 2.6500e-01;
77 width[3] = 2.7000e-01;
78 width[4] = 5.0800e-02;
79
80 mass[0] = 8.9166e-01;
81 mass[1] = 1.7228e+00;
82 mass[2] = 1.3500e+00;
83 mass[3] = 1.4250e+00;
84 mass[4] = 8.9166e-01;
85
86 mD = 1.86486;
87 mDs = 1.9683;
88 rRes = 9.0;
89 rD = 5.0;
90 metap = 0.95778;
91 mkstr = 0.89594;
92 mk0 = 0.497614;
93 mass_Kaon = 0.49368;
94 mass_Pion = 0.13957;
95 mass_Pi0 = 0.1349766;
96 math_pi = 3.1415926;
97 // mrho = 0.77549;
98 // Grho = 0.1491;
99 ma0 = 0.99;
100 Ga0 = 0.0756;
101 meta = 0.547862;
102
103 GS1 = 0.636619783;
104 GS2 = 0.01860182466;
105 GS3 = 0.1591549458; // 1/(2*math_2pi)
106 GS4 = 0.00620060822; // mass_Pion2/math_pi
107
108 int GG[4][4] = { { 1, 0, 0, 0 }, { 0, -1, 0, 0 }, { 0, 0, -1, 0 }, { 0, 0, 0, -1 } };
109 for ( int i = 0; i < 4; i++ )
110 {
111 for ( int j = 0; j < 4; j++ ) { G[i][j] = GG[i][j]; }
112 }
113}
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 EvtDsToKSKSpi::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 115 of file EvtDsToKSKSpi.cc.

115{ setProbMax( 1156.0 ); }
void setProbMax(double prbmx)

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