29#include "TApplication.h"
39 model_name=
"D0toKpietaPlot";
53 if(!(idN && idKs && idPi ) ){std::cout<<
"EvtD0toKpietaPlot: the daughter sequence should be K- pi+ eta"<<std::endl;abort();}
63double HisPDFtmp[17][17] =
65{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
66{0, 1e-07, 0.026749, 0.00605681, 0.0634184, 0.0892256, 0.202502, 0.176861, 0.14297, 0.0871013, 0.0597803, 0.0816327, 1e-07, 1e-07, 1e-07, 1e-07, 0},
67{0, 0.0333333, 0.0170782, 0.0151869, 0.0481322, 0.0805231, 0.205394, 0.116217, 0.0875592, 0.129291, 0.0702469, 0.0752794, 0.100899, 0.0771605, 0.0869565, 1e-07, 0},
68{0, 0.0280093, 0.0390357, 0.0253937, 0.0261579, 0.071521, 0.141498, 0.104404, 0.0741497, 0.0714744, 0.0822128, 0.0975891, 0.155818, 0.159259, 0.185316, 0.148148, 0},
69{0, 0.113668, 0.119763, 0.0787132, 0.102704, 0.112065, 0.135281, 0.0820707, 0.0419041, 0.079242, 0.0900836, 0.150758, 0.264155, 0.316919, 0.317745, 0.431149, 0},
70{0, 0.589684, 0.371107, 0.293253, 0.168061, 0.120212, 0.187226, 0.103501, 0.0238857, 0.0322682, 0.0430699, 0.131763, 0.254585, 0.314903, 0.422812, 0.531974, -0.0925926},
71{0, 0.171536, 0.092114, 0.0382082, 0.0237244, 1e-07, 0.0313214, 0.025242, 0.0140927, 0.019018, 0.0117647, 0.00504009, 0.00752062, 0.0128317, 0.0120773, 0.00329218, 0},
72{0, 0.0398736, 0.0122582, 0.000112007, 0.0110455, 0.0132114, 0.0126157, 0.00567562, 0.00792236, 0.0138889, 0.0132507, 0.0179872, 0.00873761, 0.00735294, 1e-07, 1e-07, 0},
73{0, 0.0320175, 0.0250501, 0.0182082, 0.0198841, 0.0312431, 0.0178492, 0.00932836, 0.00484048, 0.0196806, 0.0125213, 0.0167646, 0.0242894, 0.0175224, 0.00443081, 0.012037, 0},
74{0, 0.0281924, 0.0348485, 0.055883, 0.025371, 0.0317179, 0.0222222, 0.0132327, 1e-07, 0.00288889, 0.00841751, 0.0165652, 0.0143026, 0.013714, 0.000664011, 1e-07, 0},
75{0, 0.0814623, 0.0519035, 0.0857828, 0.050823, 0.0422381, 0.038486, 0.00943396, 0.00109127, 0.003367, 0.00705829, 0.00633333, 0.00933246, 0.00857237, 0.0114638, 1e-07, 0},
76{0, 0.0945946, 0.103036, 0.0933035, 0.0920969, 0.0668599, 0.0459987, 0.0155599, 0.00218477, 1e-07, 0.00224791, 0.00819475, 0.00309358, 0.00826446, 1e-07, 1e-07, 0},
77{0, 1e-07, 0.0715244, 0.084398, 0.0704767, 0.0615041, 0.0658281, 0.00491735, 0.00484436, 0.00573099, 0.00257898, 0.003927, 0.0204082, 1e-07, 1e-07, 1e-07, 0},
78{0, 1e-07, 0.0763572, 0.0943127, 0.0825968, 0.0734052, 0.0765793, 0.0305351, 0.0121083, 0.00391802, 0.00722106, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07, 0},
79{0, 1e-07, 1e-07, 0.111518, 0.0960134, 0.128118, 0.0622588, 0.0360153, 0.0130845, 0.0106838, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07, 0},
80{0, 1e-07, 1e-07, 0.173913, 0.120973, 0.121418, 0.121403, 0.0548894, 0.0436284, 0.142857, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07, 0},
81{0, 0, 0, 0, 0, 0.232639, 0.0972222, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
85 for (
int j=0; j<17; j++) {
86 HisPDF[i][j] = HisPDFtmp[i][j];
103 double xmass13,xmass12, xmass23;
113 xmass12=(pd1+pd2).
mass()*(pd1+pd2).
mass();
115 xmass23=(pd2+pd3).
mass()*(pd2+pd3).
mass();
119 double xratio12=HisPDF[xbin][ybin]/avm1;
121 if(xratio12 <=0)
goto loop;
124 if(rd12>xratio12)
goto loop;
130 if (mass2 < Xmin) {
return 0; }
131 else if (mass2>=Xmax) {
return 16; }
132 else {
return int((mass2-Xmin)/Xwid)+1; }
136 if (mass2 < Ymin) {
return 0; }
137 else if (mass2>=Ymax) {
return 16; }
138 else {
return int((mass2-Ymin)/Ywid)+1; }
int FindYBin(double mass2)
void getName(std::string &name)
int FindXBin(double mass2)
void decay(EvtParticle *p)
virtual ~EvtD0toKpietaPlot()
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
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)