BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDToKSKSpi Class Reference

#include <EvtDToKSKSpi.hh>

+ Inheritance diagram for EvtDToKSKSpi:

Public Member Functions

 EvtDToKSKSpi ()
 
virtual ~EvtDToKSKSpi ()
 
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 void getName (std::string &name)=0
 
virtual void decay (EvtParticle *p)=0
 
virtual void makeDecay (EvtParticle *p)=0
 
virtual EvtDecayBaseclone ()=0
 
virtual void init ()
 
virtual void initProbMax ()
 
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 EvtDToKSKSpi.hh.

Constructor & Destructor Documentation

◆ EvtDToKSKSpi()

EvtDToKSKSpi::EvtDToKSKSpi ( )
inline

Definition at line 12 of file EvtDToKSKSpi.hh.

12{}

Referenced by clone().

◆ ~EvtDToKSKSpi()

EvtDToKSKSpi::~EvtDToKSKSpi ( )
virtual

Definition at line 31 of file EvtDToKSKSpi.cc.

31{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDToKSKSpi::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 37 of file EvtDToKSKSpi.cc.

37 {
38 return new EvtDToKSKSpi;
39}

◆ decay()

void EvtDToKSKSpi::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 78 of file EvtDToKSKSpi.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[2]={12,1};
94 int spin[2]={0,1};
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]={12,1};
122 int spin[2]={0,1};
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()
Definition: EvtDecayBase.hh:65
void setProb(double prob)
Definition: EvtDecayProb.hh:34
const EvtVector4R & getP4() const
Definition: EvtParticle.cc:120
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:84
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
double get(int i) const
Definition: EvtVector4R.hh:179

◆ getName()

void EvtDToKSKSpi::getName ( std::string &  name)
virtual

Implements EvtDecayBase.

Definition at line 33 of file EvtDToKSKSpi.cc.

33 {
34 model_name="DToKSKSpi";
35}

◆ init()

void EvtDToKSKSpi::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 41 of file EvtDToKSKSpi.cc.

41 {
42 checkNArg(0);
43 checkNDaug(3);
45
46 mass[0] = 0.89167;//KpiSW
47 mass[1] = 0.89167;//K*892
48 width[0] = 0.05140;//KpiSW
49 width[1] = 0.05140;//K*892
50
51 rho[0] = 0.964140442071117;//KpiSW
52 rho[1] = 1;//K*892
53 phi[0] = -3.654242163321078;//KpiSW
54 phi[1] = 0;//K*892
55
56 spin[0] = 0; //KpiSW
57 spin[1] = 1; //K*892
58 modetype[0] = 13;//KpiSW
59 modetype[1] = 13;//K*892
60
61 //std::cout << "Initializing EvtDToKSKSpi" << std::endl;
62 //for (int i=0; i<2; i++) {
63 // cout << i << " rho,phi = " << rho[i] << ", "<< phi[i] << endl;
64 //}
65
66 math_pi = 3.1415926;
67 GS1 = 0.636619783;
68 GS2 = 0.01860182466;
69 GS3 = 0.1591549458; // 1/(2*math_2pi)
70 GS4 = 0.00620060822; // mass_Pion2/math_pi
71
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 EvtDToKSKSpi::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 74 of file EvtDToKSKSpi.cc.

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

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