BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDsTopipi0pi0 Class Reference

#include <EvtDsTopipi0pi0.hh>

Inheritance diagram for EvtDsTopipi0pi0:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDsTopipi0pi0()

EvtDsTopipi0pi0::EvtDsTopipi0pi0 ( )
inline

Definition at line 12 of file EvtDsTopipi0pi0.hh.

12{}

Referenced by clone().

◆ ~EvtDsTopipi0pi0()

EvtDsTopipi0pi0::~EvtDsTopipi0pi0 ( )
virtual

Definition at line 32 of file EvtDsTopipi0pi0.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDsTopipi0pi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtDsTopipi0pi0.cc.

36{ return new EvtDsTopipi0pi0; }

◆ decay()

void EvtDsTopipi0pi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 122 of file EvtDsTopipi0pi0.cc.

122 {
123 /*
124 double maxprob = 0.0;
125 for(int ir=0;ir<=60000000;ir++){
126 p->initializePhaseSpace(getNDaug(),getDaugs());
127 EvtVector4R D1 = p->getDaug(0)->getP4();
128 EvtVector4R D2 = p->getDaug(1)->getP4();
129 EvtVector4R D3 = p->getDaug(2)->getP4();
130
131 double P1[4], P2[4], P3[4];
132 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
133 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
134 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
135
136 //P1[0] = 0.420940262140625; P1[1] = 0.186467651715440; P1[2] =-0.006370318623730;P1[3]
137 =0.350571109833864;
138 //P2[0] = 0.882122776747018; P2[1] =0.132998408143823; P2[2] =-0.666777627124688; P2[3]
139 =-0.545566661456526;
140 //P3[0] = 0.712403566511058; P3[1] =-0.587918056029798; P3[2] =0.378201754131628; P3[3]
141 =0.024818375264997;
142
143 double value;
144 //value = calDalEva(P1, P2, P3);
145 int g0[5]={3,1,1,0,0};
146 int spin[5]={0,0,2,2,2};
147 int nstates=5;
148 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
149 if (value<0) continue;
150 if(value>maxprob) {
151 maxprob=value;
152 cout << "ir= " << ir << endl;
153 // cout << "double P1[4] = {" << P1[0] <<","<< P1[1] <<","<< P1[2] <<","<< P1[3] <<"};"<<
154 endl;
155 // cout << "double P2[4] = {" << P2[0] <<","<< P2[1] <<","<< P2[2] <<","<< P2[3] <<"};"<<
156 endl;
157 // cout << "double P3[4] = {" << P3[0] <<","<< P3[1] <<","<< P3[2] <<","<< P3[3] <<"};"<<
158 endl; cout << "MAX====> " << maxprob << endl;
159 }
160 }
161 printf("MAXprob = %.10f\n",maxprob);
162 */
164 EvtVector4R D1 = p->getDaug( 0 )->getP4();
165 EvtVector4R D2 = p->getDaug( 1 )->getP4();
166 EvtVector4R D3 = p->getDaug( 2 )->getP4();
167
168 double P1[4], P2[4], P3[4];
169 P1[0] = D1.get( 0 );
170 P1[1] = D1.get( 1 );
171 P1[2] = D1.get( 2 );
172 P1[3] = D1.get( 3 );
173 P2[0] = D2.get( 0 );
174 P2[1] = D2.get( 1 );
175 P2[2] = D2.get( 2 );
176 P2[3] = D2.get( 3 );
177 P3[0] = D3.get( 0 );
178 P3[1] = D3.get( 1 );
179 P3[2] = D3.get( 2 );
180 P3[3] = D3.get( 3 );
181
182 // P1[0] = 0.420940262140625; P1[1] = 0.186467651715440; P1[2] =-0.006370318623730;P1[3]
183 // =0.350571109833864; P2[0] = 0.882122776747018; P2[1] =0.132998408143823; P2[2]
184 // =-0.666777627124688; P2[3] =-0.545566661456526; P3[0] = 0.712403566511058; P3[1]
185 // =-0.587918056029798; P3[2] =0.378201754131628; P3[3] =0.024818375264997;
186
187 double value;
188 int g0[5] = { 3, 1, 1, 0, 0 };
189 int spin[5] = { 0, 0, 2, 2, 2 };
190 int nstates = 5;
191
192 calEva( P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value );
193
194 setProb( value );
195 return;
196}
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 EvtDsTopipi0pi0::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 34 of file EvtDsTopipi0pi0.cc.

34{ model_name = "DsTopipi0pi0"; }

◆ init()

void EvtDsTopipi0pi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 38 of file EvtDsTopipi0pi0.cc.

38 {
39 // check that there are 0 arguments
40 checkNArg( 0 );
41 checkNDaug( 3 );
46
47 phi[0] = 0;
48 rho[0] = 1.0;
49 phi[1] = 0;
50 rho[1] = 0;
51 phi[2] = 0;
52 rho[2] = 0;
53 phi[3] = 0;
54 rho[3] = 0;
55 phi[4] = 0;
56 rho[4] = 0;
57
58 phi[0] = 0.0;
59 phi[1] = -7.3409e-01;
60 phi[2] = -9.4467e-01;
61 phi[3] = -4.3801e+00;
62 phi[4] = -2.3138e+00;
63
64 rho[0] = 1.0000e+00;
65 rho[1] = 8.5416e-01;
66 rho[2] = 6.8573e-01;
67 rho[3] = 1.7286e+00;
68 rho[4] = 7.5781e-01;
69
70 modetype[0] = 23;
71 modetype[1] = 23;
72 modetype[2] = 23;
73 modetype[3] = 23;
74 modetype[4] = 12;
75
76 // cout << "DsTopipi0pi0 :" << endl;
77 // for (int i=0; i<5; i++) {
78 // cout << i << " rho= " << rho[i] << " phi= " << phi[i] << endl;
79 // }
80
81 width[0] = 6.7400e-02;
82 width[1] = 2.6500e-01;
83 width[2] = 1.8500e-01;
84 width[3] = 1.7400e-01;
85 width[4] = 1.7400e-01;
86
87 mass[0] = 9.5500e-01;
88 mass[1] = 1.3500e+00;
89 mass[2] = 1.2755e+00;
90 mass[3] = 1.0000e+00;
91 mass[4] = 1.0000e+00;
92
93 mD = 1.86486;
94 mDs = 1.9683;
95 rRes = 9.0;
96 rD = 5.0;
97 metap = 0.95778;
98 mkstr = 0.89594;
99 mk0 = 0.497614;
100 mass_Kaon = 0.49368;
101 mass_Pion = 0.13957;
102 mass_Pi0 = 0.1349766;
103 math_pi = 3.1415926;
104 ma0 = 0.99;
105 Ga0 = 0.0756;
106 meta = 0.547862;
107
108 GS1 = 0.636619783;
109 GS2 = 0.01860182466;
110 GS3 = 0.1591549458; // 1/(2*math_2pi)
111 GS4 = 0.00620060822; // mass_Pion2/math_pi
112
113 int GG[4][4] = { { 1, 0, 0, 0 }, { 0, -1, 0, 0 }, { 0, 0, -1, 0 }, { 0, 0, 0, -1 } };
114 for ( int i = 0; i < 4; i++ )
115 {
116 for ( int j = 0; j < 4; j++ ) { G[i][j] = GG[i][j]; }
117 }
118}
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 EvtDsTopipi0pi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 120 of file EvtDsTopipi0pi0.cc.

120{ setProbMax( 51.1 ); }
void setProbMax(double prbmx)

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