BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtD0ToKSpi0pi0 Class Reference

#include <EvtD0ToKSpi0pi0.hh>

+ Inheritance diagram for EvtD0ToKSpi0pi0:

Public Member Functions

 EvtD0ToKSpi0pi0 ()
 
virtual ~EvtD0ToKSpi0pi0 ()
 
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 8 of file EvtD0ToKSpi0pi0.hh.

Constructor & Destructor Documentation

◆ EvtD0ToKSpi0pi0()

EvtD0ToKSpi0pi0::EvtD0ToKSpi0pi0 ( )
inline

Definition at line 11 of file EvtD0ToKSpi0pi0.hh.

11{}

Referenced by clone().

◆ ~EvtD0ToKSpi0pi0()

EvtD0ToKSpi0pi0::~EvtD0ToKSpi0pi0 ( )
virtual

Definition at line 38 of file EvtD0ToKSpi0pi0.cc.

38{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtD0ToKSpi0pi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 44 of file EvtD0ToKSpi0pi0.cc.

44 {
45 return new EvtD0ToKSpi0pi0;
46}

◆ decay()

void EvtD0ToKSpi0pi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 139 of file EvtD0ToKSpi0pi0.cc.

139 {
140/*
141 double maxprob = 0.0;
142 for(int ir=0;ir<=60000000;ir++){
143 p->initializePhaseSpace(getNDaug(),getDaugs());
144 EvtVector4R D1 = p->getDaug(0)->getP4();
145 EvtVector4R D2 = p->getDaug(1)->getP4();
146 EvtVector4R D3 = p->getDaug(2)->getP4();
147
148 double P1[4], P2[4], P3[4];
149 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
150 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
151 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
152
153 double value;
154 int nstates=7;
155 int g0[7]={1,1,1,4,1,6,2};
156 int spin[7]={1,1,2,0,1,0,2};
157 double r0[7]={3.0,3.0,3.0,3.0,3.0,3.0,3.0};
158 double r1[7]={5.0,5.0,5.0,5.0,5.0,5.0,5.0};
159
160 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value,r0,r1);
161
162 if (value<0) continue;
163 if(value>maxprob) {
164 maxprob=value;
165 cout << "ir= " << ir << endl;
166 cout << "MAX====> " << maxprob << endl;
167 }
168 }
169 printf("MAXprob = %.10f\n",maxprob);
170*/
172 EvtVector4R D1 = p->getDaug(0)->getP4();
173 EvtVector4R D2 = p->getDaug(1)->getP4();
174 EvtVector4R D3 = p->getDaug(2)->getP4();
175
176 double P1[4], P2[4], P3[4];
177 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
178 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
179 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
180
181 double value;
182 int nstates=7;
183 int g0[7]={1,1,1,4,1,6,2};
184 int spin[7]={1,1,2,0,1,0,2};
185 double r0[7]={3.0,3.0,3.0,3.0,3.0,3.0,3.0};
186 double r1[7]={5.0,5.0,5.0,5.0,5.0,5.0,5.0};
187
188 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value,r0,r1);
189 setProb(value);
190 return ;
191
192}
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 EvtD0ToKSpi0pi0::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 40 of file EvtD0ToKSpi0pi0.cc.

40 {
41 model_name="D0ToKSpi0pi0";
42}

◆ init()

void EvtD0ToKSpi0pi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 48 of file EvtD0ToKSpi0pi0.cc.

48 {
49 // check that there are 0 arguments
50 checkNArg(0);
51 checkNDaug(3);
56
57 pi180inv = 1.0/EvtConst::radToDegrees;
58 phi[0] = 0.0;
59 phi[1] = -1.1735907962948264327;
60 phi[2] = -0.98738790124871123055;
61 phi[3] = 2.4055643732573601667;
62 phi[4] = 1.9872186812020204982;
63 phi[5] = 0.25034666009967576628;
64 phi[6] = -2.4035171276352995662;
65
66 rho[0] = 1.0;
67 rho[1] = 1.407574144549414541;
68 rho[2] = 1.3964570662861071071;
69 rho[3] = 2.5234814225240658203;
70 rho[4] = 2.0222401273514734044;
71 rho[5] = 0.69741141764274061643;
72 rho[6] = 0.84723998937758082661;
73
74 modetype[0]= 12;
75 modetype[1]= 12;
76 modetype[2]= 12;
77 modetype[3]= 12;
78 modetype[4]= 12;
79 modetype[5]= 23;
80 modetype[6]= 23;
81
82 //std::cout << "Initializing EvtD0ToKSpi0pi0" << std::endl;
83 //for (int i=0; i<7; i++) {
84 // cout << i << " rho= " << rho[i] << " phi= " << phi[i] << endl;
85 //}
86
87 width[0] = 0.047300000000000001765;
88 width[1] = 0.23200000000000001177;
89 width[2] = 0.10899999999999999967;
90 width[3] = 0.0084899999999999992834;
91 width[4] = 0.32200000000000000844;
92 width[5] = 0.020000000000000000416;
93 width[6] = 0.18670000000000000484;
94
95 mass[0] = 0.89554999999999995719;
96 mass[1] = 1.4139999999999999236;
97 mass[2] = 1.4323999999999998956;
98 mass[3] = 1.3999999999999999112;
99 mass[4] = 1.7179999999999999716;
100 mass[5] = 0.9000000000000000222;
101 mass[6] = 1.2755000000000000782;
102
103 mD0 = 1.86483;
104 mK0 = 0.497611;
105 mKa = 0.49368;
106 mPi = 0.13957;
107 meta = 0.54775;
108 mK02 = 0.237616707;
109 mPi2 = 0.01947978;
110 mass_EtaP = 0.95778;
111 mass_Kaon = 0.49368;
112
113 math_pi = 3.1415926;
114 mass_Pion = 0.13957;
115 mass_Pion2 = 0.0194797849;
116 mass_2Pion = 0.27914;
117 math_2pi = 6.2831852;
118 rD2 = 25.0; // 5*5
119 rRes2 = 9.0; // 3*3
120 g1 = 0.5468;
121 g2 = 0.23;
122 GS1 = 0.636619783;
123 GS2 = 0.01860182466;
124 GS3 = 0.1591549458;
125 GS4 = 0.00620060822;
126
127 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
128 for (int i=0; i<4; i++) {
129 for (int j=0; j<4; j++) {
130 G[i][j] = GG[i][j];
131 }
132 }
133}
static const double radToDegrees
Definition EvtConst.hh:30
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 EvtD0ToKSpi0pi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 135 of file EvtD0ToKSpi0pi0.cc.

135 {
136 setProbMax(944.0);//MAXprob = 943.6824670811
137}
void setProbMax(double prbmx)

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