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

#include <EvtDsToEtapi2pi0.hh>

Inheritance diagram for EvtDsToEtapi2pi0:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtDsToEtapi2pi0()

EvtDsToEtapi2pi0::EvtDsToEtapi2pi0 ( )
inline

Definition at line 11 of file EvtDsToEtapi2pi0.hh.

11{}

Referenced by clone().

◆ ~EvtDsToEtapi2pi0()

EvtDsToEtapi2pi0::~EvtDsToEtapi2pi0 ( )
virtual

Definition at line 33 of file EvtDsToEtapi2pi0.cc.

33{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDsToEtapi2pi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 37 of file EvtDsToEtapi2pi0.cc.

37{ return new EvtDsToEtapi2pi0; }

◆ decay()

void EvtDsToEtapi2pi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 105 of file EvtDsToEtapi2pi0.cc.

105 {
106 /*
107 double maxprob = 0.0;
108 for(int ir=0;ir<=60000000;ir++){
109 p->initializePhaseSpace(getNDaug(),getDaugs());
110 EvtVector4R pic = p->getDaug(0)->getP4();
111 EvtVector4R pi01 = p->getDaug(1)->getP4();
112 EvtVector4R pi02 = p->getDaug(2)->getP4();
113 EvtVector4R eta = p->getDaug(3)->getP4();
114
115 double Pic[4],Pi01[4],Pi02[4],Eta[4];
116 Pic[0]=pic.get(0); Pic[1]=pic.get(1); Pic[2]=pic.get(2); Pic[3]=pic.get(3);
117 Pi01[0]=pi01.get(0); Pi01[1]=pi01.get(1); Pi01[2]=pi01.get(2); Pi01[3]=pi01.get(3);
118 Pi02[0]=pi02.get(0); Pi02[1]=pi02.get(1); Pi02[2]=pi02.get(2); Pi02[3]=pi02.get(3);
119 Eta[0] = eta.get(0); Eta[1] = eta.get(1); Eta[2] = eta.get(2); Eta[3] = eta.get(3);
120
121 double prob;
122 int g0[3]={1,1,1};
123 int g1[3]={1,1,1};
124 int g2[3]={0,1,0};
125 int nstates=3;
126
127 calEvaMy(Pic, Pi01, Pi02, Eta, mass1, mass2, width1, width2, rho, phi, g0, g1, g2,
128 modetype, nstates, prob);
129
130 if(prob>maxprob) {
131 maxprob=prob;
132 printf("nrun = %d,maxprob = %.10f,prob = %.10f\n\n",ir,maxprob,prob);
133 }
134 }
135 */
136
138 EvtVector4R pic = p->getDaug( 0 )->getP4();
139 EvtVector4R pi01 = p->getDaug( 1 )->getP4();
140 EvtVector4R pi02 = p->getDaug( 2 )->getP4();
141 EvtVector4R eta = p->getDaug( 3 )->getP4();
142
143 double Pic[4], Pi01[4], Pi02[4], Eta[4];
144 Pic[0] = pic.get( 0 );
145 Pic[1] = pic.get( 1 );
146 Pic[2] = pic.get( 2 );
147 Pic[3] = pic.get( 3 );
148 Pi01[0] = pi01.get( 0 );
149 Pi01[1] = pi01.get( 1 );
150 Pi01[2] = pi01.get( 2 );
151 Pi01[3] = pi01.get( 3 );
152 Pi02[0] = pi02.get( 0 );
153 Pi02[1] = pi02.get( 1 );
154 Pi02[2] = pi02.get( 2 );
155 Pi02[3] = pi02.get( 3 );
156 Eta[0] = eta.get( 0 );
157 Eta[1] = eta.get( 1 );
158 Eta[2] = eta.get( 2 );
159 Eta[3] = eta.get( 3 );
160
161 double prob;
162 int g0[3] = { 1, 1, 1 };
163 int g1[3] = { 1, 1, 1 };
164 int g2[3] = { 0, 1, 0 };
165 int nstates = 3;
166
167 calEvaMy( Pic, Pi01, Pi02, Eta, mass1, mass2, width1, width2, rho, phi, g0, g1, g2, modetype,
168 nstates, prob );
169 setProb( prob );
170
171 return;
172}
TF1 * g1
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 EvtDsToEtapi2pi0::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 35 of file EvtDsToEtapi2pi0.cc.

35{ model_name = "DsToEtapi2pi0"; }

◆ init()

void EvtDsToEtapi2pi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 39 of file EvtDsToEtapi2pi0.cc.

39 {
40
41 // check that there are 0 arguments
42 checkNArg( 0 );
43 checkNDaug( 4 );
44
50
51 int mode = 0;
52 phi[0] = 0.0000e+00;
53 phi[1] = 2.2539e+00;
54 phi[2] = -4.1144e+00;
55 rho[0] = 1.0000e+00;
56 rho[1] = 3.0726e-01;
57 rho[2] = 8.8537e-01;
58 mass1[0] = 7.7526e-01;
59 mass1[1] = 9.8000e-01;
60 mass1[2] = 9.8000e-01;
61 mass2[0] = 1.2300e+00;
62 mass2[1] = 7.7526e-01;
63 mass2[2] = 1.8000e+00;
64 width1[0] = 1.4910e-01;
65 width1[1] = 7.0000e-02;
66 width1[2] = 7.0000e-02;
67 width2[0] = 3.3049e-01;
68 width2[1] = 1.4910e-01;
69 width2[2] = 3.8900e-01;
70
71 modetype[0] = 1;
72 modetype[1] = 2;
73 modetype[2] = 3;
74
75 // cout << "DsToEtapi2pi0 :" << endl;
76 // for (int i=0; i<3; i++) {
77 // cout << i << " rho= " << rho[i] << " phi= " << phi[i] << " m1= " << mass1[i] << " m2= "
78 // << mass2[i] << " w1= "
79 // << width1[i] << " w2= " << width2[i] << endl;
80 // }
81
82 rRes = 3.0;
83 rRes2 = 9.0;
84 rD = 5.0;
85 rD2 = 25.0;
86 mass_Ks = 0.497611;
87 mass_Kaon = 0.493677;
88 mass_Pion = 0.13957;
89 mass_Pi0 = 0.1349768;
90 meta = 0.547862;
91 GS1 = 0.636619783;
92 GS2 = 0.01860182466;
93 GS3 = 0.1591549458; // 1/(2*math_2pi)
94 GS4 = 0.00620060822;
95
96 int GG[4][4] = { { 1, 0, 0, 0 }, { 0, -1, 0, 0 }, { 0, 0, -1, 0 }, { 0, 0, 0, -1 } };
97 for ( int a = 0; a < 4; a++ )
98 {
99 for ( int j = 0; j < 4; j++ ) { G[a][j] = GG[a][j]; }
100 }
101}
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 EvtDsToEtapi2pi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 103 of file EvtDsToEtapi2pi0.cc.

103{ setProbMax( 4400.0 ); }
void setProbMax(double prbmx)

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