BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDsToEtappipi0 Class Reference

#include <EvtDsToEtappipi0.hh>

+ Inheritance diagram for EvtDsToEtappipi0:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDsToEtappipi0()

EvtDsToEtappipi0::EvtDsToEtappipi0 ( )
inline

Definition at line 12 of file EvtDsToEtappipi0.hh.

12{}

Referenced by clone().

◆ ~EvtDsToEtappipi0()

EvtDsToEtappipi0::~EvtDsToEtappipi0 ( )
virtual

Definition at line 32 of file EvtDsToEtappipi0.cc.

32{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDsToEtappipi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 38 of file EvtDsToEtappipi0.cc.

38 {
39 return new EvtDsToEtappipi0;
40}

◆ decay()

void EvtDsToEtappipi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 109 of file EvtDsToEtappipi0.cc.

109 {
110 /*
111 double maxprob = 0.0;
112 for(int ir=0;ir<=40000000;ir++){
113 p->initializePhaseSpace(getNDaug(),getDaugs());
114 EvtVector4R D1 = p->getDaug(0)->getP4();
115 EvtVector4R D2 = p->getDaug(1)->getP4();
116 EvtVector4R D3 = p->getDaug(2)->getP4();
117
118 double P1[4], P2[4], P3[4];
119 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
120 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
121 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
122
123 double value;
124 //value = calDalEva(P1, P2, P3);
125 int g0[6]={1};
126 int spin[6]={1};
127 int nstates=1;
128 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
129 if (value<0) continue;
130 if(value>maxprob) {
131 maxprob=value;
132 cout << "ir= " << ir << endl;
133 cout << "double P1[4] = {" << P1[0] <<","<< P1[1] <<","<< P1[2] <<","<< P1[3] <<"};"<< endl;
134 cout << "double P2[4] = {" << P2[0] <<","<< P2[1] <<","<< P2[2] <<","<< P2[3] <<"};"<< endl;
135 cout << "double P3[4] = {" << P3[0] <<","<< P3[1] <<","<< P3[2] <<","<< P3[3] <<"};"<< endl;
136 cout << "MAX====> " << maxprob << endl;
137 }
138 }
139 printf("MAXprob = %.10f\n",maxprob);
140 */
142 EvtVector4R D1 = p->getDaug(0)->getP4();
143 EvtVector4R D2 = p->getDaug(1)->getP4();
144 EvtVector4R D3 = p->getDaug(2)->getP4();
145
146 double P1[4], P2[4], P3[4];
147 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
148 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
149 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
150
151 double value;
152 int g0[6]={1};
153 int spin[6]={1};
154 int nstates=1;
155
156 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
157
158 setProb(value);
159 return ;
160
161}
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 EvtDsToEtappipi0::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 34 of file EvtDsToEtappipi0.cc.

34 {
35 model_name="DsToEtappipi0";
36}

◆ init()

void EvtDsToEtappipi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 42 of file EvtDsToEtappipi0.cc.

42 {
43 // check that there are 0 arguments
44 checkNArg(0);
45 checkNDaug(3);
50
51 phi[0] = 0;
52 rho[0] = 1;
53 phi[1] = 0;
54 rho[1] = 0;
55 phi[2] = 0;
56 rho[2] = 0;
57 phi[3] = 0;
58 rho[3] = 0;
59 phi[4] = 0;
60 rho[4] = 0;
61 phi[5] = 0;
62 rho[5] = 0;
63
64 phi[0] = 0.0;
65 rho[0] = 1.0;
66
67 modetype[0]= 23;
68
69 //cout << "DsToEtappipi0 :" << endl;
70 //for (int i=0; i<6; i++) {
71 // cout << i << " rho= " << rho[i] << " phi= " << phi[i] << endl;
72 //}
73
74 width[0] = 0.1491;
75 mass[0] = 0.77526;
76
77 mD = 1.86486;
78 mDs = 1.9683;
79 rRes = 9.0;
80 rD = 5.0;
81 metap = 0.95778;
82 mkstr = 0.89594;
83 mk0 = 0.497614;
84 mass_Kaon = 0.49368;
85 mass_Pion = 0.13957;
86 mass_Pi0 = 0.1349766;
87 math_pi = 3.1415926;
88 ma0 = 0.99;
89 Ga0 = 0.0756;
90 meta = 0.547862;
91
92 GS1 = 0.636619783;
93 GS2 = 0.01860182466;
94 GS3 = 0.1591549458; // 1/(2*math_2pi)
95 GS4 = 0.00620060822; // mass_Pion2/math_pi
96
97 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
98 for (int i=0; i<4; i++) {
99 for (int j=0; j<4; j++) {
100 G[i][j] = GG[i][j];
101 }
102 }
103}
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 EvtDsToEtappipi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 105 of file EvtDsToEtappipi0.cc.

105 {
106 setProbMax(59.2);
107}
void setProbMax(double prbmx)

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