BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtD0ToKpipi0 Class Reference

#include <EvtD0ToKpipi0.hh>

+ Inheritance diagram for EvtD0ToKpipi0:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtD0ToKpipi0()

EvtD0ToKpipi0::EvtD0ToKpipi0 ( )
inline

Definition at line 11 of file EvtD0ToKpipi0.hh.

11{}

Referenced by clone().

◆ ~EvtD0ToKpipi0()

EvtD0ToKpipi0::~EvtD0ToKpipi0 ( )
virtual

Definition at line 33 of file EvtD0ToKpipi0.cc.

33{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtD0ToKpipi0::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 39 of file EvtD0ToKpipi0.cc.

39 {
40 return new EvtD0ToKpipi0;
41}

◆ decay()

void EvtD0ToKpipi0::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 139 of file EvtD0ToKpipi0.cc.

139 {
140 //-----------for max value------------------
141 // double maxprob = 0.0;
142 // for(int ir=0;ir<=60000000;ir++){
143 // p->initializePhaseSpace(getNDaug(),getDaugs());
144 // EvtVector4R ks0 = p->getDaug(0)->getP4();
145 // EvtVector4R pic = p->getDaug(1)->getP4();
146 // EvtVector4R pi0 = p->getDaug(2)->getP4();
147
148 // double Ks0[4],Pic[4],Pi0[4];
149 // Ks0[0] = ks0.get(0); Pic[0] = pic.get(0); Pi0[0] = pi0.get(0);
150 // Ks0[1] = ks0.get(1); Pic[1] = pic.get(1); Pi0[1] = pi0.get(1);
151 // Ks0[2] = ks0.get(2); Pic[2] = pic.get(2); Pi0[2] = pi0.get(2);
152 // Ks0[3] = ks0.get(3); Pic[3] = pic.get(3); Pi0[3] = pi0.get(3);
153 // double value;
154 // calPDF(Ks0, Pic, Pi0, value);
155 // if(value>maxprob) {
156 // maxprob=value;
157 // std::cout << "Max PDF = " << ir << " prob= " << value << std::endl;
158 // }
159 // }
160 // std::cout << "Max!!!!!!!!!!! " << maxprob<< std::endl;
161 // return;
162 //-----------------------------------------------
164 EvtVector4R ks0 = p->getDaug(0)->getP4();
165 EvtVector4R pic = p->getDaug(1)->getP4();
166 EvtVector4R pi0 = p->getDaug(2)->getP4();
167
168 double Ks0[4],Pic[4],Pi0[4];
169 Ks0[0] = ks0.get(0); Pic[0] = pic.get(0); Pi0[0] = pi0.get(0);
170 Ks0[1] = ks0.get(1); Pic[1] = pic.get(1); Pi0[1] = pi0.get(1);
171 Ks0[2] = ks0.get(2); Pic[2] = pic.get(2); Pi0[2] = pi0.get(2);
172 Ks0[3] = ks0.get(3); Pic[3] = pic.get(3); Pi0[3] = pi0.get(3);
173
174 //Ks0[0] =0.665612; Pic[0] =0.655979; Pi0[0] = 0.566459;
175 //Ks0[1] =0.121309; Pic[1] =0.185548; Pi0[1] = -0.140599;
176 //Ks0[2] =0.289703; Pic[2] =-0.499909;Pi0[2] = 0.017034;
177 //Ks0[3] =-0.31393; Pic[3] =0.355657; Pi0[3] = 0.022672;
178
179 double value;
180 calPDF(Ks0, Pic, Pi0, value);
181
182 setProb(value);
183 return;
184}
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 EvtD0ToKpipi0::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 35 of file EvtD0ToKpipi0.cc.

35 {
36 model_name="D0ToKpipi0";
37}

◆ init()

void EvtD0ToKpipi0::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 43 of file EvtD0ToKpipi0.cc.

43 {
44 checkNArg(0);
45 checkNDaug(3);
47
48 mrho_770 = 0.76519, mrho_1450 = 1.465, mKn892 = 0.89555, mKp892 = 0.89167, mK0_1430 = 1.466, mK2_1430 = 1.432, mKn_1680 = 1.717;
49 Grho_770 = 0.150, Grho_1450 = 0.310, GKn892 = 0.0473, GKp892 = 0.0514, GK0_1430 = 0.174, GK2_1430 = 0.109, GKn_1680 = 0.322;
50
51 rho[0] = 1; //rho770-pipi0
52 rho[1] = 1.5285; //rho1450-pipi0
53 rho[2] = 0.37736; //K*892p-Kpi
54 rho[3] = 0.34628; //K*982n-Kpi0
55 rho[4] = 0.34568; //K0*1430n-Kpi
56 rho[5] = 0.29595; //K0*1430p-Kpi0
57 rho[6] = 0.33434; //K2*1430n-Kpi
58 rho[7] = 0.34835; //K2*1430p-Kpi0
59 rho[8] = 0.89301; //K*1680n-Kpi
60 rho[9] = 0.33549; //K*1680p-Kpi
61 rho[10] = 0.90975; //res-S
62 rho[11] = 0.22014; //res-Kpip
63 rho[12] = 0.82374; //res-Kpi0p
64
65 phi[0] = 0; //rho770
66 phi[1] = -3.6546; //rho1450-pipi0
67 phi[2] = 2.9582; //K*892p-Kpi
68 phi[3] = 0.17931; //K*982n-Kpi0
69 phi[4] = -5.8211; //K0*1430n-Kpi
70 phi[5] = 4.3925; //K0*1430p-Kpi0
71 phi[6] = 5.6749; //K2*1430n-Kpi
72 phi[7] = -3.6710; //K2*1430p-Kpi0
73 phi[8] = -4.9602; //K*1680n-Kpi
74 phi[9] = -5.2493; //K*1680p-Kpi
75 phi[10] = -2.093; //res-S
76 phi[11] = -6.6026; //res-Kpip
77 phi[12] = 10.376; //res-Kpi0p
78
79 spin[0] = 1;
80 spin[1] = 1;
81 spin[2] = 1;
82 spin[3] = 1;
83 spin[4] = 0;
84 spin[5] = 0;
85 spin[6] = 2;
86 spin[7] = 2;
87 spin[8] = 1;
88 spin[9] = 1;
89 spin[10] = 0;
90 spin[11] = 1;
91 spin[12] = 1;
92
93 modetype[0] = 23;
94 modetype[1] = 23;
95 modetype[2] = 13;
96 modetype[3] = 12;
97 modetype[4] = 12;
98 modetype[5] = 13;
99 modetype[6] = 12;
100 modetype[7] = 13;
101 modetype[8] = 12;
102 modetype[9] = 13;
103 modetype[10] = 12;
104 modetype[11] = 12;
105 modetype[12] = 13;
106
107/*
108 std::cout << "EvtD0ToKpipi0 (May 01, 2023) ==> Initialization" << std::endl;
109 for (int i=0; i<13; i++) {
110 cout << i << " rho,phi = " << rho[i] << ", "<< phi[i] << endl;
111 }
112*/
113 mass_Ks=0.4977;
114 mass_Eta=0.547862;
115 mD = 1.86965;
116 rD = 5;
117 metap = 0.95778;
118 mkstr = 0.89594;
119 mk0 = 0.497611;
120 mass_Kaon = 0.493677;
121 mass_Pion = 0.13957;
122 mass_Pi0 = 0.1349768;
123 math_pi = 3.1415926;
124 pi = 3.1415926;
125 mpi = 0.13957;
126
127 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
128 for (int i=0; i<4; i++) {
129 for (int j=0; j<4; j++) {
130 G[i][j] = GG[i][j];
131 }
132 }
133}
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 EvtD0ToKpipi0::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 135 of file EvtD0ToKpipi0.cc.

135 {
136 setProbMax(161.0);//setProbMax;
137}
void setProbMax(double prbmx)

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