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

#include <EvtDToKSKSK.hh>

+ Inheritance diagram for EvtDToKSKSK:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDToKSKSK()

EvtDToKSKSK::EvtDToKSKSK ( )
inline

Definition at line 12 of file EvtDToKSKSK.hh.

12{}

Referenced by clone().

◆ ~EvtDToKSKSK()

EvtDToKSKSK::~EvtDToKSKSK ( )
virtual

Definition at line 31 of file EvtDToKSKSK.cc.

31{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDToKSKSK::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 37 of file EvtDToKSKSK.cc.

37 {
38 return new EvtDToKSKSK;
39}

◆ decay()

void EvtDToKSKSK::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 100 of file EvtDToKSKSK.cc.

100 {
101
102/* double maxprob = 0.0;
103 for(int ir=0;ir<=60000000;ir++){
104 p->initializePhaseSpace(getNDaug(),getDaugs());
105 EvtVector4R D1 = p->getDaug(0)->getP4();
106 EvtVector4R D2 = p->getDaug(1)->getP4();
107 EvtVector4R D3 = p->getDaug(2)->getP4();
108
109 double P1[4], P2[4], P3[4];
110 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
111 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
112 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
113
114 double value;
115 int g0[3]={1,1,1};
116 int spin[3]={0,1,0};
117 int nstates=2;
118 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
119 if (value<0) continue;
120 if(value>maxprob) {
121 maxprob=value;
122 cout << "ir= " << ir << endl;
123 cout << "double P1[4] = {" << P1[0] <<","<< P1[1] <<","<< P1[2] <<","<< P1[3] <<"};"<< endl;
124 cout << "double P2[4] = {" << P2[0] <<","<< P2[1] <<","<< P2[2] <<","<< P2[3] <<"};"<< endl;
125 cout << "double P3[4] = {" << P3[0] <<","<< P3[1] <<","<< P3[2] <<","<< P3[3] <<"};"<< endl;
126 cout << "MAX====> " << maxprob << endl;
127 }
128 }
129 printf("MAXprob = %.10f\n",maxprob);
130
131*/
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 int g0[2]={1,1};
144 int spin[2]={0,0};
145 int nstates=2;
146 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
147 setProb(value);
148
149 return ;
150}
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 EvtDToKSKSK::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 33 of file EvtDToKSKSK.cc.

33 {
34 model_name="DToKSKSK";
35}

◆ init()

void EvtDToKSKSK::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 41 of file EvtDToKSKSK.cc.

41 {
42 checkNArg(0);
43 checkNDaug(3);
45
46 mass[0] = 0.980;
47 mass[1] = 0.980;
48 width[0] = 0.0972;
49 width[1] = 0.0972;
50
51 rho[0] = 1.0;
52 rho[1] = 1.1141e+01;
53 phi[0] = 0.00;
54 phi[1] = -5.6220e+00;
55
56// spin[0] = 0;
57// spin[1] = 1;
58// spin[2] = 1;
59 modetype[0] = 12;
60 modetype[1] = 122;
61
62 //std::cout << "Initializing EvtDToKSKSK" << std::endl;
63 //for (int i=0; i<2; i++) {
64 // cout << i << " rho,phi = " << rho[i] << ", "<< phi[i] << endl;
65 //}
66
67 math_K = 0.493677;
68 GS1 = 0.636619783;
69 GS2 = 0.23459086;
70 GS3 = 0.1591549458;
71 GS4 = 0.078196955;
72
73 mD0 = 1.86966;
74 mK0 = 0.497611;
75 mKa = 0.493677;
76 mPi = 0.13957;
77 mK02 = 0.237616707;
78 mPi2 = 0.01947978;
79 mass_EtaP = 0.95778;
80 mass_Kaon = 0.49368;
81
82 math_pi = 3.1415926;
83 mass_Pion = 0.13957;
84 mass_Pion2 = 0.0194797849;
85 mass_2Pion = 0.27914;
86 math_2pi = 6.2831852;
87 rD2 = 25.0;
88 rRes2 = 9.0;
89 g2 = 0.23;
90
91 rho_omega = 0.00294;
92 phi_omega = -0.02;
93
94}
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 EvtDToKSKSK::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 96 of file EvtDToKSKSK.cc.

96 {
97 setProbMax(878.9);
98}
void setProbMax(double prbmx)

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