9#include <analysis/utility/GenBsTag.h>
10#include <analysis/utility/CheckDecayUtils.h>
19 if (ndau == 2) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2);}
20 else if (ndau == 3) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, 22);}
21 else if (ndau == 4) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, 22, 22);}
22 else if (ndau == 5) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, 22, 22, 22);}
23 else if (ndau == 6) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, 22, 22, 22, 22);}
30 if (ndau == 3) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3);}
31 else if (ndau == 4) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, 22);}
32 else if (ndau == 5) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, 22, 22);}
33 else if (ndau == 6) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, 22, 22, 22);}
34 else if (ndau == 7) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, 22, 22, 22, 22);}
41 if (ndau == 4) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4);}
42 else if (ndau == 5) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, 22);}
43 else if (ndau == 6) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, 22, 22);}
44 else if (ndau == 7) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, 22, 22, 22);}
45 else if (ndau == 8) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, 22, 22, 22, 22);}
52 if (ndau == 5) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5);}
53 else if (ndau == 6) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, 22);}
54 else if (ndau == 7) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, 22, 22);}
55 else if (ndau == 8) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, 22, 22, 22);}
56 else if (ndau == 9) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, 22, 22, 22, 22);}
63 if (ndau == 6) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6);}
64 else if (ndau == 7) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, 22);}
65 else if (ndau == 8) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, 22, 22);}
66 else if (ndau == 9) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, 22, 22, 22);}
67 else if (ndau == 10) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, 22, 22, 22, 22);}
74 if (ndau == 7) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7);}
75 else if (ndau == 8) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, 22);}
76 else if (ndau == 9) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, 22, 22);}
77 else if (ndau == 10) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, 22, 22, 22);}
78 else if (ndau == 11) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, 22, 22, 22, 22);}
82bool GenBsTag::PcheckDecay(std::vector<int> gp,
int da1,
int da2,
int da3,
int da4,
int da5,
int da6,
int da7,
int da8)
85 if (ndau == 8) {
m_nPhotos = 0;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, da8);}
86 else if (ndau == 9) {
m_nPhotos = 1;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, da8, 22);}
87 else if (ndau == 10) {
m_nPhotos = 2;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, da8, 22, 22);}
88 else if (ndau == 11) {
m_nPhotos = 3;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, da8, 22, 22, 22);}
89 else if (ndau == 12) {
m_nPhotos = 4;
return CheckDecay::CheckDecay(gp, da1, da2, da3, da4, da5, da6, da7, da8, 22, 22, 22, 22);}
889 return +1 * genpart.size();
1001 return -1 * (100000 *
m_nPhotos + 1036);
1004 return -1 * (100000 *
m_nPhotos + 1037);
1007 return -1 * (100000 *
m_nPhotos + 1038);
1010 return -1 * (100000 *
m_nPhotos + 1039);
1013 return -1 * (100000 *
m_nPhotos + 1040);
1016 return -1 * (100000 *
m_nPhotos + 1041);
1019 return -1 * (100000 *
m_nPhotos + 1042);
1022 return -1 * (100000 *
m_nPhotos + 1043);
1025 return -1 * (100000 *
m_nPhotos + 1044);
1028 return -1 * (100000 *
m_nPhotos + 1045);
1031 return -1 * (100000 *
m_nPhotos + 1046);
1034 return -1 * (100000 *
m_nPhotos + 1047);
1037 return -1 * (100000 *
m_nPhotos + 1048);
1040 return -1 * (100000 *
m_nPhotos + 1049);
1043 return -1 * (100000 *
m_nPhotos + 1050);
1046 return -1 * (100000 *
m_nPhotos + 1051);
1049 return -1 * (100000 *
m_nPhotos + 1052);
1052 return -1 * (100000 *
m_nPhotos + 1053);
1055 return -1 * (100000 *
m_nPhotos + 1054);
1058 return -1 * (100000 *
m_nPhotos + 1055);
1061 return -1 * (100000 *
m_nPhotos + 1056);
1064 return -1 * (100000 *
m_nPhotos + 1057);
1067 return -1 * (100000 *
m_nPhotos + 1058);
1070 return -1 * (100000 *
m_nPhotos + 1059);
1073 return -1 * (100000 *
m_nPhotos + 1060);
1076 return -1 * (100000 *
m_nPhotos + 1061);
1079 return -1 * (100000 *
m_nPhotos + 1062);
1082 return -1 * (100000 *
m_nPhotos + 1063);
1085 return -1 * (100000 *
m_nPhotos + 1064);
1088 return -1 * (100000 *
m_nPhotos + 1065);
1091 return -1 * (100000 *
m_nPhotos + 1066);
1094 return -1 * (100000 *
m_nPhotos + 1067);
1097 return -1 * (100000 *
m_nPhotos + 1068);
1100 return -1 * (100000 *
m_nPhotos + 1069);
1103 return -1 * (100000 *
m_nPhotos + 1070);
1106 return -1 * (100000 *
m_nPhotos + 1071);
1109 return -1 * (100000 *
m_nPhotos + 1072);
1112 return -1 * (100000 *
m_nPhotos + 1073);
1115 return -1 * (100000 *
m_nPhotos + 1074);
1118 return -1 * (100000 *
m_nPhotos + 1075);
1121 return -1 * (100000 *
m_nPhotos + 1076);
1124 return -1 * (100000 *
m_nPhotos + 1077);
1127 return -1 * (100000 *
m_nPhotos + 1078);
1130 return -1 * (100000 *
m_nPhotos + 1079);
1133 return -1 * (100000 *
m_nPhotos + 1080);
1136 return -1 * (100000 *
m_nPhotos + 1081);
1139 return -1 * (100000 *
m_nPhotos + 1082);
1142 return -1 * (100000 *
m_nPhotos + 1083);
1145 return -1 * (100000 *
m_nPhotos + 1084);
1148 return -1 * (100000 *
m_nPhotos + 1085);
1151 return -1 * (100000 *
m_nPhotos + 1086);
1154 return -1 * (100000 *
m_nPhotos + 1087);
1157 return -1 * (100000 *
m_nPhotos + 1088);
1160 return -1 * (100000 *
m_nPhotos + 1089);
1163 return -1 * (100000 *
m_nPhotos + 1090);
1166 return -1 * (100000 *
m_nPhotos + 1091);
1169 return -1 * (100000 *
m_nPhotos + 1092);
1172 return -1 * (100000 *
m_nPhotos + 1093);
1175 return -1 * (100000 *
m_nPhotos + 1094);
1178 return -1 * (100000 *
m_nPhotos + 1095);
1181 return -1 * (100000 *
m_nPhotos + 1096);
1184 return -1 * (100000 *
m_nPhotos + 1097);
1187 return -1 * (100000 *
m_nPhotos + 1098);
1190 return -1 * (100000 *
m_nPhotos + 1099);
1193 return -1 * (100000 *
m_nPhotos + 1100);
1196 return -1 * (100000 *
m_nPhotos + 1101);
1199 return -1 * (100000 *
m_nPhotos + 1102);
1202 return -1 * (100000 *
m_nPhotos + 1103);
1205 return -1 * (100000 *
m_nPhotos + 1104);
1208 return -1 * (100000 *
m_nPhotos + 1105);
1211 return -1 * (100000 *
m_nPhotos + 1106);
1214 return -1 * (100000 *
m_nPhotos + 1107);
1217 return -1 * (100000 *
m_nPhotos + 1108);
1220 return -1 * (100000 *
m_nPhotos + 1109);
1223 return -1 * (100000 *
m_nPhotos + 1110);
1226 return -1 * (100000 *
m_nPhotos + 1111);
1229 return -1 * (100000 *
m_nPhotos + 1112);
1232 return -1 * (100000 *
m_nPhotos + 1113);
1235 return -1 * (100000 *
m_nPhotos + 1114);
1238 return -1 * (100000 *
m_nPhotos + 1115);
1241 return -1 * (100000 *
m_nPhotos + 1116);
1244 return -1 * (100000 *
m_nPhotos + 1117);
1247 return -1 * (100000 *
m_nPhotos + 1118);
1250 return -1 * (100000 *
m_nPhotos + 1119);
1253 return -1 * (100000 *
m_nPhotos + 1120);
1256 return -1 * (100000 *
m_nPhotos + 1121);
1259 return -1 * (100000 *
m_nPhotos + 1122);
1262 return -1 * (100000 *
m_nPhotos + 1123);
1265 return -1 * (100000 *
m_nPhotos + 1124);
1268 return -1 * (100000 *
m_nPhotos + 1125);
1271 return -1 * (100000 *
m_nPhotos + 1126);
1274 return -1 * (100000 *
m_nPhotos + 1127);
1277 return -1 * (100000 *
m_nPhotos + 1128);
1280 return -1 * (100000 *
m_nPhotos + 1129);
1283 return -1 * (100000 *
m_nPhotos + 1130);
1286 return -1 * (100000 *
m_nPhotos + 1131);
1289 return -1 * (100000 *
m_nPhotos + 1132);
1292 return -1 * (100000 *
m_nPhotos + 1133);
1295 return -1 * (100000 *
m_nPhotos + 1134);
1298 return -1 * (100000 *
m_nPhotos + 1135);
1301 return -1 * (100000 *
m_nPhotos + 1136);
1304 return -1 * (100000 *
m_nPhotos + 1137);
1307 return -1 * (100000 *
m_nPhotos + 1138);
1310 return -1 * (100000 *
m_nPhotos + 1139);
1313 return -1 * (100000 *
m_nPhotos + 1140);
1316 return -1 * (100000 *
m_nPhotos + 1141);
1319 return -1 * (100000 *
m_nPhotos + 1142);
1322 return -1 * (100000 *
m_nPhotos + 1143);
1325 return -1 * (100000 *
m_nPhotos + 1144);
1328 return -1 * (100000 *
m_nPhotos + 1145);
1331 return -1 * (100000 *
m_nPhotos + 1146);
1334 return -1 * (100000 *
m_nPhotos + 1147);
1337 return -1 * (100000 *
m_nPhotos + 1148);
1340 return -1 * (100000 *
m_nPhotos + 1149);
1343 return -1 * (100000 *
m_nPhotos + 1150);
1346 return -1 * (100000 *
m_nPhotos + 1151);
1349 return -1 * (100000 *
m_nPhotos + 1152);
1352 return -1 * (100000 *
m_nPhotos + 1153);
1355 return -1 * (100000 *
m_nPhotos + 1154);
1358 return -1 * (100000 *
m_nPhotos + 1155);
1361 return -1 * (100000 *
m_nPhotos + 1156);
1364 return -1 * (100000 *
m_nPhotos + 1157);
1367 return -1 * (100000 *
m_nPhotos + 1158);
1370 return -1 * (100000 *
m_nPhotos + 1159);
1373 return -1 * (100000 *
m_nPhotos + 1160);
1376 return -1 * (100000 *
m_nPhotos + 1161);
1379 return -1 * (100000 *
m_nPhotos + 1162);
1382 return -1 * (100000 *
m_nPhotos + 1163);
1385 return -1 * (100000 *
m_nPhotos + 1164);
1388 return -1 * (100000 *
m_nPhotos + 1165);
1391 return -1 * (100000 *
m_nPhotos + 1166);
1394 return -1 * (100000 *
m_nPhotos + 1167);
1397 return -1 * (100000 *
m_nPhotos + 1168);
1400 return -1 * (100000 *
m_nPhotos + 1169);
1403 return -1 * (100000 *
m_nPhotos + 1170);
1406 return -1 * (100000 *
m_nPhotos + 1171);
1409 return -1 * (100000 *
m_nPhotos + 1172);
1412 return -1 * (100000 *
m_nPhotos + 1173);
1415 return -1 * (100000 *
m_nPhotos + 1174);
1418 return -1 * (100000 *
m_nPhotos + 1175);
1421 return -1 * (100000 *
m_nPhotos + 1176);
1424 return -1 * (100000 *
m_nPhotos + 1177);
1427 return -1 * (100000 *
m_nPhotos + 1178);
1430 return -1 * (100000 *
m_nPhotos + 1179);
1433 return -1 * (100000 *
m_nPhotos + 1180);
1436 return -1 * (100000 *
m_nPhotos + 1181);
1439 return -1 * (100000 *
m_nPhotos + 1182);
1442 return -1 * (100000 *
m_nPhotos + 1183);
1445 return -1 * (100000 *
m_nPhotos + 1184);
1448 return -1 * (100000 *
m_nPhotos + 1185);
1451 return -1 * (100000 *
m_nPhotos + 1186);
1454 return -1 * (100000 *
m_nPhotos + 1187);
1457 return -1 * (100000 *
m_nPhotos + 1188);
1460 return -1 * (100000 *
m_nPhotos + 1189);
1463 return -1 * (100000 *
m_nPhotos + 1190);
1466 return -1 * (100000 *
m_nPhotos + 1191);
1469 return -1 * (100000 *
m_nPhotos + 1192);
1472 return -1 * (100000 *
m_nPhotos + 1193);
1475 return -1 * (100000 *
m_nPhotos + 1194);
1478 return -1 * (100000 *
m_nPhotos + 1195);
1481 return -1 * (100000 *
m_nPhotos + 1196);
1484 return -1 * (100000 *
m_nPhotos + 1197);
1487 return -1 * (100000 *
m_nPhotos + 1198);
1490 return -1 * (100000 *
m_nPhotos + 1199);
1493 return -1 * (100000 *
m_nPhotos + 1200);
1496 return -1 * (100000 *
m_nPhotos + 1201);
1499 return -1 * (100000 *
m_nPhotos + 1202);
1502 return -1 * (100000 *
m_nPhotos + 1203);
1505 return -1 * (100000 *
m_nPhotos + 1204);
1508 return -1 * (100000 *
m_nPhotos + 1205);
1511 return -1 * (100000 *
m_nPhotos + 1206);
1514 return -1 * (100000 *
m_nPhotos + 1207);
1517 return -1 * (100000 *
m_nPhotos + 1208);
1520 return -1 * (100000 *
m_nPhotos + 1209);
1523 return -1 * (100000 *
m_nPhotos + 1210);
1526 return -1 * (100000 *
m_nPhotos + 1211);
1529 return -1 * (100000 *
m_nPhotos + 1212);
1532 return -1 * (100000 *
m_nPhotos + 1213);
1535 return -1 * (100000 *
m_nPhotos + 1214);
1538 return -1 * (100000 *
m_nPhotos + 1215);
1541 return -1 * (100000 *
m_nPhotos + 1216);
1544 return -1 * (100000 *
m_nPhotos + 1217);
1547 return -1 * (100000 *
m_nPhotos + 1218);
1550 return -1 * (100000 *
m_nPhotos + 1219);
1553 return -1 * (100000 *
m_nPhotos + 1220);
1556 return -1 * (100000 *
m_nPhotos + 1221);
1559 return -1 * (100000 *
m_nPhotos + 1222);
1562 return -1 * (100000 *
m_nPhotos + 1223);
1565 return -1 * (100000 *
m_nPhotos + 1224);
1568 return -1 * (100000 *
m_nPhotos + 1225);
1571 return -1 * (100000 *
m_nPhotos + 1226);
1574 return -1 * (100000 *
m_nPhotos + 1227);
1577 return -1 * (100000 *
m_nPhotos + 1228);
1580 return -1 * (100000 *
m_nPhotos + 1229);
1583 return -1 * (100000 *
m_nPhotos + 1230);
1586 return -1 * (100000 *
m_nPhotos + 1231);
1589 return -1 * (100000 *
m_nPhotos + 1232);
1592 return -1 * (100000 *
m_nPhotos + 1233);
1595 return -1 * (100000 *
m_nPhotos + 1234);
1598 return -1 * (100000 *
m_nPhotos + 1235);
1601 return -1 * (100000 *
m_nPhotos + 1236);
1604 return -1 * (100000 *
m_nPhotos + 1237);
1607 return -1 * (100000 *
m_nPhotos + 1238);
1610 return -1 * (100000 *
m_nPhotos + 1239);
1613 return -1 * (100000 *
m_nPhotos + 1240);
1616 return -1 * (100000 *
m_nPhotos + 1241);
1619 return -1 * (100000 *
m_nPhotos + 1242);
1622 return -1 * (100000 *
m_nPhotos + 1243);
1625 return -1 * (100000 *
m_nPhotos + 1244);
1628 return -1 * (100000 *
m_nPhotos + 1245);
1631 return -1 * (100000 *
m_nPhotos + 1246);
1634 return -1 * (100000 *
m_nPhotos + 1247);
1637 return -1 * (100000 *
m_nPhotos + 1248);
1640 return -1 * (100000 *
m_nPhotos + 1249);
1643 return -1 * (100000 *
m_nPhotos + 1250);
1646 return -1 * (100000 *
m_nPhotos + 1251);
1649 return -1 * (100000 *
m_nPhotos + 1252);
1652 return -1 * (100000 *
m_nPhotos + 1253);
1655 return -1 * (100000 *
m_nPhotos + 1254);
1658 return -1 * (100000 *
m_nPhotos + 1255);
1661 return -1 * (100000 *
m_nPhotos + 1256);
1664 return -1 * (100000 *
m_nPhotos + 1257);
1667 return -1 * (100000 *
m_nPhotos + 1258);
1670 return -1 * (100000 *
m_nPhotos + 1259);
1673 return -1 * (100000 *
m_nPhotos + 1260);
1676 return -1 * (100000 *
m_nPhotos + 1261);
1679 return -1 * (100000 *
m_nPhotos + 1262);
1682 return -1 * (100000 *
m_nPhotos + 1263);
1685 return -1 * (100000 *
m_nPhotos + 1264);
1687 return -1 * (int)genpart.size();
int Mode_Bs0(std::vector< int > genDAU)
returns Bs0 mode identifier
int Mode_anti_Bs0(std::vector< int > genDAU)
returns Bs0bar mode identifier
int m_nPhotos
number of photons
bool PcheckDecay(std::vector< int > gp, int da1, int da2)
check decay with two daughters
Abstract base class for different kinds of events.