BOSS 7.1.1
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 78 of file EvtDToKSKSK.cc.

78 {
79
80/* double maxprob = 0.0;
81 for(int ir=0;ir<=60000000;ir++){
82 p->initializePhaseSpace(getNDaug(),getDaugs());
83 EvtVector4R D1 = p->getDaug(0)->getP4();
84 EvtVector4R D2 = p->getDaug(1)->getP4();
85 EvtVector4R D3 = p->getDaug(2)->getP4();
86
87 double P1[4], P2[4], P3[4];
88 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
89 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
90 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
91
92 double value;
93 int g0[3]={1,1,1};
94 int spin[3]={0,1,0};
95 int nstates=2;
96 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
97 if (value<0) continue;
98 if(value>maxprob) {
99 maxprob=value;
100 cout << "ir= " << ir << endl;
101 cout << "double P1[4] = {" << P1[0] <<","<< P1[1] <<","<< P1[2] <<","<< P1[3] <<"};"<< endl;
102 cout << "double P2[4] = {" << P2[0] <<","<< P2[1] <<","<< P2[2] <<","<< P2[3] <<"};"<< endl;
103 cout << "double P3[4] = {" << P3[0] <<","<< P3[1] <<","<< P3[2] <<","<< P3[3] <<"};"<< endl;
104 cout << "MAX====> " << maxprob << endl;
105 }
106 }
107 printf("MAXprob = %.10f\n",maxprob);
108
109*/
111 EvtVector4R D1 = p->getDaug(0)->getP4();
112 EvtVector4R D2 = p->getDaug(1)->getP4();
113 EvtVector4R D3 = p->getDaug(2)->getP4();
114
115 double P1[4], P2[4], P3[4];
116 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
117 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
118 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
119
120 double value;
121 int g0[2]={1,1};
122 int spin[2]={0,0};
123 int nstates=2;
124 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
125 setProb(value);
126
127 return ;
128}
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}
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 74 of file EvtDToKSKSK.cc.

74 {
75 setProbMax(878.9);
76}
void setProbMax(double prbmx)

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