BOSS 8.0.0
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 42 of file EvtD0ToKSpi0pi0.cc.

42{ return new EvtD0ToKSpi0pi0; }

◆ decay()

void EvtD0ToKSpi0pi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 134 of file EvtD0ToKSpi0pi0.cc.

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

◆ init()

void EvtD0ToKSpi0pi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 44 of file EvtD0ToKSpi0pi0.cc.

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

130 {
131 setProbMax( 944.0 ); // MAXprob = 943.6824670811
132}
void setProbMax(double prbmx)

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