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

38 {
39 return new EvtDsToKSKSpi;
40}

◆ decay()

void EvtDsToKSKSpi::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 124 of file EvtDsToKSKSpi.cc.

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

◆ init()

void EvtDsToKSKSpi::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 42 of file EvtDsToKSKSpi.cc.

42 {
43 // check that there are 0 arguments
44 checkNArg(0);
45 checkNDaug(3);
50
51 phi[0] = 0;
52 rho[0] = 1;
53 phi[1] = 0;
54 rho[1] = 0;
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[0] = 0.0;
62 phi[1] = 2.3351;
63
64 rho[0] = 1.0;
65 rho[1] = 3.3891;
66
67 modetype[0]= 13;
68 modetype[1]= 12;
69 modetype[2]= 12;
70 modetype[3]= 13;
71 modetype[4]= 13;
72
73 //cout << "DsToKSKSpi :" << endl;
74 //for (int i=0; i<5; i++) {
75 // cout << i << " rho= " << rho[i] << " phi= " << phi[i] << endl;
76 //}
77
78 width[0] = 5.0800e-02;
79 width[1] = 1.4041e-01;//1.2300e-01
80 width[2] = 2.6500e-01;
81 width[3] = 2.7000e-01;
82 width[4] = 5.0800e-02;
83
84 mass[0] = 8.9166e-01;
85 mass[1] = 1.7228e+00;
86 mass[2] = 1.3500e+00;
87 mass[3] = 1.4250e+00;
88 mass[4] = 8.9166e-01;
89
90 mD = 1.86486;
91 mDs = 1.9683;
92 rRes = 9.0;
93 rD = 5.0;
94 metap = 0.95778;
95 mkstr = 0.89594;
96 mk0 = 0.497614;
97 mass_Kaon = 0.49368;
98 mass_Pion = 0.13957;
99 mass_Pi0 = 0.1349766;
100 math_pi = 3.1415926;
101 //mrho = 0.77549;
102 //Grho = 0.1491;
103 ma0 = 0.99;
104 Ga0 = 0.0756;
105 meta = 0.547862;
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 for (int j=0; j<4; j++) {
115 G[i][j] = GG[i][j];
116 }
117 }
118}
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 120 of file EvtDsToKSKSpi.cc.

120 {
121 setProbMax(1156.0);
122}
void setProbMax(double prbmx)

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