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

#include <EvtDTopipi0pi0.hh>

+ Inheritance diagram for EvtDTopipi0pi0:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDTopipi0pi0()

EvtDTopipi0pi0::EvtDTopipi0pi0 ( )
inline

Definition at line 11 of file EvtDTopipi0pi0.hh.

11{}

Referenced by clone().

◆ ~EvtDTopipi0pi0()

EvtDTopipi0pi0::~EvtDTopipi0pi0 ( )
virtual

Definition at line 34 of file EvtDTopipi0pi0.cc.

34{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDTopipi0pi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 40 of file EvtDTopipi0pi0.cc.

40 {
41 return new EvtDTopipi0pi0;
42}

◆ decay()

void EvtDTopipi0pi0::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 125 of file EvtDTopipi0pi0.cc.

125 {
126/*
127 double maxprob = 0.0;
128 for(int ir=0;ir<=60000000;ir++){
129 p->initializePhaseSpace(getNDaug(),getDaugs());
130 EvtVector4R D1 = p->getDaug(0)->getP4();
131 EvtVector4R D2 = p->getDaug(1)->getP4();
132 EvtVector4R D3 = p->getDaug(2)->getP4();
133
134 double P1[4], P2[4], P3[4];
135 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
136 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
137 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
138
139 double value;
140 int g0[6]={2,3,1,1,2,2};
141 int spin[6]={0,0,0,2,1,1};
142 int nstates=6;
143 double r0[6]={3,3,3,3,3,3};
144 double r1[6]={5,5,5,5,5,5};
145 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value,r0,r1);
146
147 if (value<0) continue;
148 if(value>maxprob) {
149 maxprob=value;
150 cout << "ir= " << ir << endl;
151// cout << "double P1[4] = {" << P1[0] <<","<< P1[1] <<","<< P1[2] <<","<< P1[3] <<"};"<< endl;
152// cout << "double P2[4] = {" << P2[0] <<","<< P2[1] <<","<< P2[2] <<","<< P2[3] <<"};"<< endl;
153// cout << "double P3[4] = {" << P3[0] <<","<< P3[1] <<","<< P3[2] <<","<< P3[3] <<"};"<< endl;
154 cout << "MAX====> " << maxprob << endl;
155 }
156 }
157 printf("MAXprob = %.10f\n",maxprob);
158*/
159
161 EvtVector4R D1 = p->getDaug(0)->getP4();
162 EvtVector4R D2 = p->getDaug(1)->getP4();
163 EvtVector4R D3 = p->getDaug(2)->getP4();
164
165 double P1[4], P2[4], P3[4];
166 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
167 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
168 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
169
170 double value;
171 int g0[6]={2,3,1,1,2,2};
172 int spin[6]={0,0,0,2,1,1};
173 int nstates=6;
174 double r0[6]={3,3,3,3,3,3};
175 double r1[6]={5,5,5,5,5,5};
176
177 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value,r0,r1);
178 setProb(value);
179 return ;
180}
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 EvtDTopipi0pi0::getName ( std::string &  name)
virtual

Implements EvtDecayBase.

Definition at line 36 of file EvtDTopipi0pi0.cc.

36 {
37 model_name="DTopipi0pi0";
38}

◆ init()

void EvtDTopipi0pi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 44 of file EvtDTopipi0pi0.cc.

44 {
45 // check that there are 0 arguments
46 checkNArg(0);
47 checkNDaug(3);
52
53 phi[0] = 0.286656178602813;
54 phi[1] = -0.888625014448000;
55 phi[2] = -2.453879234281807;
56 phi[3] = -2.975162215957068;
57 phi[4] = 0.0;
58 phi[5] = 2.704379334027896;
59
60 rho[0] = 3.492106794347418;
61 rho[1] = 0.727208768061443;
62 rho[2] = 0.419996095917039;
63 rho[3] = 1.057515286243158;
64 rho[4] = 1.0;
65 rho[5] = 0.912113205640503;
66
67 modetype[0]= 23;
68 modetype[1]= 23;
69 modetype[2]= 23;
70 modetype[3]= 23;
71 modetype[4]= 12;
72 modetype[5]= 12;
73
74 //std::cout << "Initializing EvtDTopipi0pi0" << std::endl;
75 //for (int i=0; i<6; i++) {
76 // cout << i << " rho= " << rho[i] << " phi= " << phi[i] << endl;
77 //}
78
79 width[0] = 0.534;
80 width[1] = 0.0674;
81 width[2] = 0.265;
82 width[3] = 0.1867;
83 width[4] = 0.1502;
84 width[5] = 0.4;
85
86 mass[0] = 0.526;
87 mass[1] = 0.965;
88 mass[2] = 1.35;
89 mass[3] = 1.2755;
90 mass[4] = 0.7665;
91 mass[5] = 1.465;
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 for (int j=0; j<4; j++) {
116 G[i][j] = GG[i][j];
117 }
118 }
119}
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 EvtDTopipi0pi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 121 of file EvtDTopipi0pi0.cc.

121 {
122 setProbMax(495);//MAXprob = 494.1923984676
123}
void setProbMax(double prbmx)

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