29#include "TApplication.h"
39 model_name=
"DtoKSpiomegaPlot";
54 if(!(idN && idKs && idPi ) ){std::cout<<
"EvtDtoKSpiomegaPlot: the daughter sequence should be K_S0/K_L0 pi+ omega"<<std::endl;abort();}
64double HisPDFtmp[10][10] =
66{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
67{0, 1e-08, 0.120721, 0.052381, 0.0146277, 1e-08, 0.0325342, 0.235, 1e-08, 0},
68{0, 0.048494, 0.0426205, 0.057598, 0.0610795, 0.0782258, 0.0776099, 0.0327206, 0.00078125, 0},
69{0.111111, 0.00310078, 0.0329032, 0.08, 0.0677989, 0.139752, 0.134032, 0.0708333, 0.0407328, 0},
70{-0.108333, 0.0421875, 0.0802147, 0.075, 0.0754011, 0.187206, 0.12803, 0.0151351, 0.0235849, -0.0928571},
71{0, 0.0457386, 0.033237, 0.0667614, 0.126403, 0.173194, 0.108482, 0.0508333, 0.0395349, -0.325},
72{0, 0.05, 0.0637931, 0.0892663, 0.141294, 0.125867, 0.111432, 0.0390288, 0.0578571, 0},
73{0, 1e-08, 1e-08, 0.0670455, 0.0672059, 0.0942187, 0.0969551, 0.0503425, 1e-08, 0},
74{0, 1e-08, 1e-08, 0.0186937, 0.0445402, 0.027, 0.00136364, 1e-08, 1e-08, 0},
75{0, 0, 0, -0.08125, 0.0769231, -0.0464286, 0, 0, 0, 0}
79 for (
int j=0; j<10; j++) {
80 HisPDF[i][j] = HisPDFtmp[i][j];
97 double xmass13,xmass12, xmass23;
107 xmass12=(pd1+pd2).
mass()*(pd1+pd2).
mass();
109 xmass23=(pd2+pd3).
mass()*(pd2+pd3).
mass();
113 double xratio12=HisPDF[xbin][ybin]/avm1;
115 if(xratio12 <=0)
goto loop;
118 if(rd12>xratio12)
goto loop;
124 if (mass2 < Xmin) {
return 0; }
125 else if (mass2>=Xmax) {
return 9; }
126 else {
return int((mass2-Xmin)/Xwid)+1; }
130 if (mass2 < Ymin) {
return 0; }
131 else if (mass2>=Ymax) {
return 9; }
132 else {
return int((mass2-Ymin)/Ywid)+1; }
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
int FindYBin(double mass2)
void getName(std::string &name)
virtual ~EvtDtoKSpiomegaPlot()
void decay(EvtParticle *p)
int FindXBin(double mass2)
static EvtSpinType::spintype getSpinType(EvtId i)
static EvtId getId(const std::string &name)
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)