BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDsToKSpipi0 Class Reference

#include <EvtDsToKSpipi0.hh>

+ Inheritance diagram for EvtDsToKSpipi0:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDsToKSpipi0()

EvtDsToKSpipi0::EvtDsToKSpipi0 ( )
inline

Definition at line 12 of file EvtDsToKSpipi0.hh.

12{}

Referenced by clone().

◆ ~EvtDsToKSpipi0()

EvtDsToKSpipi0::~EvtDsToKSpipi0 ( )
virtual

Definition at line 32 of file EvtDsToKSpipi0.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDsToKSpipi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 38 of file EvtDsToKSpipi0.cc.

38 {
39 return new EvtDsToKSpipi0;
40}

◆ decay()

void EvtDsToKSpipi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 119 of file EvtDsToKSpipi0.cc.

119 {
120 /*
121 double maxprob = 0.0;
122 for(int ir=0;ir<=6000000;ir++){
123 p->initializePhaseSpace(getNDaug(),getDaugs());
124 EvtVector4R D1 = p->getDaug(0)->getP4();
125 EvtVector4R D2 = p->getDaug(1)->getP4();
126 EvtVector4R D3 = p->getDaug(2)->getP4();
127
128 double P1[4], P2[4], P3[4];
129 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
130 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
131 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
132
133 double value;
134 //value = calDalEva(P1, P2, P3);
135 int g0[5]={1,1,1,1,1};
136 int nstates=5;
137 calEva(P1, P2, P3, mass, width, rho, phi, g0, modetype, nstates, value);
138 if (value<0) continue;
139 if(value>maxprob) {
140 maxprob=value;
141 cout << "ir= " << ir << endl;
142 cout << "double P1[4] = {" << P1[0] <<","<< P1[1] <<","<< P1[2] <<","<< P1[3] <<"};"<< endl;
143 cout << "double P2[4] = {" << P2[0] <<","<< P2[1] <<","<< P2[2] <<","<< P2[3] <<"};"<< endl;
144 cout << "double P3[4] = {" << P3[0] <<","<< P3[1] <<","<< P3[2] <<","<< P3[3] <<"};"<< endl;
145 cout << "MAX====> " << maxprob << endl;
146 }
147 }
148 printf("MAXprob = %.10f\n",maxprob);
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); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
157 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
158 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
159 //P1[0] = 0.840899; P1[1] = -0.624276; P1[2] = 0.0113601 ; P1[3] = -0.263898;
160 //P2[0] = 0.89303 ; P2[1] = 0.860432 ; P2[2] = -0.0491258; P2[3] = 0.187791 ;
161 //P3[0] = 0.288373; P3[1] = 0.102614 ; P3[2] = -0.132757 ; P3[3] = -0.191797;
162 //P1[0] = 0.817635; P1[1] = 0.140538 ; P1[2] = -0.501451 ; P1[3] = 0.386916;
163 //P2[0] = 0.952772; P2[1] = -0.164752; P2[2] = 0.437717 ; P2[3] = -0.818264;
164 //P3[0] = 0.260117; P3[1] = 0.213518 ; P3[2] = -0.0606403; P3[3] = -0.0132164;
165
166 double value;
167 int g0[5]={1,1,1,1,1};
168 int nstates=5;
169 calEva(P1, P2, P3, mass, width, rho, phi, g0, modetype, nstates, value);
170
171 //value = calEva(P1, P2, P3);
172 setProb(value);
173 return ;
174}
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 EvtDsToKSpipi0::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 34 of file EvtDsToKSpipi0.cc.

34 {
35 model_name="DsToKSpipi0";
36}

◆ init()

void EvtDsToKSpipi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 42 of file EvtDsToKSpipi0.cc.

42 {
43 // check that there are 0 arguments
44 checkNArg(0);
45 checkNDaug(3);
50
51 phi[0] = 1.9740e-01;
52 phi[1] = 3.1956e+00;
53 phi[3] = 1.9523e-01;
54 phi[4] = 2.1602e+00;
55
56 rho[0] = 3.0648e-01;
57 rho[1] = 4.0708e-01;
58 rho[3] = 7.5484e-01;
59 rho[4] = 2.6511e+00;
60
61 phi[2] = 0;
62 rho[2] = 1;
63 modetype[0]= 12;
64 modetype[1]= 13;
65 modetype[2]= 23;
66 modetype[3]= 131;
67 modetype[4]= 231;
68
69 //cout << "DsToKSpipi0 :" << 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] = 4.7300e-02;
76 width[2] = 1.5020e-01;
77 width[3] = 2.3200e-01;
78 width[4] = 4.0000e-01;
79 mass[0] = 8.9166e-01;
80 mass[1] = 8.9555e-01;
81 mass[2] = 7.6650e-01;
82 mass[3] = 1.4140e+00;
83 mass[4] = 1.4650e+00;
84
85 mD = 1.86486;
86 mDs = 1.9683;
87 rRes = 9.0;
88 rD = 5.0;
89 metap = 0.95778;
90 mkstr = 0.89594;
91 mk0 = 0.497614;
92 mass_Kaon = 0.49368;
93 mass_Pion = 0.13957;
94 mass_Pi0 = 0.1349766;
95 math_pi = 3.1415926;
96 //mrho = 0.77549;
97 //Grho = 0.1491;
98 ma0 = 0.99;
99 Ga0 = 0.0756;
100 meta = 0.547862;
101
102 GS1 = 0.636619783;
103 GS2 = 0.01860182466;
104 GS3 = 0.1591549458; // 1/(2*math_2pi)
105 GS4 = 0.00620060822; // mass_Pion2/math_pi
106
107 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
108 for (int i=0; i<4; i++) {
109 for (int j=0; j<4; j++) {
110 G[i][j] = GG[i][j];
111 }
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 EvtDsToKSpipi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 115 of file EvtDsToKSpipi0.cc.

115 {
116 setProbMax(310.0);
117}
void setProbMax(double prbmx)

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