1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006
|
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
"""
Python interface to the FastJet jet clustering package.
Usage is similar to the C++ case, with a few small changes noted
below.
Notes
-----
- You can pass a python list such as [PseudoJet0, PseudoJet1, ...]
to any FastJet call that expects a vector of PseudoJets
- Any FastJet call that in C++ returns a vector of PseudoJets will in
python return a tuple (or list) of PseudoJets
- for many objects that provide definitions of some kind, __str__
call maps to description(). So, for example, you can just do
jet_def = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.4)
print jet_def
- for combinations of selectors, (&&, || and !) in C++ map to
(&, | and ~) in python
- Selector::pass is remapped to Selector._pass
- remember that python uses reference, e.g. a = b means that a is a
reference to b. If you need to copy a PseudoJet (pj), with a view to
altering it, do 'pjcopy = PseudoJet(pj)'
- the python documentation has been automatically generated from the
C++ doxygen documentation: python/C++ differences are not indicated,
and certain methods and classes may be documented that were not
included in the python conversion and/or configured for this
particular installation.
Example
-------
from fastjet import *
particles = []
particles.append(PseudoJet(100.0, 0.0, 0.0, 100.0)) # px, py, pz, E
particles.append(PseudoJet(150.0, 0.0, 0.0, 150.0))
R = 0.4
jet_def = JetDefinition(antikt_algorithm, R)
jets = jet_def(particles)
print jet_def
for jet in jets: print jet
"""
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError("Python 2.7 or later required")
# Import the low-level C/C++ module
if __package__ or "." in __name__:
from . import _fastjet
else:
import _fastjet
try:
import builtins as __builtin__
except ImportError:
import __builtin__
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def _swig_setattr_nondynamic_instance_variable(set):
def set_instance_attr(self, name, value):
if name == "thisown":
self.this.own(value)
elif name == "this":
set(self, name, value)
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
set(self, name, value)
else:
raise AttributeError("You cannot add instance attributes to %s" % self)
return set_instance_attr
def _swig_setattr_nondynamic_class_variable(set):
def set_class_attr(cls, name, value):
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
set(cls, name, value)
else:
raise AttributeError("You cannot add class attributes to %s" % cls)
return set_class_attr
def _swig_add_metaclass(metaclass):
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
def wrapper(cls):
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
return wrapper
class _SwigNonDynamicMeta(type):
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
class SwigPyIterator(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _fastjet.delete_SwigPyIterator
def value(self):
return _fastjet.SwigPyIterator_value(self)
def incr(self, n=1):
return _fastjet.SwigPyIterator_incr(self, n)
def decr(self, n=1):
return _fastjet.SwigPyIterator_decr(self, n)
def distance(self, x):
return _fastjet.SwigPyIterator_distance(self, x)
def equal(self, x):
return _fastjet.SwigPyIterator_equal(self, x)
def copy(self):
return _fastjet.SwigPyIterator_copy(self)
def next(self):
return _fastjet.SwigPyIterator_next(self)
def __next__(self):
return _fastjet.SwigPyIterator___next__(self)
def previous(self):
return _fastjet.SwigPyIterator_previous(self)
def advance(self, n):
return _fastjet.SwigPyIterator_advance(self, n)
def __eq__(self, x):
return _fastjet.SwigPyIterator___eq__(self, x)
def __ne__(self, x):
return _fastjet.SwigPyIterator___ne__(self, x)
def __iadd__(self, n):
return _fastjet.SwigPyIterator___iadd__(self, n)
def __isub__(self, n):
return _fastjet.SwigPyIterator___isub__(self, n)
def __add__(self, n):
return _fastjet.SwigPyIterator___add__(self, n)
def __sub__(self, *args):
return _fastjet.SwigPyIterator___sub__(self, *args)
def __iter__(self):
return self
# Register SwigPyIterator in _fastjet:
_fastjet.SwigPyIterator_swigregister(SwigPyIterator)
class vectorPJ(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def iterator(self):
return _fastjet.vectorPJ_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _fastjet.vectorPJ___nonzero__(self)
def __bool__(self):
return _fastjet.vectorPJ___bool__(self)
def __len__(self):
return _fastjet.vectorPJ___len__(self)
def __getslice__(self, i, j):
return _fastjet.vectorPJ___getslice__(self, i, j)
def __setslice__(self, *args):
return _fastjet.vectorPJ___setslice__(self, *args)
def __delslice__(self, i, j):
return _fastjet.vectorPJ___delslice__(self, i, j)
def __delitem__(self, *args):
return _fastjet.vectorPJ___delitem__(self, *args)
def __getitem__(self, *args):
return _fastjet.vectorPJ___getitem__(self, *args)
def __setitem__(self, *args):
return _fastjet.vectorPJ___setitem__(self, *args)
def pop(self):
return _fastjet.vectorPJ_pop(self)
def append(self, x):
return _fastjet.vectorPJ_append(self, x)
def empty(self):
return _fastjet.vectorPJ_empty(self)
def size(self):
return _fastjet.vectorPJ_size(self)
def swap(self, v):
return _fastjet.vectorPJ_swap(self, v)
def begin(self):
return _fastjet.vectorPJ_begin(self)
def end(self):
return _fastjet.vectorPJ_end(self)
def rbegin(self):
return _fastjet.vectorPJ_rbegin(self)
def rend(self):
return _fastjet.vectorPJ_rend(self)
def clear(self):
return _fastjet.vectorPJ_clear(self)
def get_allocator(self):
return _fastjet.vectorPJ_get_allocator(self)
def pop_back(self):
return _fastjet.vectorPJ_pop_back(self)
def erase(self, *args):
return _fastjet.vectorPJ_erase(self, *args)
def __init__(self, *args):
_fastjet.vectorPJ_swiginit(self, _fastjet.new_vectorPJ(*args))
def push_back(self, x):
return _fastjet.vectorPJ_push_back(self, x)
def front(self):
return _fastjet.vectorPJ_front(self)
def back(self):
return _fastjet.vectorPJ_back(self)
def assign(self, n, x):
return _fastjet.vectorPJ_assign(self, n, x)
def resize(self, *args):
return _fastjet.vectorPJ_resize(self, *args)
def insert(self, *args):
return _fastjet.vectorPJ_insert(self, *args)
def reserve(self, n):
return _fastjet.vectorPJ_reserve(self, n)
def capacity(self):
return _fastjet.vectorPJ_capacity(self)
__swig_destroy__ = _fastjet.delete_vectorPJ
# Register vectorPJ in _fastjet:
_fastjet.vectorPJ_swigregister(vectorPJ)
from _fastjet import FastJetError
_INCLUDE_FASTJET_CONFIG_AUTO_H = _fastjet._INCLUDE_FASTJET_CONFIG_AUTO_H
FASTJET_HAVE_DLFCN_H = _fastjet.FASTJET_HAVE_DLFCN_H
FASTJET_HAVE_EXECINFO_H = _fastjet.FASTJET_HAVE_EXECINFO_H
FASTJET_HAVE_INTTYPES_H = _fastjet.FASTJET_HAVE_INTTYPES_H
FASTJET_HAVE_LIBM = _fastjet.FASTJET_HAVE_LIBM
FASTJET_HAVE_MEMORY_H = _fastjet.FASTJET_HAVE_MEMORY_H
FASTJET_HAVE_STDINT_H = _fastjet.FASTJET_HAVE_STDINT_H
FASTJET_HAVE_STDLIB_H = _fastjet.FASTJET_HAVE_STDLIB_H
FASTJET_HAVE_STRINGS_H = _fastjet.FASTJET_HAVE_STRINGS_H
FASTJET_HAVE_STRING_H = _fastjet.FASTJET_HAVE_STRING_H
FASTJET_HAVE_SYS_STAT_H = _fastjet.FASTJET_HAVE_SYS_STAT_H
FASTJET_HAVE_SYS_TYPES_H = _fastjet.FASTJET_HAVE_SYS_TYPES_H
FASTJET_HAVE_UNISTD_H = _fastjet.FASTJET_HAVE_UNISTD_H
FASTJET_LT_OBJDIR = _fastjet.FASTJET_LT_OBJDIR
FASTJET_PACKAGE = _fastjet.FASTJET_PACKAGE
FASTJET_PACKAGE_BUGREPORT = _fastjet.FASTJET_PACKAGE_BUGREPORT
FASTJET_PACKAGE_NAME = _fastjet.FASTJET_PACKAGE_NAME
FASTJET_PACKAGE_STRING = _fastjet.FASTJET_PACKAGE_STRING
FASTJET_PACKAGE_TARNAME = _fastjet.FASTJET_PACKAGE_TARNAME
FASTJET_PACKAGE_URL = _fastjet.FASTJET_PACKAGE_URL
FASTJET_PACKAGE_VERSION = _fastjet.FASTJET_PACKAGE_VERSION
FASTJET_STDC_HEADERS = _fastjet.FASTJET_STDC_HEADERS
FASTJET_VERSION = _fastjet.FASTJET_VERSION
FASTJET_VERSION_MAJOR = _fastjet.FASTJET_VERSION_MAJOR
FASTJET_VERSION_MINOR = _fastjet.FASTJET_VERSION_MINOR
FASTJET_VERSION_NUMBER = _fastjet.FASTJET_VERSION_NUMBER
FASTJET_VERSION_PATCHLEVEL = _fastjet.FASTJET_VERSION_PATCHLEVEL
__FASTJET_BASICRANDOM_HH__ = _fastjet.__FASTJET_BASICRANDOM_HH__
def __default_random_generator(__iseed):
return _fastjet.__default_random_generator(__iseed)
class LimitedWarning(object):
r"""
class to provide facilities for giving warnings up to some maximum number of
times and to provide global summaries of warnings that have been issued.
C++ includes: fastjet/LimitedWarning.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`LimitedWarning(int max_warn_in)`
constructor that provides a user-set max number of warnings
"""
_fastjet.LimitedWarning_swiginit(self, _fastjet.new_LimitedWarning(*args))
def warn(self, *args):
r"""
`warn(const std::string &warning, std::ostream *ostr)`
outputs a warning to the specified stream
"""
return _fastjet.LimitedWarning_warn(self, *args)
@staticmethod
def set_default_stream(ostr):
r"""
`set_default_stream(std::ostream *ostr)`
sets the default output stream for all warnings (by default cerr; passing a null
pointer prevents warnings from being output)
"""
return _fastjet.LimitedWarning_set_default_stream(ostr)
@staticmethod
def set_default_max_warn(max_warn):
r"""
`set_default_max_warn(int max_warn)`
sets the default maximum number of warnings of a given kind before warning
messages are silenced.
"""
return _fastjet.LimitedWarning_set_default_max_warn(max_warn)
def max_warn(self):
r"""
`max_warn() const -> int`
the maximum number of warning messages that will be printed by this instance of
the class
"""
return _fastjet.LimitedWarning_max_warn(self)
def n_warn_so_far(self):
r"""
`n_warn_so_far() const -> int`
the number of times so far that a warning has been registered with this instance
of the class.
"""
return _fastjet.LimitedWarning_n_warn_so_far(self)
@staticmethod
def summary():
r"""
`summary() -> std::string`
returns a summary of all the warnings that came through the LimiteWarning class
"""
return _fastjet.LimitedWarning_summary()
__swig_destroy__ = _fastjet.delete_LimitedWarning
# Register LimitedWarning in _fastjet:
_fastjet.LimitedWarning_swigregister(LimitedWarning)
cvar = _fastjet.cvar
pi = cvar.pi
twopi = cvar.twopi
pisq = cvar.pisq
zeta2 = cvar.zeta2
zeta3 = cvar.zeta3
eulergamma = cvar.eulergamma
ln2 = cvar.ln2
def LimitedWarning_set_default_stream(ostr):
r"""
`set_default_stream(std::ostream *ostr)`
sets the default output stream for all warnings (by default cerr; passing a null
pointer prevents warnings from being output)
"""
return _fastjet.LimitedWarning_set_default_stream(ostr)
def LimitedWarning_set_default_max_warn(max_warn):
r"""
`set_default_max_warn(int max_warn)`
sets the default maximum number of warnings of a given kind before warning
messages are silenced.
"""
return _fastjet.LimitedWarning_set_default_max_warn(max_warn)
def LimitedWarning_summary():
r"""
`summary() -> std::string`
returns a summary of all the warnings that came through the LimiteWarning class
"""
return _fastjet.LimitedWarning_summary()
class Error(object):
r"""
base class corresponding to errors that can be thrown by FastJet
C++ includes: fastjet/Error.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`Error(const std::string &message)`
ctor from an error message
Parameters
----------
* `message` :
to be printed Note: in addition to the error message, one can choose to
print the backtrace (showing the last few calls before the error) by using
set_print_backtrace(true). The default is "false".
"""
_fastjet.Error_swiginit(self, _fastjet.new_Error(*args))
__swig_destroy__ = _fastjet.delete_Error
def message(self):
r"""
`message() const -> std::string`
the error message
"""
return _fastjet.Error_message(self)
def description(self):
return _fastjet.Error_description(self)
@staticmethod
def set_print_errors(print_errors):
r"""
`set_print_errors(bool print_errors)`
controls whether the error message (and the backtrace, if its printing is
enabled) is printed out or not
"""
return _fastjet.Error_set_print_errors(print_errors)
@staticmethod
def set_print_backtrace(enabled):
r"""
`set_print_backtrace(bool enabled)`
controls whether the backtrace is printed out with the error message or not.
The default is "false".
"""
return _fastjet.Error_set_print_backtrace(enabled)
@staticmethod
def set_default_stream(ostr):
r"""
`set_default_stream(std::ostream *ostr)`
sets the default output stream for all errors; by default cerr; if it's null
then error output is suppressed.
"""
return _fastjet.Error_set_default_stream(ostr)
def __str__(self):
return _fastjet.Error___str__(self)
# Register Error in _fastjet:
_fastjet.Error_swigregister(Error)
def Error_set_print_errors(print_errors):
r"""
`set_print_errors(bool print_errors)`
controls whether the error message (and the backtrace, if its printing is
enabled) is printed out or not
"""
return _fastjet.Error_set_print_errors(print_errors)
def Error_set_print_backtrace(enabled):
r"""
`set_print_backtrace(bool enabled)`
controls whether the backtrace is printed out with the error message or not.
The default is "false".
"""
return _fastjet.Error_set_print_backtrace(enabled)
def Error_set_default_stream(ostr):
r"""
`set_default_stream(std::ostream *ostr)`
sets the default output stream for all errors; by default cerr; if it's null
then error output is suppressed.
"""
return _fastjet.Error_set_default_stream(ostr)
class InternalError(Error):
r"""
class corresponding to critical internal errors
This is an error class (derived from Error) meant for serious, critical,
internal errors that we still want to be catchable by an end-user [e.g. a
serious issue in clustering where the end-user can catch it and retry with a
different strategy]
Please directly contact the FastJet authors if you see such an error.
C++ includes: fastjet/Error.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, message_in):
r"""
`InternalError(const std::string &message_in)`
ctor with error message: just add a bit of info to the message and pass it to
the base class
"""
_fastjet.InternalError_swiginit(self, _fastjet.new_InternalError(message_in))
__swig_destroy__ = _fastjet.delete_InternalError
# Register InternalError in _fastjet:
_fastjet.InternalError_swigregister(InternalError)
class PseudoJetStructureBase(object):
r"""
Contains any information related to the clustering that should be directly
accessible to PseudoJet.
By default, this class implements basic access to the ClusterSequence related to
a PseudoJet (like its constituents or its area). But it can be overloaded in
order e.g. to give access to the jet substructure.
C++ includes: fastjet/PseudoJetStructureBase.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self):
r"""
`PseudoJetStructureBase()`
default ctor
"""
_fastjet.PseudoJetStructureBase_swiginit(self, _fastjet.new_PseudoJetStructureBase())
__swig_destroy__ = _fastjet.delete_PseudoJetStructureBase
def description(self):
r"""
`description() const -> std::string`
description
"""
return _fastjet.PseudoJetStructureBase_description(self)
def has_associated_cluster_sequence(self):
r"""
`has_associated_cluster_sequence() const -> bool`
returns true if there is an associated ClusterSequence
"""
return _fastjet.PseudoJetStructureBase_has_associated_cluster_sequence(self)
def associated_cluster_sequence(self):
r"""
`associated_cluster_sequence() const -> const ClusterSequence *`
get a (const) pointer to the parent ClusterSequence (NULL if inexistent)
"""
return _fastjet.PseudoJetStructureBase_associated_cluster_sequence(self)
def has_valid_cluster_sequence(self):
r"""
`has_valid_cluster_sequence() const -> bool`
returns true if this PseudoJet has an associated and still valid
ClusterSequence.
"""
return _fastjet.PseudoJetStructureBase_has_valid_cluster_sequence(self)
def validated_cs(self):
r"""
`validated_cs() const -> const ClusterSequence *`
if the jet has a valid associated cluster sequence then return a pointer to it;
otherwise throw an error
"""
return _fastjet.PseudoJetStructureBase_validated_cs(self)
def validated_csab(self):
r"""
`validated_csab() const -> const ClusterSequenceAreaBase *`
if the jet has valid area information then return a pointer to the associated
ClusterSequenceAreaBase object; otherwise throw an error
"""
return _fastjet.PseudoJetStructureBase_validated_csab(self)
def has_partner(self, reference, partner):
r"""
`has_partner(const PseudoJet &reference, PseudoJet &partner) const -> bool`
check if it has been recombined with another PseudoJet in which case, return its
partner through the argument.
Otherwise, 'partner' is set to 0.
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_has_partner(self, reference, partner)
def has_child(self, reference, child):
r"""
`has_child(const PseudoJet &reference, PseudoJet &child) const -> bool`
check if it has been recombined with another PseudoJet in which case, return its
child through the argument.
Otherwise, 'child' is set to 0.
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_has_child(self, reference, child)
def has_parents(self, reference, parent1, parent2):
r"""
`has_parents(const PseudoJet &reference, PseudoJet &parent1, PseudoJet &parent2)
const -> bool`
check if it is the product of a recombination, in which case return the 2
parents through the 'parent1' and 'parent2' arguments.
Otherwise, set these to 0.
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_has_parents(self, reference, parent1, parent2)
def object_in_jet(self, reference, jet):
r"""
`object_in_jet(const PseudoJet &reference, const PseudoJet &jet) const -> bool`
check if the reference PseudoJet is contained the second one passed as argument.
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_object_in_jet(self, reference, jet)
def has_constituents(self):
r"""
`has_constituents() const -> bool`
return true if the structure supports constituents.
false by default
"""
return _fastjet.PseudoJetStructureBase_has_constituents(self)
def constituents(self, reference):
r"""
`constituents(const PseudoJet &reference) const -> std::vector< PseudoJet >`
retrieve the constituents.
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_constituents(self, reference)
def has_exclusive_subjets(self):
r"""
`has_exclusive_subjets() const -> bool`
return true if the structure supports exclusive_subjets.
"""
return _fastjet.PseudoJetStructureBase_has_exclusive_subjets(self)
def exclusive_subjets(self, reference, dcut):
r"""
`exclusive_subjets(const PseudoJet &reference, const double &dcut) const ->
std::vector< PseudoJet >`
return a vector of all subjets of the current jet (in the sense of the exclusive
algorithm) that would be obtained when running the algorithm with the given
dcut.
Time taken is O(m ln m), where m is the number of subjets that are found. If m
gets to be of order of the total number of constituents in the jet, this could
be substantially slower than just getting that list of constituents.
By default, throws an Error
Note: in a future major release of FastJet (4 or higher), "const double &
dcut" may be replaced with "const double dcut", requiring a modification of
derived classes that overload this function.
"""
return _fastjet.PseudoJetStructureBase_exclusive_subjets(self, reference, dcut)
def n_exclusive_subjets(self, reference, dcut):
r"""
`n_exclusive_subjets(const PseudoJet &reference, const double &dcut) const ->
int`
return the size of exclusive_subjets(...); still n ln n with same coefficient,
but marginally more efficient than manually taking exclusive_subjets.size()
By default, throws an Error
Note: in a future major release of FastJet (4 or higher), "const double &
dcut" may be replaced with "const double dcut", requiring a modification of
derived classes that overload this function.
"""
return _fastjet.PseudoJetStructureBase_n_exclusive_subjets(self, reference, dcut)
def exclusive_subjets_up_to(self, reference, nsub):
r"""
`exclusive_subjets_up_to(const PseudoJet &reference, int nsub) const ->
std::vector< PseudoJet >`
return the list of subjets obtained by unclustering the supplied jet down to
nsub subjets (or all constituents if there are fewer than nsub).
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_exclusive_subjets_up_to(self, reference, nsub)
def exclusive_subdmerge(self, reference, nsub):
r"""
`exclusive_subdmerge(const PseudoJet &reference, int nsub) const -> double`
return the dij that was present in the merging nsub+1 -> nsub subjets inside
this jet.
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_exclusive_subdmerge(self, reference, nsub)
def exclusive_subdmerge_max(self, reference, nsub):
r"""
`exclusive_subdmerge_max(const PseudoJet &reference, int nsub) const -> double`
return the maximum dij that occurred in the whole event at the stage that the
nsub+1 -> nsub merge of subjets occurred inside this jet.
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_exclusive_subdmerge_max(self, reference, nsub)
def has_pieces(self, arg2):
r"""
`has_pieces(const PseudoJet &) const -> bool`
return true if the structure supports pieces.
false by default NB: "reference" is commented to avoid unused-variable
compiler warnings
"""
return _fastjet.PseudoJetStructureBase_has_pieces(self, arg2)
def pieces(self, arg2):
r"""
`pieces(const PseudoJet &) const -> std::vector< PseudoJet >`
retrieve the pieces building the jet.
By default, throws an Error. NB: "reference" is commented to avoid unused-
variable compiler warnings
"""
return _fastjet.PseudoJetStructureBase_pieces(self, arg2)
def has_area(self):
r"""
`has_area() const -> bool`
check if it has a defined area
false by default
"""
return _fastjet.PseudoJetStructureBase_has_area(self)
def area(self, reference):
r"""
`area(const PseudoJet &reference) const -> double`
return the jet (scalar) area.
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_area(self, reference)
def area_error(self, reference):
r"""
`area_error(const PseudoJet &reference) const -> double`
return the error (uncertainty) associated with the determination of the area of
this jet.
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_area_error(self, reference)
def area_4vector(self, reference):
r"""
`area_4vector(const PseudoJet &reference) const -> PseudoJet`
return the jet 4-vector area.
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_area_4vector(self, reference)
def is_pure_ghost(self, reference):
r"""
`is_pure_ghost(const PseudoJet &reference) const -> bool`
true if this jet is made exclusively of ghosts.
By default, throws an Error
"""
return _fastjet.PseudoJetStructureBase_is_pure_ghost(self, reference)
# Register PseudoJetStructureBase in _fastjet:
_fastjet.PseudoJetStructureBase_swigregister(PseudoJetStructureBase)
class PseudoJet(object):
r"""
Class to contain pseudojets, including minimal information of use to jet-
clustering routines.
C++ includes: fastjet/PseudoJet.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`PseudoJet(const siscone_spherical::CSphmomentum &four_vector)`
shortcut for converting siscone CSphmomentum into PseudoJet
"""
_fastjet.PseudoJet_swiginit(self, _fastjet.new_PseudoJet(*args))
__swig_destroy__ = _fastjet.delete_PseudoJet
def E(self):
r"""
`E() const -> double`
"""
return _fastjet.PseudoJet_E(self)
def e(self):
r"""
`e() const -> double`
"""
return _fastjet.PseudoJet_e(self)
def px(self):
r"""
`px() const -> double`
"""
return _fastjet.PseudoJet_px(self)
def py(self):
r"""
`py() const -> double`
"""
return _fastjet.PseudoJet_py(self)
def pz(self):
r"""
`pz() const -> double`
"""
return _fastjet.PseudoJet_pz(self)
def phi(self):
r"""
`phi() const -> double`
returns phi (in the range 0..2pi)
"""
return _fastjet.PseudoJet_phi(self)
def phi_std(self):
r"""
`phi_std() const -> double`
returns phi in the range -pi..pi
"""
return _fastjet.PseudoJet_phi_std(self)
def phi_02pi(self):
r"""
`phi_02pi() const -> double`
returns phi in the range 0..2pi
"""
return _fastjet.PseudoJet_phi_02pi(self)
def rap(self):
r"""
`rap() const -> double`
returns the rapidity or some large value when the rapidity is infinite
"""
return _fastjet.PseudoJet_rap(self)
def rapidity(self):
r"""
`rapidity() const -> double`
the same as rap()
"""
return _fastjet.PseudoJet_rapidity(self)
def pseudorapidity(self):
r"""
`pseudorapidity() const -> double`
returns the pseudo-rapidity or some large value when the rapidity is infinite
"""
return _fastjet.PseudoJet_pseudorapidity(self)
def eta(self):
r"""
`eta() const -> double`
"""
return _fastjet.PseudoJet_eta(self)
def pt2(self):
r"""
`pt2() const -> double`
returns the squared transverse momentum
"""
return _fastjet.PseudoJet_pt2(self)
def pt(self):
r"""
`pt() const -> double`
returns the scalar transverse momentum
"""
return _fastjet.PseudoJet_pt(self)
def perp2(self):
r"""
`perp2() const -> double`
returns the squared transverse momentum
"""
return _fastjet.PseudoJet_perp2(self)
def perp(self):
r"""
`perp() const -> double`
returns the scalar transverse momentum
"""
return _fastjet.PseudoJet_perp(self)
def kt2(self):
r"""
`kt2() const -> double`
returns the squared transverse momentum
"""
return _fastjet.PseudoJet_kt2(self)
def m2(self):
r"""
`m2() const -> double`
returns the squared invariant mass // like CLHEP
"""
return _fastjet.PseudoJet_m2(self)
def m(self):
r"""
`m() const -> double`
returns the invariant mass (If m2() is negative then -sqrt(-m2()) is returned,
as in CLHEP)
"""
return _fastjet.PseudoJet_m(self)
def mperp2(self):
r"""
`mperp2() const -> double`
returns the squared transverse mass = kt^2+m^2
"""
return _fastjet.PseudoJet_mperp2(self)
def mperp(self):
r"""
`mperp() const -> double`
returns the transverse mass = sqrt(kt^2+m^2)
"""
return _fastjet.PseudoJet_mperp(self)
def mt2(self):
r"""
`mt2() const -> double`
returns the squared transverse mass = kt^2+m^2
"""
return _fastjet.PseudoJet_mt2(self)
def mt(self):
r"""
`mt() const -> double`
returns the transverse mass = sqrt(kt^2+m^2)
"""
return _fastjet.PseudoJet_mt(self)
def modp2(self):
r"""
`modp2() const -> double`
return the squared 3-vector modulus = px^2+py^2+pz^2
"""
return _fastjet.PseudoJet_modp2(self)
def modp(self):
r"""
`modp() const -> double`
return the 3-vector modulus = sqrt(px^2+py^2+pz^2)
"""
return _fastjet.PseudoJet_modp(self)
def Et(self):
r"""
`Et() const -> double`
return the transverse energy
"""
return _fastjet.PseudoJet_Et(self)
def Et2(self):
r"""
`Et2() const -> double`
return the transverse energy squared
"""
return _fastjet.PseudoJet_Et2(self)
def cos_theta(self):
return _fastjet.PseudoJet_cos_theta(self)
def theta(self):
return _fastjet.PseudoJet_theta(self)
def __call__(self, i):
return _fastjet.PseudoJet___call__(self, i)
def kt_distance(self, other):
r"""
`kt_distance(const PseudoJet &other) const -> double`
returns kt distance (R=1) between this jet and another
"""
return _fastjet.PseudoJet_kt_distance(self, other)
def plain_distance(self, other):
r"""
`plain_distance(const PseudoJet &other) const -> double`
returns squared cylinder (rap-phi) distance between this jet and another
"""
return _fastjet.PseudoJet_plain_distance(self, other)
def squared_distance(self, other):
r"""
`squared_distance(const PseudoJet &other) const -> double`
returns squared cylinder (rap-phi) distance between this jet and another
"""
return _fastjet.PseudoJet_squared_distance(self, other)
def delta_R(self, other):
r"""
`delta_R(const PseudoJet &other) const -> double`
return the cylinder (rap-phi) distance between this jet and another, $\Delta_R
= \sqrt{\Delta y^2 + \Delta \phi^2}$.
"""
return _fastjet.PseudoJet_delta_R(self, other)
def delta_phi_to(self, other):
r"""
`delta_phi_to(const PseudoJet &other) const -> double`
returns other.phi() - this.phi(), constrained to be in range -pi .
returns other.phi() - this.phi(), i.e.
. pi
the phi distance to other, constrained to be in range -pi .. pi
"""
return _fastjet.PseudoJet_delta_phi_to(self, other)
def beam_distance(self):
r"""
`beam_distance() const -> double`
returns distance between this jet and the beam
"""
return _fastjet.PseudoJet_beam_distance(self)
def four_mom(self):
r"""
`four_mom() const -> std::valarray< double >`
return a valarray containing the four-momentum (components 0-2 are 3-mom,
component 3 is energy).
"""
return _fastjet.PseudoJet_four_mom(self)
X = _fastjet.PseudoJet_X
Y = _fastjet.PseudoJet_Y
Z = _fastjet.PseudoJet_Z
T = _fastjet.PseudoJet_T
NUM_COORDINATES = _fastjet.PseudoJet_NUM_COORDINATES
SIZE = _fastjet.PseudoJet_SIZE
def boost(self, prest):
r"""
`boost(const PseudoJet &prest) -> PseudoJet &`
transform this jet (given in the rest frame of prest) into a jet in the lab
frame
"""
return _fastjet.PseudoJet_boost(self, prest)
def unboost(self, prest):
r"""
`unboost(const PseudoJet &prest) -> PseudoJet &`
transform this jet (given in lab) into a jet in the rest frame of prest
"""
return _fastjet.PseudoJet_unboost(self, prest)
def __imul__(self, arg2):
return _fastjet.PseudoJet___imul__(self, arg2)
def __itruediv__(self, *args):
return _fastjet.PseudoJet___itruediv__(self, *args)
__idiv__ = __itruediv__
def __iadd__(self, arg2):
return _fastjet.PseudoJet___iadd__(self, arg2)
def __isub__(self, arg2):
return _fastjet.PseudoJet___isub__(self, arg2)
def reset(self, *args):
r"""
`reset(const L &some_four_vector)`
reset the 4-momentum according to the supplied generic 4-vector (accessible via
indexing, [0]==px,...[3]==E) and put the user and history indices back to their
default values.
"""
return _fastjet.PseudoJet_reset(self, *args)
def reset_PtYPhiM(self, pt_in, y_in, phi_in, m_in=0.0):
r"""
`reset_PtYPhiM(double pt_in, double y_in, double phi_in, double m_in=0.0)`
reset the PseudoJet according to the specified pt, rapidity, azimuth and mass
(also resetting indices, etc.) (phi should satisfy -2pi<phi<4pi)
"""
return _fastjet.PseudoJet_reset_PtYPhiM(self, pt_in, y_in, phi_in, m_in)
def reset_momentum(self, *args):
r"""
`reset_momentum(const L &some_four_vector)`
reset the 4-momentum according to the supplied generic 4-vector (accessible via
indexing, [0]==px,...[3]==E), but leave all other information (indices, user
info, etc.) untouched
"""
return _fastjet.PseudoJet_reset_momentum(self, *args)
def reset_momentum_PtYPhiM(self, pt, y, phi, m=0.0):
r"""
`reset_momentum_PtYPhiM(double pt, double y, double phi, double m=0.0)`
reset the 4-momentum according to the specified pt, rapidity, azimuth and mass
(phi should satisfy -2pi<phi<4pi)
"""
return _fastjet.PseudoJet_reset_momentum_PtYPhiM(self, pt, y, phi, m)
def set_cached_rap_phi(self, rap, phi):
r"""
`set_cached_rap_phi(double rap, double phi)`
in some cases when setting a 4-momentum, the user/program knows what rapidity
and azimuth are associated with that 4-momentum; by calling this routine the
user can provide the information directly to the PseudoJet and avoid expensive
rap-phi recalculations.
*
Parameters:
* `rap` :
rapidity
*
Parameters:
* `phi` :
(in range -twopi...4*pi)
USE WITH CAUTION: there are no checks that the rapidity and azimuth supplied
are sensible, nor does this reset the 4-momentum components if things don't
match.
"""
return _fastjet.PseudoJet_set_cached_rap_phi(self, rap, phi)
def user_index(self):
r"""
`user_index() const -> int`
return the user_index,
"""
return _fastjet.PseudoJet_user_index(self)
def set_user_index(self, index):
r"""
`set_user_index(const int index)`
set the user_index, intended to allow the user to add simple identifying
information to a particle/jet
"""
return _fastjet.PseudoJet_set_user_index(self, index)
def set_user_info(self, user_info_in):
r"""
`set_user_info(UserInfoBase *user_info_in)`
sets the internal shared pointer to the user information.
Note that the PseudoJet will now *own* the pointer, and delete the corresponding
object when it (the jet, and any copies of the jet) goes out of scope.
"""
return _fastjet.PseudoJet_set_user_info(self, user_info_in)
def has_user_info(self):
r"""
`has_user_info() const -> bool`
returns true if the PseudoJet has user information than can be cast to the
template argument type.
"""
return _fastjet.PseudoJet_has_user_info(self)
def user_info_ptr(self):
r"""
`user_info_ptr() const -> const UserInfoBase *`
retrieve a pointer to the (const) user information
"""
return _fastjet.PseudoJet_user_info_ptr(self)
def user_info_shared_ptr(self, *args):
r"""
`user_info_shared_ptr() -> SharedPtr< UserInfoBase > &`
retrieve a (non-const) shared pointer to the user information; you can use this,
for example, to set the shared pointer, eg
or
"""
return _fastjet.PseudoJet_user_info_shared_ptr(self, *args)
def description(self):
r"""
`description() const -> std::string`
return a string describing what kind of PseudoJet we are dealing with
"""
return _fastjet.PseudoJet_description(self)
def has_associated_cluster_sequence(self):
r"""
`has_associated_cluster_sequence() const -> bool`
returns true if this PseudoJet has an associated ClusterSequence.
"""
return _fastjet.PseudoJet_has_associated_cluster_sequence(self)
def has_associated_cs(self):
r"""
`has_associated_cs() const -> bool`
shorthand for has_associated_cluster_sequence()
"""
return _fastjet.PseudoJet_has_associated_cs(self)
def has_valid_cluster_sequence(self):
r"""
`has_valid_cluster_sequence() const -> bool`
returns true if this PseudoJet has an associated and still valid(ated)
ClusterSequence.
"""
return _fastjet.PseudoJet_has_valid_cluster_sequence(self)
def has_valid_cs(self):
r"""
`has_valid_cs() const -> bool`
shorthand for has_valid_cluster_sequence()
"""
return _fastjet.PseudoJet_has_valid_cs(self)
def associated_cluster_sequence(self):
r"""
`associated_cluster_sequence() const -> const ClusterSequence *`
get a (const) pointer to the parent ClusterSequence (NULL if inexistent)
"""
return _fastjet.PseudoJet_associated_cluster_sequence(self)
def associated_cs(self):
r"""
`associated_cs() const -> const ClusterSequence *`
"""
return _fastjet.PseudoJet_associated_cs(self)
def validated_cluster_sequence(self):
r"""
`validated_cluster_sequence() const -> const ClusterSequence *`
if the jet has a valid associated cluster sequence then return a pointer to it;
otherwise throw an error
"""
return _fastjet.PseudoJet_validated_cluster_sequence(self)
def validated_cs(self):
r"""
`validated_cs() const -> const ClusterSequence *`
shorthand for validated_cluster_sequence()
"""
return _fastjet.PseudoJet_validated_cs(self)
def validated_cluster_sequence_area_base(self):
r"""
`validated_cluster_sequence_area_base() const -> const ClusterSequenceAreaBase
*`
if the jet has valid area information then return a pointer to the associated
ClusterSequenceAreaBase object; otherwise throw an error
"""
return _fastjet.PseudoJet_validated_cluster_sequence_area_base(self)
def validated_csab(self):
r"""
`validated_csab() const -> const ClusterSequenceAreaBase *`
shorthand for validated_cluster_sequence_area_base()
"""
return _fastjet.PseudoJet_validated_csab(self)
def set_structure_shared_ptr(self, structure_in):
r"""
`set_structure_shared_ptr(const SharedPtr< PseudoJetStructureBase > &structure)`
set the associated structure
"""
return _fastjet.PseudoJet_set_structure_shared_ptr(self, structure_in)
def has_structure(self):
r"""
`has_structure() const -> bool`
return true if there is some structure associated with this PseudoJet
"""
return _fastjet.PseudoJet_has_structure(self)
def structure_ptr(self):
r"""
`structure_ptr() const -> const PseudoJetStructureBase *`
return a pointer to the structure (of type PseudoJetStructureBase*) associated
with this PseudoJet.
return NULL if there is no associated structure
"""
return _fastjet.PseudoJet_structure_ptr(self)
def structure_non_const_ptr(self):
r"""
`structure_non_const_ptr() -> PseudoJetStructureBase *`
return a non-const pointer to the structure (of type PseudoJetStructureBase*)
associated with this PseudoJet.
return NULL if there is no associated structure
Only use this if you know what you are doing. In any case, prefer the
'structure_ptr()' (the const version) to this method, unless you really need a
write access to the PseudoJet's underlying structure.
"""
return _fastjet.PseudoJet_structure_non_const_ptr(self)
def validated_structure_ptr(self):
r"""
`validated_structure_ptr() const -> const PseudoJetStructureBase *`
return a pointer to the structure (of type PseudoJetStructureBase*) associated
with this PseudoJet.
throw an error if there is no associated structure
"""
return _fastjet.PseudoJet_validated_structure_ptr(self)
def structure_shared_ptr(self):
r"""
`structure_shared_ptr() const -> const SharedPtr< PseudoJetStructureBase > &`
return a reference to the shared pointer to the PseudoJetStructureBase
associated with this PseudoJet
"""
return _fastjet.PseudoJet_structure_shared_ptr(self)
def has_partner(self, partner):
r"""
`has_partner(PseudoJet &partner) const -> bool`
check if it has been recombined with another PseudoJet in which case, return its
partner through the argument.
Otherwise, 'partner' is set to 0.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.PseudoJet_has_partner(self, partner)
def has_child(self, child):
r"""
`has_child(PseudoJet &child) const -> bool`
check if it has been recombined with another PseudoJet in which case, return its
child through the argument.
Otherwise, 'child' is set to 0.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.PseudoJet_has_child(self, child)
def has_parents(self, parent1, parent2):
r"""
`has_parents(PseudoJet &parent1, PseudoJet &parent2) const -> bool`
check if it is the product of a recombination, in which case return the 2
parents through the 'parent1' and 'parent2' arguments.
Otherwise, set these to 0.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.PseudoJet_has_parents(self, parent1, parent2)
def contains(self, constituent):
r"""
`contains(const PseudoJet &constituent) const -> bool`
check if the current PseudoJet contains the one passed as argument.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.PseudoJet_contains(self, constituent)
def is_inside(self, jet):
r"""
`is_inside(const PseudoJet &jet) const -> bool`
check if the current PseudoJet is contained the one passed as argument.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.PseudoJet_is_inside(self, jet)
def has_constituents(self):
r"""
`has_constituents() const -> bool`
returns true if the PseudoJet has constituents
"""
return _fastjet.PseudoJet_has_constituents(self)
def constituents(self):
r"""
`constituents() const -> std::vector< PseudoJet >`
retrieve the constituents.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence or other substructure information
"""
return _fastjet.PseudoJet_constituents(self)
def has_exclusive_subjets(self):
r"""
`has_exclusive_subjets() const -> bool`
returns true if the PseudoJet has support for exclusive subjets
"""
return _fastjet.PseudoJet_has_exclusive_subjets(self)
def n_exclusive_subjets(self, dcut):
r"""
`n_exclusive_subjets(const double dcut) const -> int`
return the size of exclusive_subjets(...); still n ln n with same coefficient,
but marginally more efficient than manually taking exclusive_subjets.size()
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.PseudoJet_n_exclusive_subjets(self, dcut)
def exclusive_subjets(self, *args):
r"""
`exclusive_subjets(int nsub) const -> std::vector< PseudoJet >`
return the list of subjets obtained by unclustering the supplied jet down to
nsub subjets.
Throws an error if there are fewer than nsub particles in the jet.
For ClusterSequence type jets, requires nsub ln nsub time
An Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.PseudoJet_exclusive_subjets(self, *args)
def exclusive_subjets_up_to(self, nsub):
r"""
`exclusive_subjets_up_to(int nsub) const -> std::vector< PseudoJet >`
return the list of subjets obtained by unclustering the supplied jet down to
nsub subjets (or all constituents if there are fewer than nsub).
For ClusterSequence type jets, requires nsub ln nsub time
An Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.PseudoJet_exclusive_subjets_up_to(self, nsub)
def exclusive_subdmerge(self, nsub):
r"""
`exclusive_subdmerge(int nsub) const -> double`
Returns the dij that was present in the merging nsub+1 -> nsub subjets inside
this jet.
Returns 0 if there were nsub or fewer constituents in the jet.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.PseudoJet_exclusive_subdmerge(self, nsub)
def exclusive_subdmerge_max(self, nsub):
r"""
`exclusive_subdmerge_max(int nsub) const -> double`
Returns the maximum dij that occurred in the whole event at the stage that the
nsub+1 -> nsub merge of subjets occurred inside this jet.
Returns 0 if there were nsub or fewer constituents in the jet.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.PseudoJet_exclusive_subdmerge_max(self, nsub)
def has_pieces(self):
r"""
`has_pieces() const -> bool`
returns true if a jet has pieces
By default a single particle or a jet coming from a ClusterSequence have no
pieces and this methos will return false.
In practice, this is equivalent to have an structure of type
CompositeJetStructure.
"""
return _fastjet.PseudoJet_has_pieces(self)
def pieces(self):
r"""
`pieces() const -> std::vector< PseudoJet >`
retrieve the pieces that make up the jet.
If the jet does not support pieces, an error is throw
"""
return _fastjet.PseudoJet_pieces(self)
def has_area(self):
r"""
`has_area() const -> bool`
check if it has a defined area
"""
return _fastjet.PseudoJet_has_area(self)
def area(self):
r"""
`area() const -> double`
return the jet (scalar) area.
throws an Error if there is no support for area in the parent CS
"""
return _fastjet.PseudoJet_area(self)
def area_error(self):
r"""
`area_error() const -> double`
return the error (uncertainty) associated with the determination of the area of
this jet.
throws an Error if there is no support for area in the parent CS
"""
return _fastjet.PseudoJet_area_error(self)
def area_4vector(self):
r"""
`area_4vector() const -> PseudoJet`
return the jet 4-vector area.
throws an Error if there is no support for area in the parent CS
"""
return _fastjet.PseudoJet_area_4vector(self)
def is_pure_ghost(self):
r"""
`is_pure_ghost() const -> bool`
true if this jet is made exclusively of ghosts.
throws an Error if there is no support for area in the parent CS
"""
return _fastjet.PseudoJet_is_pure_ghost(self)
def cluster_hist_index(self):
r"""
`cluster_hist_index() const -> int`
return the cluster_hist_index, intended to be used by clustering routines.
"""
return _fastjet.PseudoJet_cluster_hist_index(self)
def set_cluster_hist_index(self, index):
r"""
`set_cluster_hist_index(const int index)`
set the cluster_hist_index, intended to be used by clustering routines.
"""
return _fastjet.PseudoJet_set_cluster_hist_index(self, index)
def cluster_sequence_history_index(self):
r"""
`cluster_sequence_history_index() const -> int`
alternative name for cluster_hist_index() [perhaps more meaningful]
"""
return _fastjet.PseudoJet_cluster_sequence_history_index(self)
def set_cluster_sequence_history_index(self, index):
r"""
`set_cluster_sequence_history_index(const int index)`
alternative name for set_cluster_hist_index(...) [perhaps more meaningful]
"""
return _fastjet.PseudoJet_set_cluster_sequence_history_index(self, index)
def __str__(self):
return _fastjet.PseudoJet___str__(self)
def set_python_info(self, pyobj):
return _fastjet.PseudoJet_set_python_info(self, pyobj)
def python_info(self):
return _fastjet.PseudoJet_python_info(self)
def __add__(self, p):
return _fastjet.PseudoJet___add__(self, p)
def __sub__(self, p):
return _fastjet.PseudoJet___sub__(self, p)
def __mul__(self, x):
return _fastjet.PseudoJet___mul__(self, x)
def __rmul__(self, x):
return _fastjet.PseudoJet___rmul__(self, x)
def __div__(self, x):
return _fastjet.PseudoJet___div__(self, x)
def __eq__(self, *args):
return _fastjet.PseudoJet___eq__(self, *args)
def __ne__(self, *args):
return _fastjet.PseudoJet___ne__(self, *args)
# Register PseudoJet in _fastjet:
_fastjet.PseudoJet_swigregister(PseudoJet)
MaxRap = cvar.MaxRap
pseudojet_invalid_phi = cvar.pseudojet_invalid_phi
pseudojet_invalid_rap = cvar.pseudojet_invalid_rap
def __add__(arg1, arg2):
return _fastjet.__add__(arg1, arg2)
def __sub__(arg1, arg2):
return _fastjet.__sub__(arg1, arg2)
def __truediv__(arg1, arg2):
return _fastjet.__truediv__(arg1, arg2)
def __eq__(*args):
return _fastjet.__eq__(*args)
def __ne__(*args):
return _fastjet.__ne__(*args)
def dot_product(a, b):
return _fastjet.dot_product(a, b)
def cos_theta(a, b):
return _fastjet.cos_theta(a, b)
def theta(a, b):
return _fastjet.theta(a, b)
def have_same_momentum(arg1, arg2):
return _fastjet.have_same_momentum(arg1, arg2)
def PtYPhiM(pt, y, phi, m=0.0):
return _fastjet.PtYPhiM(pt, y, phi, m)
def sorted_by_pt(jets):
return _fastjet.sorted_by_pt(jets)
def sorted_by_rapidity(jets):
return _fastjet.sorted_by_rapidity(jets)
def sorted_by_E(jets):
return _fastjet.sorted_by_E(jets)
def sorted_by_pz(jets):
return _fastjet.sorted_by_pz(jets)
def sort_indices(indices, values):
return _fastjet.sort_indices(indices, values)
class IndexedSortHelper(object):
r"""
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, reference_values):
r"""
`IndexedSortHelper(const std::vector< double > *reference_values)`
"""
_fastjet.IndexedSortHelper_swiginit(self, _fastjet.new_IndexedSortHelper(reference_values))
def __call__(self, i1, i2):
return _fastjet.IndexedSortHelper___call__(self, i1, i2)
__swig_destroy__ = _fastjet.delete_IndexedSortHelper
# Register IndexedSortHelper in _fastjet:
_fastjet.IndexedSortHelper_swigregister(IndexedSortHelper)
class RangeDefinition(object):
r"""
class for holding a range definition specification, given by limits on rapidity
and azimuth.
C++ includes: fastjet/RangeDefinition.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _fastjet.delete_RangeDefinition
def __init__(self, *args):
r"""
`RangeDefinition(double rapmin, double rapmax, double phimin=0.0, double
phimax=twopi)`
constructor for a range definition given by rapmin <= y <= rapmax, phimin <= phi
<= phimax
"""
_fastjet.RangeDefinition_swiginit(self, _fastjet.new_RangeDefinition(*args))
def is_localizable(self):
r"""
`is_localizable() const -> bool`
returns true if the range is localizable (i.e.
set_position is meant to do something meaningful).
This version of the class is not localizable and so it returns false.
For localizable classes override this function with a function that returns true
"""
return _fastjet.RangeDefinition_is_localizable(self)
def set_position(self, *args):
r"""
`set_position(const PseudoJet &jet)`
place the range on the jet position
"""
return _fastjet.RangeDefinition_set_position(self, *args)
def is_in_range(self, *args):
r"""
`is_in_range(double rap, double phi) const -> bool`
return bool according to whether a (rap,phi) point is in range
"""
return _fastjet.RangeDefinition_is_in_range(self, *args)
def get_rap_limits(self, rapmin, rapmax):
r"""
`get_rap_limits(double &rapmin, double &rapmax) const`
return the minimal and maximal rapidity of this range; remember to replace this
if you write a derived class with more complex ranges;
"""
return _fastjet.RangeDefinition_get_rap_limits(self, rapmin, rapmax)
def area(self):
r"""
`area() const -> double`
area of the range region
"""
return _fastjet.RangeDefinition_area(self)
def description(self):
r"""
`description() const -> std::string`
textual description of range
"""
return _fastjet.RangeDefinition_description(self)
# Register RangeDefinition in _fastjet:
_fastjet.RangeDefinition_swigregister(RangeDefinition)
class SelectorWorker(object):
r"""
default selector worker is an abstract virtual base class
The Selector class is only an interface, it is the SelectorWorker that really
does the work. To implement various selectors, one thus has to overload this
class.
C++ includes: fastjet/Selector.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _fastjet.delete_SelectorWorker
def _pass(self, jet):
r"""
`pass(const PseudoJet &jet) const =0 -> bool`
returns true if a given object passes the selection criterion, and is the main
function that needs to be overloaded by derived workers.
NB: this function is used only if applies_jet_by_jet() returns true. If it does
not, then derived classes are expected to (re)implement the terminator
function()
"""
return _fastjet.SelectorWorker__pass(self, jet)
def terminator(self, jets):
r"""
`terminator(std::vector< const PseudoJet *> &jets) const`
For each jet that does not pass the cuts, this routine sets the pointer to 0.
It does not assume that the PseudoJet* passed as argument are not NULL
"""
return _fastjet.SelectorWorker_terminator(self, jets)
def applies_jet_by_jet(self):
r"""
`applies_jet_by_jet() const -> bool`
returns true if this can be applied jet by jet
"""
return _fastjet.SelectorWorker_applies_jet_by_jet(self)
def description(self):
r"""
`description() const -> std::string`
returns a description of the worker
"""
return _fastjet.SelectorWorker_description(self)
def takes_reference(self):
r"""
`takes_reference() const -> bool`
returns true if the worker is defined with respect to a reference jet
"""
return _fastjet.SelectorWorker_takes_reference(self)
def set_reference(self, arg2):
r"""
`set_reference(const PseudoJet &)`
sets the reference jet for the selector NB: "reference" is commented to avoid
unused-variable compiler warnings
"""
return _fastjet.SelectorWorker_set_reference(self, arg2)
def copy(self):
r"""
`copy() -> SelectorWorker *`
return a copy of the current object.
This function is only called for objects that take a reference and need not be
reimplemented otherwise.
"""
return _fastjet.SelectorWorker_copy(self)
def get_rapidity_extent(self, rapmin, rapmax):
r"""
`get_rapidity_extent(double &rapmin, double &rapmax) const`
returns the rapidity range for which it may return "true"
"""
return _fastjet.SelectorWorker_get_rapidity_extent(self, rapmin, rapmax)
def is_geometric(self):
r"""
`is_geometric() const -> bool`
check if it is a geometric selector (i.e.
only puts constraints on rapidity and azimuthal angle)
"""
return _fastjet.SelectorWorker_is_geometric(self)
def has_finite_area(self):
r"""
`has_finite_area() const -> bool`
check if it has a finite area
"""
return _fastjet.SelectorWorker_has_finite_area(self)
def has_known_area(self):
r"""
`has_known_area() const -> bool`
check if it has an analytically computable area
"""
return _fastjet.SelectorWorker_has_known_area(self)
def known_area(self):
r"""
`known_area() const -> double`
if it has a computable area, return it
"""
return _fastjet.SelectorWorker_known_area(self)
# Register SelectorWorker in _fastjet:
_fastjet.SelectorWorker_swigregister(SelectorWorker)
class Selector(object):
r"""
Class that encodes information about cuts and other selection criteria that can
be applied to PseudoJet(s).
C++ includes: fastjet/Selector.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`Selector(const RangeDefinition &range)`
ctor from a RangeDefinition
This is provided for backward compatibility and will be removed in a future
major release of FastJet
Watch out that the Selector will only hold a pointer to the range so the
selector will crash if one tries to use it after the range has gone out of
scope. We thus strongly advise against the direct use of this constructor.
"""
_fastjet.Selector_swiginit(self, _fastjet.new_Selector(*args))
__swig_destroy__ = _fastjet.delete_Selector
def _pass(self, jet):
r"""
`pass(const PseudoJet &jet) const -> bool`
return true if the jet passes the selection
"""
return _fastjet.Selector__pass(self, jet)
def count(self, jets):
r"""
`count(const std::vector< PseudoJet > &jets) const -> unsigned int`
Return a count of the objects that pass the selection.
This will often be more efficient that getting the vector of objects that passes
and then evaluating the size of the vector
"""
return _fastjet.Selector_count(self, jets)
def sum(self, jets):
r"""
`sum(const std::vector< PseudoJet > &jets) const -> PseudoJet`
Return the 4-vector sum of the objects that pass the selection.
This will often be more efficient that getting the vector of objects that passes
and then evaluating the size of the vector
"""
return _fastjet.Selector_sum(self, jets)
def scalar_pt_sum(self, jets):
r"""
`scalar_pt_sum(const std::vector< PseudoJet > &jets) const -> double`
Return the scalar pt sum of the objects that pass the selection.
This will often be more efficient that getting the vector of objects that passes
and then evaluating the size of the vector
"""
return _fastjet.Selector_scalar_pt_sum(self, jets)
def sift(self, jets, jets_that_pass, jets_that_fail):
r"""
`sift(const std::vector< PseudoJet > &jets, std::vector< PseudoJet >
&jets_that_pass, std::vector< PseudoJet > &jets_that_fail) const`
sift the input jets into two vectors -- those that pass the selector and those
that do not
"""
return _fastjet.Selector_sift(self, jets, jets_that_pass, jets_that_fail)
def applies_jet_by_jet(self):
r"""
`applies_jet_by_jet() const -> bool`
returns true if this can be applied jet by jet
"""
return _fastjet.Selector_applies_jet_by_jet(self)
def __call__(self, *args):
return _fastjet.Selector___call__(self, *args)
def nullify_non_selected(self, jets):
r"""
`nullify_non_selected(std::vector< const PseudoJet *> &jets) const`
For each jet that does not pass the cuts, this routine sets the pointer to 0.
It is legitimate for some (or all) of the pointers that are passed to already be
NULL.
"""
return _fastjet.Selector_nullify_non_selected(self, jets)
def get_rapidity_extent(self, rapmin, rapmax):
r"""
`get_rapidity_extent(double &rapmin, double &rapmax) const`
returns the rapidity range for which it may return "true"
"""
return _fastjet.Selector_get_rapidity_extent(self, rapmin, rapmax)
def description(self):
r"""
`description() const -> std::string`
returns a textual description of the selector
"""
return _fastjet.Selector_description(self)
def is_geometric(self):
r"""
`is_geometric() const -> bool`
returns true if it is a geometric selector (i.e.
one that only puts constraints on rapidities and azimuthal angles)
"""
return _fastjet.Selector_is_geometric(self)
def has_finite_area(self):
r"""
`has_finite_area() const -> bool`
returns true if it has a meaningful and finite area (i.e.
the Selector has the property that is_geometric() returns true and the rapidity
extent is finite).
"""
return _fastjet.Selector_has_finite_area(self)
def area(self, *args):
r"""
`area(double ghost_area) const -> double`
returns the rapidity-phi area associated with the Selector (throws InvalidArea
if the area does not make sense).
The behaviour is the as with the area() call, but with the ability to
additionally specify the ghost area to be used in the case of a Monte Carlo area
evaluation.
"""
return _fastjet.Selector_area(self, *args)
def worker(self):
r"""
`worker() const -> const SharedPtr< SelectorWorker > &`
returns a (reference to) the underlying worker's shared pointer
"""
return _fastjet.Selector_worker(self)
def validated_worker(self):
r"""
`validated_worker() const -> const SelectorWorker *`
returns a worker if there is a valid one, otherwise throws an InvalidWorker
error
"""
return _fastjet.Selector_validated_worker(self)
def takes_reference(self):
r"""
`takes_reference() const -> bool`
returns true if this can be applied jet by jet
"""
return _fastjet.Selector_takes_reference(self)
def set_reference(self, reference):
r"""
`set_reference(const PseudoJet &reference) -> const Selector &`
set the reference jet for this Selector
"""
return _fastjet.Selector_set_reference(self, reference)
def __iand__(self, b):
return _fastjet.Selector___iand__(self, b)
def __ior__(self, b):
return _fastjet.Selector___ior__(self, b)
def __str__(self, *args):
return _fastjet.Selector___str__(self, *args)
def __mul__(self, other):
return _fastjet.Selector___mul__(self, other)
def __and__(self, other):
return _fastjet.Selector___and__(self, other)
def __or__(self, other):
return _fastjet.Selector___or__(self, other)
def __invert__(self):
return _fastjet.Selector___invert__(self)
# Register Selector in _fastjet:
_fastjet.Selector_swigregister(Selector)
def SelectorIdentity():
return _fastjet.SelectorIdentity()
def __mul__(*args):
return _fastjet.__mul__(*args)
def SelectorPtMin(ptmin):
return _fastjet.SelectorPtMin(ptmin)
def SelectorPtMax(ptmax):
return _fastjet.SelectorPtMax(ptmax)
def SelectorPtRange(ptmin, ptmax):
return _fastjet.SelectorPtRange(ptmin, ptmax)
def SelectorEtMin(Etmin):
return _fastjet.SelectorEtMin(Etmin)
def SelectorEtMax(Etmax):
return _fastjet.SelectorEtMax(Etmax)
def SelectorEtRange(Etmin, Etmax):
return _fastjet.SelectorEtRange(Etmin, Etmax)
def SelectorEMin(Emin):
return _fastjet.SelectorEMin(Emin)
def SelectorEMax(Emax):
return _fastjet.SelectorEMax(Emax)
def SelectorERange(Emin, Emax):
return _fastjet.SelectorERange(Emin, Emax)
def SelectorMassMin(Mmin):
return _fastjet.SelectorMassMin(Mmin)
def SelectorMassMax(Mmax):
return _fastjet.SelectorMassMax(Mmax)
def SelectorMassRange(Mmin, Mmax):
return _fastjet.SelectorMassRange(Mmin, Mmax)
def SelectorRapMin(rapmin):
return _fastjet.SelectorRapMin(rapmin)
def SelectorRapMax(rapmax):
return _fastjet.SelectorRapMax(rapmax)
def SelectorRapRange(rapmin, rapmax):
return _fastjet.SelectorRapRange(rapmin, rapmax)
def SelectorAbsRapMin(absrapmin):
return _fastjet.SelectorAbsRapMin(absrapmin)
def SelectorAbsRapMax(absrapmax):
return _fastjet.SelectorAbsRapMax(absrapmax)
def SelectorAbsRapRange(absrapmin, absrapmax):
return _fastjet.SelectorAbsRapRange(absrapmin, absrapmax)
def SelectorEtaMin(etamin):
return _fastjet.SelectorEtaMin(etamin)
def SelectorEtaMax(etamax):
return _fastjet.SelectorEtaMax(etamax)
def SelectorEtaRange(etamin, etamax):
return _fastjet.SelectorEtaRange(etamin, etamax)
def SelectorAbsEtaMin(absetamin):
return _fastjet.SelectorAbsEtaMin(absetamin)
def SelectorAbsEtaMax(absetamax):
return _fastjet.SelectorAbsEtaMax(absetamax)
def SelectorAbsEtaRange(absetamin, absetamax):
return _fastjet.SelectorAbsEtaRange(absetamin, absetamax)
def SelectorPhiRange(phimin, phimax):
return _fastjet.SelectorPhiRange(phimin, phimax)
def SelectorRapPhiRange(rapmin, rapmax, phimin, phimax):
return _fastjet.SelectorRapPhiRange(rapmin, rapmax, phimin, phimax)
def SelectorNHardest(n):
return _fastjet.SelectorNHardest(n)
def SelectorCircle(radius):
return _fastjet.SelectorCircle(radius)
def SelectorDoughnut(radius_in, radius_out):
return _fastjet.SelectorDoughnut(radius_in, radius_out)
def SelectorStrip(half_width):
return _fastjet.SelectorStrip(half_width)
def SelectorRectangle(half_rap_width, half_phi_width):
return _fastjet.SelectorRectangle(half_rap_width, half_phi_width)
def SelectorPtFractionMin(fraction):
return _fastjet.SelectorPtFractionMin(fraction)
def SelectorIsZero():
return _fastjet.SelectorIsZero()
def SelectorIsPureGhost():
return _fastjet.SelectorIsPureGhost()
def fastjet_version_string():
return _fastjet.fastjet_version_string()
N2MHTLazy9AntiKtSeparateGhosts = _fastjet.N2MHTLazy9AntiKtSeparateGhosts
N2MHTLazy9 = _fastjet.N2MHTLazy9
N2MHTLazy25 = _fastjet.N2MHTLazy25
N2MHTLazy9Alt = _fastjet.N2MHTLazy9Alt
N2MinHeapTiled = _fastjet.N2MinHeapTiled
N2Tiled = _fastjet.N2Tiled
N2PoorTiled = _fastjet.N2PoorTiled
N2Plain = _fastjet.N2Plain
N3Dumb = _fastjet.N3Dumb
Best = _fastjet.Best
NlnN = _fastjet.NlnN
NlnN3pi = _fastjet.NlnN3pi
NlnN4pi = _fastjet.NlnN4pi
NlnNCam4pi = _fastjet.NlnNCam4pi
NlnNCam2pi2R = _fastjet.NlnNCam2pi2R
NlnNCam = _fastjet.NlnNCam
BestFJ30 = _fastjet.BestFJ30
plugin_strategy = _fastjet.plugin_strategy
kt_algorithm = _fastjet.kt_algorithm
cambridge_algorithm = _fastjet.cambridge_algorithm
antikt_algorithm = _fastjet.antikt_algorithm
genkt_algorithm = _fastjet.genkt_algorithm
cambridge_for_passive_algorithm = _fastjet.cambridge_for_passive_algorithm
genkt_for_passive_algorithm = _fastjet.genkt_for_passive_algorithm
ee_kt_algorithm = _fastjet.ee_kt_algorithm
ee_genkt_algorithm = _fastjet.ee_genkt_algorithm
plugin_algorithm = _fastjet.plugin_algorithm
undefined_jet_algorithm = _fastjet.undefined_jet_algorithm
E_scheme = _fastjet.E_scheme
pt_scheme = _fastjet.pt_scheme
pt2_scheme = _fastjet.pt2_scheme
Et_scheme = _fastjet.Et_scheme
Et2_scheme = _fastjet.Et2_scheme
BIpt_scheme = _fastjet.BIpt_scheme
BIpt2_scheme = _fastjet.BIpt2_scheme
WTA_pt_scheme = _fastjet.WTA_pt_scheme
WTA_modp_scheme = _fastjet.WTA_modp_scheme
external_scheme = _fastjet.external_scheme
class JetDefinition(object):
r"""
class that is intended to hold a full definition of the jet clusterer
C++ includes: fastjet/JetDefinition.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`JetDefinition(JetAlgorithm jet_algorithm_in, double R_in, RecombinationScheme
recomb_scheme_in, Strategy strategy_in, int nparameters_in)`
constructor to fully specify a jet-definition (together with information about
how algorithically to run it).
"""
_fastjet.JetDefinition_swiginit(self, _fastjet.new_JetDefinition(*args))
def set_recombination_scheme(self, arg2):
r"""
`set_recombination_scheme(RecombinationScheme)`
set the recombination scheme to the one provided
"""
return _fastjet.JetDefinition_set_recombination_scheme(self, arg2)
def set_recombiner(self, *args):
r"""
`set_recombiner(const JetDefinition &other_jet_def)`
set the recombiner to be the same as the one of 'other_jet_def'
Note that this is the recommended method to associate to a jet definition the
recombiner from another jet definition. Compared to the set_recombiner(const
Recombiner *) above, it correctly handles the case where the jet definition owns
the recombiner (i.e. where delete_recombiner_when_unused has been called)
"""
return _fastjet.JetDefinition_set_recombiner(self, *args)
def delete_recombiner_when_unused(self):
r"""
`delete_recombiner_when_unused()`
calling this tells the JetDefinition to handle the deletion of the recombiner
when it is no longer used.
causes the JetDefinition to handle the deletion of the recombiner when it is no
longer used
(Should not be called if the recombiner was initialised from a JetDef whose
recombiner was already scheduled to delete itself - memory handling will already
be automatic across both JetDef's in that case).
"""
return _fastjet.JetDefinition_delete_recombiner_when_unused(self)
def plugin(self):
r"""
`plugin() const -> const Plugin *`
return a pointer to the plugin
"""
return _fastjet.JetDefinition_plugin(self)
def delete_plugin_when_unused(self):
r"""
`delete_plugin_when_unused()`
calling this causes the JetDefinition to handle the deletion of the plugin when
it is no longer used
allows to let the JetDefinition handle the deletion of the plugin when it is no
longer used
"""
return _fastjet.JetDefinition_delete_plugin_when_unused(self)
def jet_algorithm(self):
r"""
`jet_algorithm() const -> JetAlgorithm`
return information about the definition...
"""
return _fastjet.JetDefinition_jet_algorithm(self)
def jet_finder(self):
r"""
`jet_finder() const -> JetAlgorithm`
same as above for backward compatibility
"""
return _fastjet.JetDefinition_jet_finder(self)
def R(self):
r"""
`R() const -> double`
"""
return _fastjet.JetDefinition_R(self)
def extra_param(self):
r"""
`extra_param() const -> double`
"""
return _fastjet.JetDefinition_extra_param(self)
def strategy(self):
r"""
`strategy() const -> Strategy`
"""
return _fastjet.JetDefinition_strategy(self)
def recombination_scheme(self):
r"""
`recombination_scheme() const -> RecombinationScheme`
"""
return _fastjet.JetDefinition_recombination_scheme(self)
def set_jet_algorithm(self, njf):
r"""
`set_jet_algorithm(JetAlgorithm njf)`
(re)set the jet finder
"""
return _fastjet.JetDefinition_set_jet_algorithm(self, njf)
def set_jet_finder(self, njf):
r"""
`set_jet_finder(JetAlgorithm njf)`
same as above for backward compatibility
"""
return _fastjet.JetDefinition_set_jet_finder(self, njf)
def set_extra_param(self, xtra_param):
r"""
`set_extra_param(double xtra_param)`
(re)set the general purpose extra parameter
"""
return _fastjet.JetDefinition_set_extra_param(self, xtra_param)
def recombiner(self):
r"""
`recombiner() const -> const Recombiner *`
returns a pointer to the currently defined recombiner.
Warning: the pointer may be to an internal recombiner (for default recombination
schemes), in which case if the JetDefinition becomes invalid (e.g. is deleted),
the pointer will then point to an object that no longer exists.
Note also that if you copy a JetDefinition with a default recombination scheme,
then the two copies will have distinct recombiners, and return different
recombiner() pointers.
"""
return _fastjet.JetDefinition_recombiner(self)
def has_same_recombiner(self, other_jd):
r"""
`has_same_recombiner(const JetDefinition &other_jd) const -> bool`
returns true if the current jet definitions shares the same recombiner as the
one passed as an argument
"""
return _fastjet.JetDefinition_has_same_recombiner(self, other_jd)
def is_spherical(self):
r"""
`is_spherical() const -> bool`
returns true if the jet definition involves an algorithm intended for use on a
spherical geometry (e.g.
e+e- algorithms, as opposed to most pp algorithms, which use a cylindrical,
rapidity-phi geometry).
"""
return _fastjet.JetDefinition_is_spherical(self)
def description(self):
r"""
`description() const -> std::string`
return a textual description of the current jet definition
"""
return _fastjet.JetDefinition_description(self)
def description_no_recombiner(self):
r"""
`description_no_recombiner() const -> std::string`
returns a description not including the recombiner information
"""
return _fastjet.JetDefinition_description_no_recombiner(self)
@staticmethod
def algorithm_description(jet_alg):
r"""
`algorithm_description(const JetAlgorithm jet_alg) -> std::string`
a short textual description of the algorithm jet_alg
"""
return _fastjet.JetDefinition_algorithm_description(jet_alg)
@staticmethod
def n_parameters_for_algorithm(jet_alg):
r"""
`n_parameters_for_algorithm(const JetAlgorithm jet_alg) -> unsigned int`
the number of parameters associated to a given jet algorithm
"""
return _fastjet.JetDefinition_n_parameters_for_algorithm(jet_alg)
def __str__(self):
return _fastjet.JetDefinition___str__(self)
def __call__(self, particles):
return _fastjet.JetDefinition___call__(self, particles)
def set_python_recombiner(self, pyobj):
return _fastjet.JetDefinition_set_python_recombiner(self, pyobj)
__swig_destroy__ = _fastjet.delete_JetDefinition
# Register JetDefinition in _fastjet:
_fastjet.JetDefinition_swigregister(JetDefinition)
aachen_algorithm = cvar.aachen_algorithm
cambridge_aachen_algorithm = cvar.cambridge_aachen_algorithm
JetDefinition.max_allowable_R = _fastjet.cvar.JetDefinition_max_allowable_R
def JetDefinition_algorithm_description(jet_alg):
r"""
`algorithm_description(const JetAlgorithm jet_alg) -> std::string`
a short textual description of the algorithm jet_alg
"""
return _fastjet.JetDefinition_algorithm_description(jet_alg)
def JetDefinition_n_parameters_for_algorithm(jet_alg):
r"""
`n_parameters_for_algorithm(const JetAlgorithm jet_alg) -> unsigned int`
the number of parameters associated to a given jet algorithm
"""
return _fastjet.JetDefinition_n_parameters_for_algorithm(jet_alg)
def join(*args):
return _fastjet.join(*args)
class CompositeJetStructure(PseudoJetStructureBase):
r"""
The structure for a jet made of pieces.
This stores the vector of the pieces that make the jet and provide the methods
to access them
C++ includes: fastjet/CompositeJetStructure.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`CompositeJetStructure(const std::vector< PseudoJet > &initial_pieces, const
JetDefinition::Recombiner *recombiner=0)`
ctor with initialisation
"""
_fastjet.CompositeJetStructure_swiginit(self, _fastjet.new_CompositeJetStructure(*args))
__swig_destroy__ = _fastjet.delete_CompositeJetStructure
def description(self):
r"""
`description() const -> std::string`
description
"""
return _fastjet.CompositeJetStructure_description(self)
def has_constituents(self):
r"""
`has_constituents() const -> bool`
true unless the jet has no pieces (see also the description of constituents()
below)
"""
return _fastjet.CompositeJetStructure_has_constituents(self)
def constituents(self, jet):
r"""
`constituents(const PseudoJet &jet) const -> std::vector< PseudoJet >`
return the constituents (i.e.
the union of the constituents of each piece)
If any of the pieces has no constituent, the piece itself is considered as a
constituent Note that as a consequence, a composite jet with no pieces will have
an empty vector as constituents
"""
return _fastjet.CompositeJetStructure_constituents(self, jet)
def has_pieces(self, arg2):
r"""
`has_pieces(const PseudoJet &) const -> bool`
true if it has pieces (always the case)
"""
return _fastjet.CompositeJetStructure_has_pieces(self, arg2)
def pieces(self, jet):
r"""
`pieces(const PseudoJet &jet) const -> std::vector< PseudoJet >`
returns the pieces
"""
return _fastjet.CompositeJetStructure_pieces(self, jet)
def has_area(self):
r"""
`has_area() const -> bool`
check if it has a well-defined area
"""
return _fastjet.CompositeJetStructure_has_area(self)
def area(self, reference):
r"""
`area(const PseudoJet &reference) const -> double`
return the jet (scalar) area.
"""
return _fastjet.CompositeJetStructure_area(self, reference)
def area_error(self, reference):
r"""
`area_error(const PseudoJet &reference) const -> double`
return the error (uncertainty) associated with the determination of the area of
this jet.
Be conservative: return the sum of the errors
"""
return _fastjet.CompositeJetStructure_area_error(self, reference)
def area_4vector(self, reference):
r"""
`area_4vector(const PseudoJet &reference) const -> PseudoJet`
return the jet 4-vector area.
"""
return _fastjet.CompositeJetStructure_area_4vector(self, reference)
def is_pure_ghost(self, reference):
r"""
`is_pure_ghost(const PseudoJet &reference) const -> bool`
true if this jet is made exclusively of ghosts.
In this case, it will be true if all pieces are pure ghost
"""
return _fastjet.CompositeJetStructure_is_pure_ghost(self, reference)
def discard_area(self):
r"""
`discard_area()`
disable the area of the composite jet
this can be used e.g. to discard the area of a composite jet made of pieces with
non-explicit-ghost area since the area may by erroneous in that case
"""
return _fastjet.CompositeJetStructure_discard_area(self)
# Register CompositeJetStructure in _fastjet:
_fastjet.CompositeJetStructure_swigregister(CompositeJetStructure)
class ClusterSequenceStructure(PseudoJetStructureBase):
r"""
Contains any information related to the clustering that should be directly
accessible to PseudoJet.
By default, this class implements basic access to the ClusterSequence related to
a PseudoJet (like its constituents or its area). But it can be overloaded in
order e.g. to give access to the jet substructure.
C++ includes: fastjet/ClusterSequenceStructure.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`ClusterSequenceStructure(const ClusterSequence *cs)`
ctor with initialisation to a given ClusterSequence
In principle, this is reserved for initialisation by the parent ClusterSequence
"""
_fastjet.ClusterSequenceStructure_swiginit(self, _fastjet.new_ClusterSequenceStructure(*args))
__swig_destroy__ = _fastjet.delete_ClusterSequenceStructure
def description(self):
r"""
`description() const -> std::string`
description
"""
return _fastjet.ClusterSequenceStructure_description(self)
def has_associated_cluster_sequence(self):
r"""
`has_associated_cluster_sequence() const -> bool`
returns true if there is an associated ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_has_associated_cluster_sequence(self)
def associated_cluster_sequence(self):
r"""
`associated_cluster_sequence() const -> const ClusterSequence *`
get a (const) pointer to the parent ClusterSequence (NULL if inexistent)
"""
return _fastjet.ClusterSequenceStructure_associated_cluster_sequence(self)
def has_valid_cluster_sequence(self):
r"""
`has_valid_cluster_sequence() const -> bool`
returns true if there is a valid associated ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_has_valid_cluster_sequence(self)
def validated_cs(self):
r"""
`validated_cs() const -> const ClusterSequence *`
if the jet has a valid associated cluster sequence then return a pointer to it;
otherwise throw an error
"""
return _fastjet.ClusterSequenceStructure_validated_cs(self)
def validated_csab(self):
r"""
`validated_csab() const -> const ClusterSequenceAreaBase *`
if the jet has valid area information then return a pointer to the associated
ClusterSequenceAreaBase object; otherwise throw an error
"""
return _fastjet.ClusterSequenceStructure_validated_csab(self)
def set_associated_cs(self, new_cs):
r"""
`set_associated_cs(const ClusterSequence *new_cs)`
set the associated csw
"""
return _fastjet.ClusterSequenceStructure_set_associated_cs(self, new_cs)
def has_partner(self, reference, partner):
r"""
`has_partner(const PseudoJet &reference, PseudoJet &partner) const -> bool`
check if it has been recombined with another PseudoJet in which case, return its
partner through the argument.
Otherwise, 'partner' is set to 0.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_has_partner(self, reference, partner)
def has_child(self, reference, child):
r"""
`has_child(const PseudoJet &reference, PseudoJet &child) const -> bool`
check if it has been recombined with another PseudoJet in which case, return its
child through the argument.
Otherwise, 'child' is set to 0.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_has_child(self, reference, child)
def has_parents(self, reference, parent1, parent2):
r"""
`has_parents(const PseudoJet &reference, PseudoJet &parent1, PseudoJet &parent2)
const -> bool`
check if it is the product of a recombination, in which case return the 2
parents through the 'parent1' and 'parent2' arguments.
Otherwise, set these to 0.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_has_parents(self, reference, parent1, parent2)
def object_in_jet(self, reference, jet):
r"""
`object_in_jet(const PseudoJet &reference, const PseudoJet &jet) const -> bool`
check if the reference PseudoJet is contained in the second one passed as
argument.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
false is returned if the 2 PseudoJet do not belong the same ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_object_in_jet(self, reference, jet)
def has_constituents(self):
r"""
`has_constituents() const -> bool`
return true if the structure supports constituents.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_has_constituents(self)
def constituents(self, reference):
r"""
`constituents(const PseudoJet &reference) const -> std::vector< PseudoJet >`
retrieve the constituents.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_constituents(self, reference)
def has_exclusive_subjets(self):
r"""
`has_exclusive_subjets() const -> bool`
return true if the structure supports exclusive_subjets.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_has_exclusive_subjets(self)
def exclusive_subjets(self, reference, dcut):
r"""
`exclusive_subjets(const PseudoJet &reference, const double &dcut) const ->
std::vector< PseudoJet >`
return a vector of all subjets of the current jet (in the sense of the exclusive
algorithm) that would be obtained when running the algorithm with the given
dcut.
Time taken is O(m ln m), where m is the number of subjets that are found. If m
gets to be of order of the total number of constituents in the jet, this could
be substantially slower than just getting that list of constituents.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_exclusive_subjets(self, reference, dcut)
def n_exclusive_subjets(self, reference, dcut):
r"""
`n_exclusive_subjets(const PseudoJet &reference, const double &dcut) const ->
int`
return the size of exclusive_subjets(...); still n ln n with same coefficient,
but marginally more efficient than manually taking exclusive_subjets.size()
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_n_exclusive_subjets(self, reference, dcut)
def exclusive_subjets_up_to(self, reference, nsub):
r"""
`exclusive_subjets_up_to(const PseudoJet &reference, int nsub) const ->
std::vector< PseudoJet >`
return the list of subjets obtained by unclustering the supplied jet down to
nsub subjets (or all constituents if there are fewer than nsub).
requires nsub ln nsub time
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_exclusive_subjets_up_to(self, reference, nsub)
def exclusive_subdmerge(self, reference, nsub):
r"""
`exclusive_subdmerge(const PseudoJet &reference, int nsub) const -> double`
return the dij that was present in the merging nsub+1 -> nsub subjets inside
this jet.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_exclusive_subdmerge(self, reference, nsub)
def exclusive_subdmerge_max(self, reference, nsub):
r"""
`exclusive_subdmerge_max(const PseudoJet &reference, int nsub) const -> double`
return the maximum dij that occurred in the whole event at the stage that the
nsub+1 -> nsub merge of subjets occurred inside this jet.
an Error is thrown if this PseudoJet has no currently valid associated
ClusterSequence
"""
return _fastjet.ClusterSequenceStructure_exclusive_subdmerge_max(self, reference, nsub)
def has_pieces(self, reference):
r"""
`has_pieces(const PseudoJet &reference) const -> bool`
by convention, a jet associated with a ClusterSequence will have its parents as
pieces
"""
return _fastjet.ClusterSequenceStructure_has_pieces(self, reference)
def pieces(self, reference):
r"""
`pieces(const PseudoJet &reference) const -> std::vector< PseudoJet >`
by convention, a jet associated with a ClusterSequence will have its parents as
pieces
if it has no parents, then there will only be a single piece: itself
Note that to answer that question, we need to access the cluster sequence. If
the cluster sequence has gone out of scope, an error will be thrown
"""
return _fastjet.ClusterSequenceStructure_pieces(self, reference)
def has_area(self):
r"""
`has_area() const -> bool`
check if it has a defined area
"""
return _fastjet.ClusterSequenceStructure_has_area(self)
def area(self, reference):
r"""
`area(const PseudoJet &reference) const -> double`
return the jet (scalar) area.
throws an Error if there is no support for area in the parent CS
"""
return _fastjet.ClusterSequenceStructure_area(self, reference)
def area_error(self, reference):
r"""
`area_error(const PseudoJet &reference) const -> double`
return the error (uncertainty) associated with the determination of the area of
this jet.
throws an Error if there is no support for area in the parent CS
"""
return _fastjet.ClusterSequenceStructure_area_error(self, reference)
def area_4vector(self, reference):
r"""
`area_4vector(const PseudoJet &reference) const -> PseudoJet`
return the jet 4-vector area.
throws an Error if there is no support for area in the parent CS
"""
return _fastjet.ClusterSequenceStructure_area_4vector(self, reference)
def is_pure_ghost(self, reference):
r"""
`is_pure_ghost(const PseudoJet &reference) const -> bool`
true if this jet is made exclusively of ghosts.
throws an Error if there is no support for area in the parent CS
"""
return _fastjet.ClusterSequenceStructure_is_pure_ghost(self, reference)
# Register ClusterSequenceStructure in _fastjet:
_fastjet.ClusterSequenceStructure_swigregister(ClusterSequenceStructure)
class ClusterSequence(object):
r"""
deals with clustering
C++ includes: fastjet/ClusterSequence.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _fastjet.delete_ClusterSequence
def inclusive_jets(self, ptmin=0.0):
r"""
`inclusive_jets(const double ptmin=0.0) const -> std::vector< PseudoJet >`
return a vector of all jets (in the sense of the inclusive algorithm) with pt >=
ptmin.
Time taken should be of the order of the number of jets returned.
"""
return _fastjet.ClusterSequence_inclusive_jets(self, ptmin)
def n_exclusive_jets(self, dcut):
r"""
`n_exclusive_jets(const double dcut) const -> int`
return the number of jets (in the sense of the exclusive algorithm) that would
be obtained when running the algorithm with the given dcut.
"""
return _fastjet.ClusterSequence_n_exclusive_jets(self, dcut)
def exclusive_jets(self, *args):
r"""
`exclusive_jets(const int njets) const -> std::vector< PseudoJet >`
return a vector of all jets when the event is clustered (in the exclusive sense)
to exactly njets.
If there are fewer than njets particles in the ClusterSequence an error is
thrown
"""
return _fastjet.ClusterSequence_exclusive_jets(self, *args)
def exclusive_jets_up_to(self, njets):
r"""
`exclusive_jets_up_to(const int njets) const -> std::vector< PseudoJet >`
return a vector of all jets when the event is clustered (in the exclusive sense)
to exactly njets.
If there are fewer than njets particles in the ClusterSequence the function just
returns however many particles there were.
"""
return _fastjet.ClusterSequence_exclusive_jets_up_to(self, njets)
def exclusive_dmerge(self, njets):
r"""
`exclusive_dmerge(const int njets) const -> double`
return the dmin corresponding to the recombination that went from n+1 to n jets
(sometimes known as d_{n n+1}).
return the dmin corresponding to the recombination that went from n+1 to n jets
If the number of particles in the event is <= njets, the function returns 0.
"""
return _fastjet.ClusterSequence_exclusive_dmerge(self, njets)
def exclusive_dmerge_max(self, njets):
r"""
`exclusive_dmerge_max(const int njets) const -> double`
return the maximum of the dmin encountered during all recombinations up to the
one that led to an n-jet final state; identical to exclusive_dmerge, except in
cases where the dmin do not increase monotonically.
"""
return _fastjet.ClusterSequence_exclusive_dmerge_max(self, njets)
def exclusive_ymerge(self, njets):
r"""
`exclusive_ymerge(int njets) const -> double`
return the ymin corresponding to the recombination that went from n+1 to n jets
(sometimes known as y_{n n+1}).
"""
return _fastjet.ClusterSequence_exclusive_ymerge(self, njets)
def exclusive_ymerge_max(self, njets):
r"""
`exclusive_ymerge_max(int njets) const -> double`
same as exclusive_dmerge_max, but normalised to squared total energy
"""
return _fastjet.ClusterSequence_exclusive_ymerge_max(self, njets)
def n_exclusive_jets_ycut(self, ycut):
r"""
`n_exclusive_jets_ycut(double ycut) const -> int`
the number of exclusive jets at the given ycut
"""
return _fastjet.ClusterSequence_n_exclusive_jets_ycut(self, ycut)
def exclusive_jets_ycut(self, ycut):
r"""
`exclusive_jets_ycut(double ycut) const -> std::vector< PseudoJet >`
the exclusive jets obtained at the given ycut
"""
return _fastjet.ClusterSequence_exclusive_jets_ycut(self, ycut)
def n_exclusive_subjets(self, jet, dcut):
r"""
`n_exclusive_subjets(const PseudoJet &jet, const double dcut) const -> int`
return the size of exclusive_subjets(...); still n ln n with same coefficient,
but marginally more efficient than manually taking exclusive_subjets.size()
"""
return _fastjet.ClusterSequence_n_exclusive_subjets(self, jet, dcut)
def exclusive_subjets(self, *args):
r"""
`exclusive_subjets(const PseudoJet &jet, int nsub) const -> std::vector<
PseudoJet >`
return the list of subjets obtained by unclustering the supplied jet down to
nsub subjets.
Throws an error if there are fewer than nsub particles in the jet.
This requires nsub ln nsub time
Throws an error if there are fewer than nsub particles in the jet.
"""
return _fastjet.ClusterSequence_exclusive_subjets(self, *args)
def exclusive_subjets_up_to(self, jet, nsub):
r"""
`exclusive_subjets_up_to(const PseudoJet &jet, int nsub) const -> std::vector<
PseudoJet >`
return the list of subjets obtained by unclustering the supplied jet down to
nsub subjets (or all constituents if there are fewer than nsub).
This requires nsub ln nsub time
"""
return _fastjet.ClusterSequence_exclusive_subjets_up_to(self, jet, nsub)
def exclusive_subdmerge(self, jet, nsub):
r"""
`exclusive_subdmerge(const PseudoJet &jet, int nsub) const -> double`
returns the dij that was present in the merging nsub+1 -> nsub subjets inside
this jet.
return the dij that was present in the merging nsub+1 -> nsub subjets inside
this jet.
Returns 0 if there were nsub or fewer constituents in the jet.
If the jet has nsub or fewer constituents, it will return 0.
will be zero if nconst <= nsub, since highest will be an original particle have
zero dij
"""
return _fastjet.ClusterSequence_exclusive_subdmerge(self, jet, nsub)
def exclusive_subdmerge_max(self, jet, nsub):
r"""
`exclusive_subdmerge_max(const PseudoJet &jet, int nsub) const -> double`
returns the maximum dij that occurred in the whole event at the stage that the
nsub+1 -> nsub merge of subjets occurred inside this jet.
return the maximum dij that occurred in the whole event at the stage that the
nsub+1 -> nsub merge of subjets occurred inside this jet.
Returns 0 if there were nsub or fewer constituents in the jet.
If the jet has nsub or fewer constituents, it will return 0.
will be zero if nconst <= nsub, since highest will be an original particle have
zero dij
"""
return _fastjet.ClusterSequence_exclusive_subdmerge_max(self, jet, nsub)
def Q(self):
r"""
`Q() const -> double`
returns the sum of all energies in the event (relevant mainly for e+e-)
"""
return _fastjet.ClusterSequence_Q(self)
def Q2(self):
r"""
`Q2() const -> double`
return Q()^2
"""
return _fastjet.ClusterSequence_Q2(self)
def object_in_jet(self, object, jet):
r"""
`object_in_jet(const PseudoJet &object, const PseudoJet &jet) const -> bool`
returns true iff the object is included in the jet.
NB: this is only sensible if the object is already registered within the cluster
sequence, so you cannot use it with an input particle to the CS (since the
particle won't have the history index set properly).
For nice clustering structures it should run in O(ln(N)) time but in worst cases
(certain cone plugins) it can take O(n) time, where n is the number of particles
in the jet.
"""
return _fastjet.ClusterSequence_object_in_jet(self, object, jet)
def has_parents(self, jet, parent1, parent2):
r"""
`has_parents(const PseudoJet &jet, PseudoJet &parent1, PseudoJet &parent2) const
-> bool`
if the jet has parents in the clustering, it returns true and sets parent1 and
parent2 equal to them.
if it has no parents it returns false and sets parent1 and parent2 to zero
"""
return _fastjet.ClusterSequence_has_parents(self, jet, parent1, parent2)
def has_child(self, *args):
r"""
`has_child(const PseudoJet &jet, const PseudoJet *&childp) const -> bool`
Version of has_child that sets a pointer to the child if the child exists;.
"""
return _fastjet.ClusterSequence_has_child(self, *args)
def has_partner(self, jet, partner):
r"""
`has_partner(const PseudoJet &jet, PseudoJet &partner) const -> bool`
if this jet has a child (and so a partner) return true and give the partner,
otherwise return false and set the partner to zero
"""
return _fastjet.ClusterSequence_has_partner(self, jet, partner)
def constituents(self, jet):
r"""
`constituents(const PseudoJet &jet) const -> std::vector< PseudoJet >`
return a vector of the particles that make up jet
"""
return _fastjet.ClusterSequence_constituents(self, jet)
def print_jets_for_root(self, *args):
r"""
`print_jets_for_root(const std::vector< PseudoJet > &jets, const std::string
&filename, const std::string &comment="") const`
print jets for root to the file labelled filename, with an optional comment at
the beginning
"""
return _fastjet.ClusterSequence_print_jets_for_root(self, *args)
def add_constituents(self, jet, subjet_vector):
r"""
`add_constituents(const PseudoJet &jet, std::vector< PseudoJet > &subjet_vector)
const`
add on to subjet_vector the constituents of jet (for internal use mainly)
"""
return _fastjet.ClusterSequence_add_constituents(self, jet, subjet_vector)
def strategy_used(self):
r"""
`strategy_used() const -> Strategy`
return the enum value of the strategy used to cluster the event
"""
return _fastjet.ClusterSequence_strategy_used(self)
def strategy_string(self, *args):
r"""
`strategy_string(Strategy strategy_in) const -> std::string`
return the name of the strategy associated with the enum strategy_in
"""
return _fastjet.ClusterSequence_strategy_string(self, *args)
def jet_def(self):
r"""
`jet_def() const -> const JetDefinition &`
return a reference to the jet definition
"""
return _fastjet.ClusterSequence_jet_def(self)
def delete_self_when_unused(self):
r"""
`delete_self_when_unused()`
by calling this routine you tell the ClusterSequence to delete itself when all
the Pseudojets associated with it have gone out of scope.
At the time you call this, there must be at least one jet or other object
outside the CS that is associated with the CS (e.g. the result of
inclusive_jets()).
NB: after having made this call, the user is still allowed to delete the CS.
Jets associated with it will then simply not be able to access their
substructure after that point.
"""
return _fastjet.ClusterSequence_delete_self_when_unused(self)
def will_delete_self_when_unused(self):
r"""
`will_delete_self_when_unused() const -> bool`
return true if the object has been told to delete itself when unused
"""
return _fastjet.ClusterSequence_will_delete_self_when_unused(self)
def signal_imminent_self_deletion(self):
r"""
`signal_imminent_self_deletion() const`
tell the ClusterSequence it's about to be self deleted (internal use only)
"""
return _fastjet.ClusterSequence_signal_imminent_self_deletion(self)
def jet_scale_for_algorithm(self, jet):
r"""
`jet_scale_for_algorithm(const PseudoJet &jet) const -> double`
returns the scale associated with a jet as required for this clustering
algorithm (kt^2 for the kt-algorithm, 1 for the Cambridge algorithm).
Intended mainly for internal use and not valid for plugin algorithms.
"""
return _fastjet.ClusterSequence_jet_scale_for_algorithm(self, jet)
def plugin_record_ij_recombination(self, *args):
r"""
`plugin_record_ij_recombination(int jet_i, int jet_j, double dij, const
PseudoJet &newjet, int &newjet_k)`
as for the simpler variant of plugin_record_ij_recombination, except that the
new jet is attributed the momentum and user_index of newjet
"""
return _fastjet.ClusterSequence_plugin_record_ij_recombination(self, *args)
def plugin_record_iB_recombination(self, jet_i, diB):
r"""
`plugin_record_iB_recombination(int jet_i, double diB)`
record the fact that there has been a recombination between jets()[jet_i] and
the beam, with the specified diB; when looking for inclusive jets, any iB
recombination will returned to the user as a jet.
"""
return _fastjet.ClusterSequence_plugin_record_iB_recombination(self, jet_i, diB)
def plugin_associate_extras(self, extras_in):
r"""
`plugin_associate_extras(Extras *extras_in)`
the plugin can associate some extra information with the ClusterSequence object
by calling this function.
The ClusterSequence takes ownership of the pointer (and responsibility for
deleting it when the CS gets deleted).
"""
return _fastjet.ClusterSequence_plugin_associate_extras(self, extras_in)
def plugin_activated(self):
r"""
`plugin_activated() const -> bool`
returns true when the plugin is allowed to run the show.
"""
return _fastjet.ClusterSequence_plugin_activated(self)
def extras(self):
r"""
`extras() const -> const Extras *`
returns a pointer to the extras object (may be null)
"""
return _fastjet.ClusterSequence_extras(self)
Invalid = _fastjet.ClusterSequence_Invalid
InexistentParent = _fastjet.ClusterSequence_InexistentParent
BeamJet = _fastjet.ClusterSequence_BeamJet
def jets(self):
r"""
`jets() const -> const std::vector< PseudoJet > &`
allow the user to access the internally stored _jets() array, which contains
both the initial particles and the various intermediate and final stages of
recombination.
The first n_particles() entries are the original particles, in the order in
which they were supplied to the ClusterSequence constructor. It can be useful to
access them for example when examining whether a given input object is part of a
specific jet, via the objects_in_jet(...) member function (which only takes
PseudoJets that are registered in the ClusterSequence).
One of the other (internal uses) is related to the fact because we don't seem to
be able to access protected elements of the class for an object that is not
"this" (at least in case where "this" is of a slightly different kind from
the object, both derived from ClusterSequence).
"""
return _fastjet.ClusterSequence_jets(self)
def history(self):
r"""
`history() const -> const std::vector< history_element > &`
allow the user to access the raw internal history.
This is present (as for jets()) in part so that protected derived classes can
access this information about other ClusterSequences.
A user who wishes to follow the details of the ClusterSequence can also make use
of this information (and should consult the history_element documentation for
more information), but should be aware that these internal structures may evolve
in future FastJet versions.
"""
return _fastjet.ClusterSequence_history(self)
def n_particles(self):
r"""
`n_particles() const -> unsigned int`
returns the number of particles that were provided to the clustering algorithm
(helps the user find their way around the history and jets objects if they
weren't paying attention beforehand).
"""
return _fastjet.ClusterSequence_n_particles(self)
def particle_jet_indices(self, arg2):
r"""
`particle_jet_indices(const std::vector< PseudoJet > &) const -> std::vector<
int >`
returns a vector of size n_particles() which indicates, for each of the initial
particles (in the order in which they were supplied), which of the supplied jets
it belongs to; if it does not belong to any of the supplied jets, the index is
set to -1;
"""
return _fastjet.ClusterSequence_particle_jet_indices(self, arg2)
def unique_history_order(self):
r"""
`unique_history_order() const -> std::vector< int >`
routine that returns an order in which to read the history such that clusterings
that lead to identical jet compositions but different histories (because of
degeneracies in the clustering order) will have matching constituents for each
matching entry in the unique_history_order.
The order has the property that an entry's parents will always appear prior to
that entry itself.
Roughly speaking the order is such that we first provide all steps that lead to
the final jet containing particle 1; then we have the steps that lead to
reconstruction of the jet containing the next-lowest-numbered unclustered
particle, etc... [see GPS CCN28-12 for more info -- of course a full explanation
here would be better...]
"""
return _fastjet.ClusterSequence_unique_history_order(self)
def unclustered_particles(self):
r"""
`unclustered_particles() const -> std::vector< PseudoJet >`
return the set of particles that have not been clustered.
For kt and cam/aachen algorithms this should always be null, but for cone type
algorithms it can be non-null;
"""
return _fastjet.ClusterSequence_unclustered_particles(self)
def childless_pseudojets(self):
r"""
`childless_pseudojets() const -> std::vector< PseudoJet >`
Return the list of pseudojets in the ClusterSequence that do not have children
(and are not among the inclusive jets).
They may result from a clustering step or may be one of the pseudojets returned
by unclustered_particles().
"""
return _fastjet.ClusterSequence_childless_pseudojets(self)
def contains(self, object):
r"""
`contains(const PseudoJet &object) const -> bool`
returns true if the object (jet or particle) is contained by (ie belongs to)
this cluster sequence.
Tests performed: if thejet's interface is this cluster sequence and its cluster
history index is in a consistent range.
"""
return _fastjet.ClusterSequence_contains(self, object)
def transfer_from_sequence(self, from_seq, action_on_jets=None):
r"""
`transfer_from_sequence(const ClusterSequence &from_seq, const
FunctionOfPseudoJet< PseudoJet > *action_on_jets=0)`
transfer the sequence contained in other_seq into our own; any plugin "extras"
contained in the from_seq will be lost from there.
It also sets the ClusterSequence pointers of the PseudoJets in the history to
point to this ClusterSequence
When specified, the second argument is an action that will be applied on every
jets in the resulting ClusterSequence
"""
return _fastjet.ClusterSequence_transfer_from_sequence(self, from_seq, action_on_jets)
def structure_shared_ptr(self):
r"""
`structure_shared_ptr() const -> const SharedPtr< PseudoJetStructureBase > &`
retrieve a shared pointer to the wrapper to this ClusterSequence
this may turn useful if you want to track when this ClusterSequence goes out of
scope
"""
return _fastjet.ClusterSequence_structure_shared_ptr(self)
@staticmethod
def print_banner():
r"""
`print_banner()`
This is the function that is automatically called during clustering to print the
FastJet banner.
Only the first call to this function will result in the printout of the banner.
Users may wish to call this function themselves, during the initialization phase
of their program, in order to ensure that the banner appears before other
output. This call will not affect 3rd-party banners, e.g. those from plugins.
"""
return _fastjet.ClusterSequence_print_banner()
@staticmethod
def set_fastjet_banner_stream(ostr):
return _fastjet.ClusterSequence_set_fastjet_banner_stream(ostr)
@staticmethod
def fastjet_banner_stream():
r"""
`fastjet_banner_stream() -> std::ostream *`
returns a pointer to the stream to be used to print banners (cout by default).
This function is used by plugins to determine where to direct their banners.
Plugins should properly handle the case where the pointer is null.
"""
return _fastjet.ClusterSequence_fastjet_banner_stream()
def __init__(self, *args):
r"""
`ClusterSequence(const ClusterSequence &cs)`
copy constructor for a ClusterSequence
"""
_fastjet.ClusterSequence_swiginit(self, _fastjet.new_ClusterSequence(*args))
# Register ClusterSequence in _fastjet:
_fastjet.ClusterSequence_swigregister(ClusterSequence)
def ClusterSequence_print_banner():
r"""
`print_banner()`
This is the function that is automatically called during clustering to print the
FastJet banner.
Only the first call to this function will result in the printout of the banner.
Users may wish to call this function themselves, during the initialization phase
of their program, in order to ensure that the banner appears before other
output. This call will not affect 3rd-party banners, e.g. those from plugins.
"""
return _fastjet.ClusterSequence_print_banner()
def ClusterSequence_set_fastjet_banner_stream(ostr):
return _fastjet.ClusterSequence_set_fastjet_banner_stream(ostr)
def ClusterSequence_fastjet_banner_stream():
r"""
`fastjet_banner_stream() -> std::ostream *`
returns a pointer to the stream to be used to print banners (cout by default).
This function is used by plugins to determine where to direct their banners.
Plugins should properly handle the case where the pointer is null.
"""
return _fastjet.ClusterSequence_fastjet_banner_stream()
class TilingBase(object):
r"""
Class to indicate generic structure of tilings.
C++ includes: fastjet/RectangularGrid.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
def tile_index(self, p):
r"""
`tile_index(const PseudoJet &p) const =0 -> int`
returns the index of the tile in which p is located, or -1 if p is outside the
tiling region
"""
return _fastjet.TilingBase_tile_index(self, p)
def n_tiles(self):
r"""
`n_tiles() const =0 -> int`
returns the total number of tiles in the tiling; valid tile indices run from 0
...
n_tiles()-1;
"""
return _fastjet.TilingBase_n_tiles(self)
def n_good_tiles(self):
r"""
`n_good_tiles() const -> int`
returns the number of tiles that are "good"; i.e.
there is scope for having tiles that, for whatever reason, should be ignored;
there are situations in which having "non-good" tiles may be the simplest
mechanism to obtain a tiling with holes in it
"""
return _fastjet.TilingBase_n_good_tiles(self)
def tile_is_good(self, arg2):
r"""
`tile_is_good(int) const -> bool`
returns whether a given tile is good
"""
return _fastjet.TilingBase_tile_is_good(self, arg2)
def all_tiles_good(self):
r"""
`all_tiles_good() const -> bool`
returns whether all tiles are good
"""
return _fastjet.TilingBase_all_tiles_good(self)
def all_tiles_equal_area(self):
r"""
`all_tiles_equal_area() const -> bool`
returns true if all tiles have the same area
"""
return _fastjet.TilingBase_all_tiles_equal_area(self)
def tile_area(self, arg2):
r"""
`tile_area(int) const -> double`
returns the area of tile itile.
Here with a default implementation to return mean_tile_area(), consistent with
the fact that all_tiles_equal_area() returns true.
"""
return _fastjet.TilingBase_tile_area(self, arg2)
def mean_tile_area(self):
r"""
`mean_tile_area() const =0 -> double`
returns the mean area of the tiles.
"""
return _fastjet.TilingBase_mean_tile_area(self)
def description(self):
r"""
`description() const =0 -> std::string`
returns a string to describe the tiling
"""
return _fastjet.TilingBase_description(self)
def is_initialised(self):
r"""
`is_initialised() const =0 -> bool`
returns true if the Tiling structure is in a suitably initialised state
"""
return _fastjet.TilingBase_is_initialised(self)
def is_initialized(self):
r"""
`is_initialized() const -> bool`
"""
return _fastjet.TilingBase_is_initialized(self)
__swig_destroy__ = _fastjet.delete_TilingBase
# Register TilingBase in _fastjet:
_fastjet.TilingBase_swigregister(TilingBase)
class RectangularGrid(TilingBase):
r"""
Class that holds a generic rectangular tiling.
C++ includes: fastjet/RectangularGrid.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`RectangularGrid()`
dummy ctor (will give an unusable grid)
"""
_fastjet.RectangularGrid_swiginit(self, _fastjet.new_RectangularGrid(*args))
def n_tiles(self):
r"""
`n_tiles() const -> int`
returns the total number of tiles in the tiling; valid tile indices run from 0
...
n_tiles()-1;
"""
return _fastjet.RectangularGrid_n_tiles(self)
def n_good_tiles(self):
r"""
`n_good_tiles() const -> int`
returns the number of tiles that are "good"; i.e.
there is scope for having tiles that, for whatever reason, should be ignored;
there are situations in which having "non-good" tiles may be the simplest
mechanism to obtain a tiling with holes in it
"""
return _fastjet.RectangularGrid_n_good_tiles(self)
def tile_index(self, p):
r"""
`tile_index(const PseudoJet &p) const -> int`
returns the index of the tile in which p is located, or -1 if p is outside the
tiling region
"""
return _fastjet.RectangularGrid_tile_index(self, p)
def tile_is_good(self, itile):
r"""
`tile_is_good(int itile) const -> bool`
returns whether a given tile is good
"""
return _fastjet.RectangularGrid_tile_is_good(self, itile)
def tile_area(self, arg2):
r"""
`tile_area(int) const -> double`
returns the area of tile itile.
"""
return _fastjet.RectangularGrid_tile_area(self, arg2)
def mean_tile_area(self):
r"""
`mean_tile_area() const -> double`
returns the mean area of tiles.
"""
return _fastjet.RectangularGrid_mean_tile_area(self)
def description(self):
r"""
`description() const -> std::string`
returns a textual description of the grid
"""
return _fastjet.RectangularGrid_description(self)
def rapmin(self):
r"""
`rapmin() const -> double`
returns the minimum rapidity extent of the grid
"""
return _fastjet.RectangularGrid_rapmin(self)
def rapmax(self):
r"""
`rapmax() const -> double`
returns the maxmium rapidity extent of the grid
"""
return _fastjet.RectangularGrid_rapmax(self)
def drap(self):
r"""
`drap() const -> double`
returns the spacing of the grid in rapidity
"""
return _fastjet.RectangularGrid_drap(self)
def dphi(self):
r"""
`dphi() const -> double`
returns the spacing of the grid in azimuth
"""
return _fastjet.RectangularGrid_dphi(self)
def is_initialised(self):
r"""
`is_initialised() const -> bool`
returns true if the grid is in a suitably initialised state
"""
return _fastjet.RectangularGrid_is_initialised(self)
def __str__(self):
return _fastjet.RectangularGrid___str__(self)
__swig_destroy__ = _fastjet.delete_RectangularGrid
# Register RectangularGrid in _fastjet:
_fastjet.RectangularGrid_swigregister(RectangularGrid)
class _NoInfo(object):
r"""
internal dummy class, used as a default template argument
C++ includes: fastjet/NNBase.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self):
_fastjet._NoInfo_swiginit(self, _fastjet.new__NoInfo())
__swig_destroy__ = _fastjet.delete__NoInfo
# Register _NoInfo in _fastjet:
_fastjet._NoInfo_swigregister(_NoInfo)
STATIC_GENERATOR = _fastjet.STATIC_GENERATOR
class GhostedAreaSpec(object):
r"""
Parameters to configure the computation of jet areas using ghosts.
Class that defines the parameters that go into the measurement of active jet
areas.
C++ includes: fastjet/GhostedAreaSpec.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`GhostedAreaSpec(const Selector &selector, int repeat_in=gas::def_repeat, double
ghost_area_in=gas::def_ghost_area, double
grid_scatter_in=gas::def_grid_scatter, double
pt_scatter_in=gas::def_pt_scatter, double
mean_ghost_pt_in=gas::def_mean_ghost_pt)`
constructor based on a Selector
explicit constructor
"""
_fastjet.GhostedAreaSpec_swiginit(self, _fastjet.new_GhostedAreaSpec(*args))
def _initialize(self):
r"""
`_initialize()`
does the initialization of actual ghost parameters
sets the detailed parameters for the ghosts (which may not be quite the same as
those requested -- this is in order for things to fit in nicely into 2pi etc...
"""
return _fastjet.GhostedAreaSpec__initialize(self)
def ghost_rapmax(self):
r"""
`ghost_rapmax() const -> double`
"""
return _fastjet.GhostedAreaSpec_ghost_rapmax(self)
def ghost_maxrap(self):
r"""
`ghost_maxrap() const -> double`
"""
return _fastjet.GhostedAreaSpec_ghost_maxrap(self)
def ghost_etamax(self):
r"""
`ghost_etamax() const -> double`
"""
return _fastjet.GhostedAreaSpec_ghost_etamax(self)
def ghost_maxeta(self):
r"""
`ghost_maxeta() const -> double`
"""
return _fastjet.GhostedAreaSpec_ghost_maxeta(self)
def ghost_area(self):
r"""
`ghost_area() const -> double`
"""
return _fastjet.GhostedAreaSpec_ghost_area(self)
def grid_scatter(self):
r"""
`grid_scatter() const -> double`
"""
return _fastjet.GhostedAreaSpec_grid_scatter(self)
def pt_scatter(self):
r"""
`pt_scatter() const -> double`
"""
return _fastjet.GhostedAreaSpec_pt_scatter(self)
def mean_ghost_pt(self):
r"""
`mean_ghost_pt() const -> double`
"""
return _fastjet.GhostedAreaSpec_mean_ghost_pt(self)
def repeat(self):
r"""
`repeat() const -> int`
"""
return _fastjet.GhostedAreaSpec_repeat(self)
def fj2_placement(self):
r"""
`fj2_placement() const -> bool`
"""
return _fastjet.GhostedAreaSpec_fj2_placement(self)
def kt_scatter(self):
r"""
`kt_scatter() const -> double`
"""
return _fastjet.GhostedAreaSpec_kt_scatter(self)
def mean_ghost_kt(self):
r"""
`mean_ghost_kt() const -> double`
"""
return _fastjet.GhostedAreaSpec_mean_ghost_kt(self)
def actual_ghost_area(self):
r"""
`actual_ghost_area() const -> double`
"""
return _fastjet.GhostedAreaSpec_actual_ghost_area(self)
def n_ghosts(self):
r"""
`n_ghosts() const -> int`
"""
return _fastjet.GhostedAreaSpec_n_ghosts(self)
def set_ghost_area(self, val):
r"""
`set_ghost_area(double val)`
"""
return _fastjet.GhostedAreaSpec_set_ghost_area(self, val)
def set_ghost_rapmax(self, val):
r"""
`set_ghost_rapmax(double val)`
"""
return _fastjet.GhostedAreaSpec_set_ghost_rapmax(self, val)
def set_ghost_maxrap(self, val):
r"""
`set_ghost_maxrap(double val)`
"""
return _fastjet.GhostedAreaSpec_set_ghost_maxrap(self, val)
def set_ghost_etamax(self, val):
r"""
`set_ghost_etamax(double val)`
"""
return _fastjet.GhostedAreaSpec_set_ghost_etamax(self, val)
def set_ghost_maxeta(self, val):
r"""
`set_ghost_maxeta(double val)`
"""
return _fastjet.GhostedAreaSpec_set_ghost_maxeta(self, val)
def set_grid_scatter(self, val):
r"""
`set_grid_scatter(double val)`
"""
return _fastjet.GhostedAreaSpec_set_grid_scatter(self, val)
def set_pt_scatter(self, val):
r"""
`set_pt_scatter(double val)`
"""
return _fastjet.GhostedAreaSpec_set_pt_scatter(self, val)
def set_mean_ghost_pt(self, val):
r"""
`set_mean_ghost_pt(double val)`
"""
return _fastjet.GhostedAreaSpec_set_mean_ghost_pt(self, val)
def set_repeat(self, val):
r"""
`set_repeat(int val)`
"""
return _fastjet.GhostedAreaSpec_set_repeat(self, val)
def set_kt_scatter(self, val):
r"""
`set_kt_scatter(double val)`
"""
return _fastjet.GhostedAreaSpec_set_kt_scatter(self, val)
def set_mean_ghost_kt(self, val):
r"""
`set_mean_ghost_kt(double val)`
"""
return _fastjet.GhostedAreaSpec_set_mean_ghost_kt(self, val)
def set_fj2_placement(self, val):
return _fastjet.GhostedAreaSpec_set_fj2_placement(self, val)
def nphi(self):
r"""
`nphi() const -> int`
return nphi (ghosts layed out (-nrap, 0..nphi-1), (-nrap+1,0..nphi-1), ...
(nrap,0..nphi-1)
"""
return _fastjet.GhostedAreaSpec_nphi(self)
def nrap(self):
r"""
`nrap() const -> int`
"""
return _fastjet.GhostedAreaSpec_nrap(self)
def get_random_status(self, __iseed):
r"""
`get_random_status(std::vector< int > &__iseed) const`
get all relevant information about the status of the random number generator, so
that it can be reset subsequently with set_random_status.
"""
return _fastjet.GhostedAreaSpec_get_random_status(self, __iseed)
def set_random_status(self, __iseed):
r"""
`set_random_status(const std::vector< int > &__iseed)`
set the status of the random number generator, as obtained previously with
get_random_status.
Note that the random generator is a static member of the class, i.e. common to
all instances of the class --- so if you modify the random for this instance,
you modify it for all instances.
"""
return _fastjet.GhostedAreaSpec_set_random_status(self, __iseed)
def with_fixed_seed(self, __iseed):
return _fastjet.GhostedAreaSpec_with_fixed_seed(self, __iseed)
def get_fixed_seed(self, __iseed):
return _fastjet.GhostedAreaSpec_get_fixed_seed(self, __iseed)
def get_last_seed(self, __iseed):
return _fastjet.GhostedAreaSpec_get_last_seed(self, __iseed)
def checkpoint_random(self):
r"""
`checkpoint_random()`
"""
return _fastjet.GhostedAreaSpec_checkpoint_random(self)
def restore_checkpoint_random(self):
r"""
`restore_checkpoint_random()`
"""
return _fastjet.GhostedAreaSpec_restore_checkpoint_random(self)
def description(self):
r"""
`description() const -> std::string`
for a summary
"""
return _fastjet.GhostedAreaSpec_description(self)
def add_ghosts(self, arg2):
r"""
`add_ghosts(std::vector< PseudoJet > &) const`
push a set of ghost 4-momenta onto the back of the vector of PseudoJets
adds the ghost 4-momenta to the vector of PseudoJet's
"""
return _fastjet.GhostedAreaSpec_add_ghosts(self, arg2)
def random_at_own_risk(self):
r"""
`random_at_own_risk() const -> double`
very deprecated public access to a random number from the internal generator
"""
return _fastjet.GhostedAreaSpec_random_at_own_risk(self)
def generator_at_own_risk(self):
r"""
`generator_at_own_risk() const -> BasicRandom< double > &`
very deprecated public access to the generator itself
"""
return _fastjet.GhostedAreaSpec_generator_at_own_risk(self)
def user_random_generator_at_own_risk(self):
return _fastjet.GhostedAreaSpec_user_random_generator_at_own_risk(self)
def __str__(self):
return _fastjet.GhostedAreaSpec___str__(self)
__swig_destroy__ = _fastjet.delete_GhostedAreaSpec
# Register GhostedAreaSpec in _fastjet:
_fastjet.GhostedAreaSpec_swigregister(GhostedAreaSpec)
def_ghost_maxrap = cvar.def_ghost_maxrap
def_repeat = cvar.def_repeat
def_ghost_area = cvar.def_ghost_area
def_grid_scatter = cvar.def_grid_scatter
def_pt_scatter = cvar.def_pt_scatter
def_mean_ghost_pt = cvar.def_mean_ghost_pt
class VoronoiAreaSpec(object):
r"""
Specification for the computation of the Voronoi jet area.
class for holding a "Voronoi area" specification; an area will be assigned to
each particle, which is the area of the intersection of the particle's Voronoi
cell with a circle of radius R*effective_Rfact.
C++ includes: fastjet/AreaDefinition.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`VoronoiAreaSpec(double effective_Rfact_in)`
constructor that allows you to set effective_Rfact.
"""
_fastjet.VoronoiAreaSpec_swiginit(self, _fastjet.new_VoronoiAreaSpec(*args))
def effective_Rfact(self):
r"""
`effective_Rfact() const -> double`
return the value of effective_Rfact
"""
return _fastjet.VoronoiAreaSpec_effective_Rfact(self)
def description(self):
r"""
`description() const -> std::string`
return a textual description of the area definition.
"""
return _fastjet.VoronoiAreaSpec_description(self)
__swig_destroy__ = _fastjet.delete_VoronoiAreaSpec
# Register VoronoiAreaSpec in _fastjet:
_fastjet.VoronoiAreaSpec_swigregister(VoronoiAreaSpec)
invalid_area = _fastjet.invalid_area
active_area = _fastjet.active_area
active_area_explicit_ghosts = _fastjet.active_area_explicit_ghosts
one_ghost_passive_area = _fastjet.one_ghost_passive_area
passive_area = _fastjet.passive_area
voronoi_area = _fastjet.voronoi_area
class AreaDefinition(object):
r"""
class that holds a generic area definition
C++ includes: fastjet/AreaDefinition.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`AreaDefinition(const VoronoiAreaSpec &spec)`
constructor for an area definition based on a voronoi area specification
"""
_fastjet.AreaDefinition_swiginit(self, _fastjet.new_AreaDefinition(*args))
def description(self):
r"""
`description() const -> std::string`
return a description of the current area definition
return info about the type of area being used by this defn
"""
return _fastjet.AreaDefinition_description(self)
def area_type(self):
r"""
`area_type() const -> AreaType`
return info about the type of area being used by this defn
"""
return _fastjet.AreaDefinition_area_type(self)
def ghost_spec(self, *args):
r"""
`ghost_spec() -> GhostedAreaSpec &`
"""
return _fastjet.AreaDefinition_ghost_spec(self, *args)
def voronoi_spec(self):
r"""
`voronoi_spec() const -> const VoronoiAreaSpec &`
return a reference to the voronoi area spec
"""
return _fastjet.AreaDefinition_voronoi_spec(self)
def with_fixed_seed(self, iseed):
return _fastjet.AreaDefinition_with_fixed_seed(self, iseed)
def __str__(self):
return _fastjet.AreaDefinition___str__(self)
__swig_destroy__ = _fastjet.delete_AreaDefinition
# Register AreaDefinition in _fastjet:
_fastjet.AreaDefinition_swigregister(AreaDefinition)
class ClusterSequenceAreaBase(ClusterSequence):
r"""
base class that sets interface for extensions of ClusterSequence that provide
information about the area of each jet
the virtual functions here all return 0, since no area determination is
implemented.
C++ includes: fastjet/ClusterSequenceAreaBase.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self):
r"""
`ClusterSequenceAreaBase()`
default constructor
"""
_fastjet.ClusterSequenceAreaBase_swiginit(self, _fastjet.new_ClusterSequenceAreaBase())
__swig_destroy__ = _fastjet.delete_ClusterSequenceAreaBase
def area(self, arg2):
r"""
`area(const PseudoJet &) const -> double`
return the area associated with the given jet; this base class returns 0.
"""
return _fastjet.ClusterSequenceAreaBase_area(self, arg2)
def area_error(self, arg2):
r"""
`area_error(const PseudoJet &) const -> double`
return the error (uncertainty) associated with the determination of the area of
this jet; this base class returns 0.
"""
return _fastjet.ClusterSequenceAreaBase_area_error(self, arg2)
def area_4vector(self, arg2):
r"""
`area_4vector(const PseudoJet &) const -> PseudoJet`
return a PseudoJet whose 4-vector is defined by the following integral
drap d PseudoJet("rap,phi,pt=one") *
* Theta("rap,phi inside jet boundary")
where PseudoJet("rap,phi,pt=one") is a 4-vector with the given rapidity (rap),
azimuth (phi) and pt=1, while Theta("rap,phi
inside jet boundary") is a function that is 1 when rap,phi define a direction
inside the jet boundary and 0 otherwise.
This base class returns a null 4-vector.
"""
return _fastjet.ClusterSequenceAreaBase_area_4vector(self, arg2)
def is_pure_ghost(self, arg2):
r"""
`is_pure_ghost(const PseudoJet &) const -> bool`
true if a jet is made exclusively of ghosts
NB: most area classes do not give any explicit ghost jets, but some do, and they
should replace this function with their own version.
"""
return _fastjet.ClusterSequenceAreaBase_is_pure_ghost(self, arg2)
def has_explicit_ghosts(self):
r"""
`has_explicit_ghosts() const -> bool`
returns true if ghosts are explicitly included within jets for this
ClusterSequence;
Derived classes that do include explicit ghosts should provide an alternative
version of this routine and set it properly.
"""
return _fastjet.ClusterSequenceAreaBase_has_explicit_ghosts(self)
def empty_area(self, selector):
r"""
`empty_area(const Selector &selector) const -> double`
return the total area, corresponding to the given Selector, that is free of
jets, in general based on the inclusive jets.
return the total area, within the selector's range, that is free of jets.
The selector passed as an argument has to have a finite area and apply jet-by-
jet (see the BackgroundEstimator and Subtractor tools for more generic usages)
Calculate this as (range area) - {i in range} A_i
for ClusterSequences with explicit ghosts, assume that there will never be any
empty area, i.e. it is always filled in by pure ghosts jets. This holds for
seq.rec. algorithms
"""
return _fastjet.ClusterSequenceAreaBase_empty_area(self, selector)
def empty_area_from_jets(self, all_jets, selector):
r"""
`empty_area_from_jets(const std::vector< PseudoJet > &all_jets, const Selector
&selector) const -> double`
return the total area, corresponding to the given Selector, that is free of
jets, based on the supplied all_jets
return the total area, within range, that is free of jets.
The selector passed as an argument has to have a finite area and apply jet-by-
jet (see the BackgroundEstimator and Subtractor tools for more generic usages)
Calculate this as (range area) - {i in range} A_i
"""
return _fastjet.ClusterSequenceAreaBase_empty_area_from_jets(self, all_jets, selector)
def n_empty_jets(self, selector):
r"""
`n_empty_jets(const Selector &selector) const -> double`
return something similar to the number of pure ghost jets in the given
selector's range in an active area case.
For the local implementation we return empty_area/(0.55 pi R^2), based on
measured properties of ghost jets with kt and cam (cf arXiv:0802.1188).
Note that the number returned is a double.
The selector passed as an argument has to have a finite area and apply jet-by-
jet (see the BackgroundEstimator and Subtractor tools for more generic usages)
"""
return _fastjet.ClusterSequenceAreaBase_n_empty_jets(self, selector)
def median_pt_per_unit_area(self, selector):
return _fastjet.ClusterSequenceAreaBase_median_pt_per_unit_area(self, selector)
def median_pt_per_unit_area_4vector(self, selector):
return _fastjet.ClusterSequenceAreaBase_median_pt_per_unit_area_4vector(self, selector)
def median_pt_per_unit_something(self, selector, use_area_4vector):
return _fastjet.ClusterSequenceAreaBase_median_pt_per_unit_something(self, selector, use_area_4vector)
def get_median_rho_and_sigma(self, *args):
r"""
`get_median_rho_and_sigma(const Selector &selector, bool use_area_4vector,
double &median, double &sigma) const`
same as the full version of get_median_rho_and_error, but without access to the
mean_area
The selector passed as an argument has to have a finite area and apply jet-by-
jet (see the BackgroundEstimator and Subtractor tools for more generic usages)
"""
return _fastjet.ClusterSequenceAreaBase_get_median_rho_and_sigma(self, *args)
def parabolic_pt_per_unit_area(self, a, b, selector, exclude_above=-1.0, use_area_4vector=False):
r"""
`parabolic_pt_per_unit_area(double &a, double &b, const Selector &selector,
double exclude_above=-1.0, bool use_area_4vector=false) const`
fits a form pt_per_unit_area(y) = a + b*y^2 in the selector range.
fits a form pt_per_unit_area(y) = a + b*y^2 for jets in range.
exclude_above allows one to exclude large values of pt/area from fit. (if
negative, the cut is discarded) use_area_4vector = true uses the 4vector areas.
The selector passed as an argument has to have a finite area and apply jet-by-
jet (see the BackgroundEstimator and Subtractor tools for more generic usages)
exclude_above allows one to exclude large values of pt/area from fit.
use_area_4vector = true uses the 4vector areas.
"""
return _fastjet.ClusterSequenceAreaBase_parabolic_pt_per_unit_area(self, a, b, selector, exclude_above, use_area_4vector)
def subtracted_jets(self, *args):
return _fastjet.ClusterSequenceAreaBase_subtracted_jets(self, *args)
def subtracted_jet(self, *args):
return _fastjet.ClusterSequenceAreaBase_subtracted_jet(self, *args)
def subtracted_pt(self, *args):
return _fastjet.ClusterSequenceAreaBase_subtracted_pt(self, *args)
# Register ClusterSequenceAreaBase in _fastjet:
_fastjet.ClusterSequenceAreaBase_swigregister(ClusterSequenceAreaBase)
class ClusterSequenceActiveAreaExplicitGhosts(ClusterSequenceAreaBase):
r"""
Like ClusterSequence with computation of the active jet area with the addition
of explicit ghosts.
Class that behaves essentially like ClusterSequence except that it also provides
access to the area of a jet (which will be a random quantity... Figure out what
to do about seeds later...)
This class should not be used directly. Rather use ClusterSequenceArea with the
appropriate AreaDefinition
C++ includes: fastjet/ClusterSequenceActiveAreaExplicitGhosts.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def n_hard_particles(self):
r"""
`n_hard_particles() const -> unsigned int`
returns the number of hard particles (i.e. those supplied by the user).
"""
return _fastjet.ClusterSequenceActiveAreaExplicitGhosts_n_hard_particles(self)
def area(self, jet):
r"""
`area(const PseudoJet &jet) const -> double`
returns the area of a jet
"""
return _fastjet.ClusterSequenceActiveAreaExplicitGhosts_area(self, jet)
def area_4vector(self, jet):
r"""
`area_4vector(const PseudoJet &jet) const -> PseudoJet`
returns a four vector corresponding to the sum (E-scheme) of the ghost four-
vectors composing the jet area, normalised such that for a small contiguous area
the p_t of the extended_area jet is equal to area of the jet.
"""
return _fastjet.ClusterSequenceActiveAreaExplicitGhosts_area_4vector(self, jet)
def is_pure_ghost(self, *args):
r"""
`is_pure_ghost(int history_index) const -> bool`
true if the entry in the history index corresponds to a ghost; if hist_ix does
not correspond to an actual particle (i.e.
hist_ix < 0), then the result is false.
"""
return _fastjet.ClusterSequenceActiveAreaExplicitGhosts_is_pure_ghost(self, *args)
def has_explicit_ghosts(self):
r"""
`has_explicit_ghosts() const -> bool`
this class does have explicit ghosts
"""
return _fastjet.ClusterSequenceActiveAreaExplicitGhosts_has_explicit_ghosts(self)
def empty_area(self, selector):
r"""
`empty_area(const Selector &selector) const -> double`
return the total area, corresponding to a given Selector, that consists of
unclustered ghosts
The selector needs to apply jet by jet
"""
return _fastjet.ClusterSequenceActiveAreaExplicitGhosts_empty_area(self, selector)
def total_area(self):
r"""
`total_area() const -> double`
returns the total area under study
"""
return _fastjet.ClusterSequenceActiveAreaExplicitGhosts_total_area(self)
def max_ghost_perp2(self):
r"""
`max_ghost_perp2() const -> double`
returns the largest squared transverse momentum among all ghosts
"""
return _fastjet.ClusterSequenceActiveAreaExplicitGhosts_max_ghost_perp2(self)
def has_dangerous_particles(self):
r"""
`has_dangerous_particles() const -> bool`
returns true if there are any particles whose transverse momentum if so low that
there's a risk of the ghosts having modified the clustering sequence
"""
return _fastjet.ClusterSequenceActiveAreaExplicitGhosts_has_dangerous_particles(self)
def __init__(self, *args):
r"""
`ClusterSequenceActiveAreaExplicitGhosts(const std::vector< L > &pseudojets,
const JetDefinition &jet_def_in, const std::vector< L > &ghosts, double
ghost_area, const bool &writeout_combinations=false)`
"""
_fastjet.ClusterSequenceActiveAreaExplicitGhosts_swiginit(self, _fastjet.new_ClusterSequenceActiveAreaExplicitGhosts(*args))
__swig_destroy__ = _fastjet.delete_ClusterSequenceActiveAreaExplicitGhosts
# Register ClusterSequenceActiveAreaExplicitGhosts in _fastjet:
_fastjet.ClusterSequenceActiveAreaExplicitGhosts_swigregister(ClusterSequenceActiveAreaExplicitGhosts)
class ClusterSequenceActiveArea(ClusterSequenceAreaBase):
r"""
Like ClusterSequence with computation of the active jet area.
Class that behaves essentially like ClusterSequence except that it also provides
access to the area of a jet (which will be a random quantity... Figure out what
to do about seeds later...)
This class should not be used directly. Rather use ClusterSequenceArea with the
appropriate AreaDefinition
C++ includes: fastjet/ClusterSequenceActiveArea.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def area(self, jet):
r"""
`area(const PseudoJet &jet) const -> double`
return the area associated with the given jet; this base class returns 0.
"""
return _fastjet.ClusterSequenceActiveArea_area(self, jet)
def area_error(self, jet):
r"""
`area_error(const PseudoJet &jet) const -> double`
return the error (uncertainty) associated with the determination of the area of
this jet; this base class returns 0.
"""
return _fastjet.ClusterSequenceActiveArea_area_error(self, jet)
def area_4vector(self, jet):
r"""
`area_4vector(const PseudoJet &jet) const -> PseudoJet`
return a PseudoJet whose 4-vector is defined by the following integral
drap d PseudoJet("rap,phi,pt=one") *
* Theta("rap,phi inside jet boundary")
where PseudoJet("rap,phi,pt=one") is a 4-vector with the given rapidity (rap),
azimuth (phi) and pt=1, while Theta("rap,phi
inside jet boundary") is a function that is 1 when rap,phi define a direction
inside the jet boundary and 0 otherwise.
This base class returns a null 4-vector.
"""
return _fastjet.ClusterSequenceActiveArea_area_4vector(self, jet)
median = _fastjet.ClusterSequenceActiveArea_median
non_ghost_median = _fastjet.ClusterSequenceActiveArea_non_ghost_median
pttot_over_areatot = _fastjet.ClusterSequenceActiveArea_pttot_over_areatot
pttot_over_areatot_cut = _fastjet.ClusterSequenceActiveArea_pttot_over_areatot_cut
mean_ratio_cut = _fastjet.ClusterSequenceActiveArea_mean_ratio_cut
play = _fastjet.ClusterSequenceActiveArea_play
median_4vector = _fastjet.ClusterSequenceActiveArea_median_4vector
def pt_per_unit_area(self, *args):
r"""
`pt_per_unit_area(mean_pt_strategies strat=median, double range=2.0) const ->
double`
return the transverse momentum per unit area according to one of the above
strategies; for some strategies (those with "cut" in their name) the parameter
"range" allows one to exclude a subset of the jets for the background
estimation, those that have pt/area > median(pt/area)*range.
NB: This call is OBSOLETE and deprecated; use a JetMedianBackgroundEstimator or
GridMedianBackgroundEstimator instead.
"""
return _fastjet.ClusterSequenceActiveArea_pt_per_unit_area(self, *args)
def empty_area(self, selector):
r"""
`empty_area(const Selector &selector) const -> double`
rewrite the empty area from the parent class, so as to use all info at our
disposal return the total area, corresponding to a given Selector, that consists
of ghost jets or unclustered ghosts
The selector passed as an argument needs to apply jet by jet.
"""
return _fastjet.ClusterSequenceActiveArea_empty_area(self, selector)
def n_empty_jets(self, selector):
r"""
`n_empty_jets(const Selector &selector) const -> double`
return the true number of empty jets (replaces
ClusterSequenceAreaBase::n_empty_jets(...))
"""
return _fastjet.ClusterSequenceActiveArea_n_empty_jets(self, selector)
def __init__(self, *args):
r"""
`ClusterSequenceActiveArea(const std::vector< L > &pseudojets, const
JetDefinition &jet_def_in, const GhostedAreaSpec &ghost_spec, const bool
&writeout_combinations=false)`
constructor based on JetDefinition and GhostedAreaSpec
"""
_fastjet.ClusterSequenceActiveArea_swiginit(self, _fastjet.new_ClusterSequenceActiveArea(*args))
__swig_destroy__ = _fastjet.delete_ClusterSequenceActiveArea
# Register ClusterSequenceActiveArea in _fastjet:
_fastjet.ClusterSequenceActiveArea_swigregister(ClusterSequenceActiveArea)
class ClusterSequence1GhostPassiveArea(ClusterSequenceActiveArea):
r"""
Like ClusterSequence with computation of the passive jet area by adding a single
ghost.
Class that behaves essentially like ClusterSequence except that it also provides
access to the area of a jet (which will be a random quantity... Figure out what
to do about seeds later...)
This class should not be used directly. Rather use ClusterSequenceArea
C++ includes: fastjet/ClusterSequence1GhostPassiveArea.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def n_empty_jets(self, selector):
r"""
`n_empty_jets(const Selector &selector) const -> double`
return an estimate for the number of empty jets -- one uses the AreaBase one
rather than the ActiveArea one (which for which we do not have the information).
"""
return _fastjet.ClusterSequence1GhostPassiveArea_n_empty_jets(self, selector)
def __init__(self, *args):
r"""
`ClusterSequence1GhostPassiveArea(const std::vector< L > &pseudojets, const
JetDefinition &jet_def_in, const GhostedAreaSpec &area_spec, const bool
&writeout_combinations=false)`
constructor based on JetDefinition and 1GhostPassiveAreaSpec
"""
_fastjet.ClusterSequence1GhostPassiveArea_swiginit(self, _fastjet.new_ClusterSequence1GhostPassiveArea(*args))
__swig_destroy__ = _fastjet.delete_ClusterSequence1GhostPassiveArea
# Register ClusterSequence1GhostPassiveArea in _fastjet:
_fastjet.ClusterSequence1GhostPassiveArea_swigregister(ClusterSequence1GhostPassiveArea)
class ClusterSequencePassiveArea(ClusterSequence1GhostPassiveArea):
r"""
Like ClusterSequence with computation of the passive jet area.
Class that behaves essentially like ClusterSequence except that it also provides
access to the area of a jet (which will be a random quantity... Figure out what
to do about seeds later...)
This class should not be used directly. Rather use ClusterSequenceArea with the
appropriate AreaDefinition
C++ includes: fastjet/ClusterSequencePassiveArea.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def empty_area(self, selector):
r"""
`empty_area(const Selector &selector) const -> double`
return an empty area that's appropriate to the passive area determination
carried out
"""
return _fastjet.ClusterSequencePassiveArea_empty_area(self, selector)
def __init__(self, pseudojets, jet_def_in, area_spec, writeout_combinations=False):
r"""
`ClusterSequencePassiveArea(const std::vector< L > &pseudojets, const
JetDefinition &jet_def_in, const GhostedAreaSpec &area_spec, const bool
&writeout_combinations=false)`
constructor based on JetDefinition and PassiveAreaSpec
"""
_fastjet.ClusterSequencePassiveArea_swiginit(self, _fastjet.new_ClusterSequencePassiveArea(pseudojets, jet_def_in, area_spec, writeout_combinations))
__swig_destroy__ = _fastjet.delete_ClusterSequencePassiveArea
# Register ClusterSequencePassiveArea in _fastjet:
_fastjet.ClusterSequencePassiveArea_swigregister(ClusterSequencePassiveArea)
class ClusterSequenceVoronoiArea(ClusterSequenceAreaBase):
r"""
Like ClusterSequence with computation of the Voronoi jet area.
Handle the computation of Voronoi jet area.
This class should not be used directly. Rather use ClusterSequenceArea with the
appropriate AreaDefinition
C++ includes: fastjet/ClusterSequenceVoronoiArea.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
__swig_destroy__ = _fastjet.delete_ClusterSequenceVoronoiArea
def area(self, jet):
r"""
`area(const PseudoJet &jet) const -> double`
return the area associated with the given jet
"""
return _fastjet.ClusterSequenceVoronoiArea_area(self, jet)
def area_4vector(self, jet):
r"""
`area_4vector(const PseudoJet &jet) const -> PseudoJet`
return a 4-vector area associated with the given jet -- strictly this is not the
exact 4-vector area, but rather an approximation made of sums of centres of all
Voronoi cells in jet, each contributing with a normalisation equal to the area
of the cell
"""
return _fastjet.ClusterSequenceVoronoiArea_area_4vector(self, jet)
def area_error(self, arg2):
r"""
`area_error(const PseudoJet &) const -> double`
return the error of the area associated with the given jet (0 by definition for
a voronoi area)
"""
return _fastjet.ClusterSequenceVoronoiArea_area_error(self, arg2)
def __init__(self, *args):
r"""
`ClusterSequenceVoronoiArea(const std::vector< L > &pseudojets, const
JetDefinition &jet_def, const VoronoiAreaSpec &spec=VoronoiAreaSpec(), const
bool &writeout_combinations=false)`
template ctor
template constructor need to be specified in the header!
Parameters
----------
* `pseudojet` :
list of jets (template type)
* `jet_def` :
jet definition
* `effective_Rfact` :
effective radius
* `writeout_combinations` :
??????
"""
_fastjet.ClusterSequenceVoronoiArea_swiginit(self, _fastjet.new_ClusterSequenceVoronoiArea(*args))
# Register ClusterSequenceVoronoiArea in _fastjet:
_fastjet.ClusterSequenceVoronoiArea_swigregister(ClusterSequenceVoronoiArea)
class ClusterSequenceArea(ClusterSequenceAreaBase):
r"""
General class for user to obtain ClusterSequence with additional area
information.
Based on the area_def, it automatically dispatches the work to the appropriate
actual ClusterSequenceAreaBase-derived-class to do the real work.
C++ includes: fastjet/ClusterSequenceArea.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def area_def(self):
r"""
`area_def() const -> const AreaDefinition &`
return a reference to the area definition
"""
return _fastjet.ClusterSequenceArea_area_def(self)
def area(self, jet):
r"""
`area(const PseudoJet &jet) const -> double`
return the area associated with the given jet
"""
return _fastjet.ClusterSequenceArea_area(self, jet)
def area_error(self, jet):
r"""
`area_error(const PseudoJet &jet) const -> double`
return the error (uncertainty) associated with the determination of the area of
this jet
"""
return _fastjet.ClusterSequenceArea_area_error(self, jet)
def area_4vector(self, jet):
r"""
`area_4vector(const PseudoJet &jet) const -> PseudoJet`
return the 4-vector area
"""
return _fastjet.ClusterSequenceArea_area_4vector(self, jet)
def empty_area(self, selector):
r"""
`empty_area(const Selector &selector) const -> double`
return the total area, corresponding to the given selector, that is free of jets
The selector needs to have a finite area and be applicable jet by jet (see the
BackgroundEstimator and Subtractor tools for more advanced usage)
"""
return _fastjet.ClusterSequenceArea_empty_area(self, selector)
def n_empty_jets(self, selector):
r"""
`n_empty_jets(const Selector &selector) const -> double`
return something similar to the number of pure ghost jets in the given rap-phi
range in an active area case.
For the local implementation we return empty_area/(0.55 pi R^2), based on
measured properties of ghost jets with kt and cam. Note that the number returned
is a double.
The selector needs to have a finite area and be applicable jet by jet (see the
BackgroundEstimator and Subtractor tools for more advanced usage)
"""
return _fastjet.ClusterSequenceArea_n_empty_jets(self, selector)
def is_pure_ghost(self, jet):
r"""
`is_pure_ghost(const PseudoJet &jet) const -> bool`
true if a jet is made exclusively of ghosts
"""
return _fastjet.ClusterSequenceArea_is_pure_ghost(self, jet)
def has_explicit_ghosts(self):
r"""
`has_explicit_ghosts() const -> bool`
true if this ClusterSequence has explicit ghosts
"""
return _fastjet.ClusterSequenceArea_has_explicit_ghosts(self)
def get_median_rho_and_sigma(self, *args):
r"""
`get_median_rho_and_sigma(const Selector &selector, bool use_area_4vector,
double &median, double &sigma, double &mean_area) const`
overload version of what's in the ClusterSequenceAreaBase class, which actually
just does the same thing as the base version (but since we've overridden the
multi-argument version above, we have to override the 5-argument version too.
"""
return _fastjet.ClusterSequenceArea_get_median_rho_and_sigma(self, *args)
def parabolic_pt_per_unit_area(self, a, b, selector, exclude_above=-1.0, use_area_4vector=False):
r"""
`parabolic_pt_per_unit_area(double &a, double &b, const Selector &selector,
double exclude_above=-1.0, bool use_area_4vector=false) const`
overload version of what's in the ClusterSequenceAreaBase class, which
additionally checks compatibility between "range" and region in which ghosts
are thrown.
"""
return _fastjet.ClusterSequenceArea_parabolic_pt_per_unit_area(self, a, b, selector, exclude_above, use_area_4vector)
def __init__(self, *args):
r"""
`ClusterSequenceArea(const std::vector< L > &pseudojets, const JetDefinition
&jet_def_in, const VoronoiAreaSpec &voronoi_spec)`
constructor with a VoronoiAreaSpec
"""
_fastjet.ClusterSequenceArea_swiginit(self, _fastjet.new_ClusterSequenceArea(*args))
__swig_destroy__ = _fastjet.delete_ClusterSequenceArea
# Register ClusterSequenceArea in _fastjet:
_fastjet.ClusterSequenceArea_swigregister(ClusterSequenceArea)
class UserInfoPython(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, pyobj):
_fastjet.UserInfoPython_swiginit(self, _fastjet.new_UserInfoPython(pyobj))
def get_pyobj(self):
return _fastjet.UserInfoPython_get_pyobj(self)
__swig_destroy__ = _fastjet.delete_UserInfoPython
# Register UserInfoPython in _fastjet:
_fastjet.UserInfoPython_swigregister(UserInfoPython)
def cpp_string_from_py_str(py_str):
return _fastjet.cpp_string_from_py_str(py_str)
def cpp_string_from_str_py_obj(py_obj):
return _fastjet.cpp_string_from_str_py_obj(py_obj)
def cpp_string_from_name_py_obj(py_obj):
return _fastjet.cpp_string_from_name_py_obj(py_obj)
class SelectorWorkerPython(SelectorWorker):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, py_class_or_function):
_fastjet.SelectorWorkerPython_swiginit(self, _fastjet.new_SelectorWorkerPython(py_class_or_function))
__swig_destroy__ = _fastjet.delete_SelectorWorkerPython
def description(self):
r"""
`description() const -> std::string`
returns a description of the worker
"""
return _fastjet.SelectorWorkerPython_description(self)
def _pass(self, jet):
r"""
`pass(const PseudoJet &jet) const =0 -> bool`
returns true if a given object passes the selection criterion, and is the main
function that needs to be overloaded by derived workers.
NB: this function is used only if applies_jet_by_jet() returns true. If it does
not, then derived classes are expected to (re)implement the terminator
function()
"""
return _fastjet.SelectorWorkerPython__pass(self, jet)
# Register SelectorWorkerPython in _fastjet:
_fastjet.SelectorWorkerPython_swigregister(SelectorWorkerPython)
def SelectorPython(py_function_or_class):
return _fastjet.SelectorPython(py_function_or_class)
class RecombinerPython(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, py_class):
_fastjet.RecombinerPython_swiginit(self, _fastjet.new_RecombinerPython(py_class))
__swig_destroy__ = _fastjet.delete_RecombinerPython
def description(self):
return _fastjet.RecombinerPython_description(self)
def recombine(self, pa, pb, pab):
return _fastjet.RecombinerPython_recombine(self, pa, pb, pab)
def preprocess(self, pa):
return _fastjet.RecombinerPython_preprocess(self, pa)
# Register RecombinerPython in _fastjet:
_fastjet.RecombinerPython_swigregister(RecombinerPython)
def JetDefinition0Param(*args):
return _fastjet.JetDefinition0Param(*args)
def JetDefinition1Param(*args):
return _fastjet.JetDefinition1Param(*args)
def JetDefinition2Param(*args):
return _fastjet.JetDefinition2Param(*args)
class FunctionOfPseudoJetDouble(object):
r"""
base class providing interface for a generic function of a PseudoJet
This class serves as a base class to provide a standard interface for a function
that returns an object of a given (templated) type that depends on a PseudoJet
argument. The rationale for using a class (rather than a pointer to a function)
is that a class can be constructed with (and store) additional arguments.
C++ includes: fastjet/FunctionOfPseudoJet.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _fastjet.delete_FunctionOfPseudoJetDouble
def description(self):
r"""
`description() const -> std::string`
returns a description of the function (an empty string by default)
"""
return _fastjet.FunctionOfPseudoJetDouble_description(self)
def result(self, pj):
r"""
`result(const PseudoJet &pj) const =0 -> TOut`
the action of the function this *has* to be overloaded in derived classes
Parameters
----------
* `pj` :
the PseudoJet input to the function
"""
return _fastjet.FunctionOfPseudoJetDouble_result(self, pj)
def __call__(self, *args):
return _fastjet.FunctionOfPseudoJetDouble___call__(self, *args)
def __str__(self):
return _fastjet.FunctionOfPseudoJetDouble___str__(self)
# Register FunctionOfPseudoJetDouble in _fastjet:
_fastjet.FunctionOfPseudoJetDouble_swigregister(FunctionOfPseudoJetDouble)
class FunctionOfPseudoJetPseudoJet(object):
r"""
base class providing interface for a generic function of a PseudoJet
This class serves as a base class to provide a standard interface for a function
that returns an object of a given (templated) type that depends on a PseudoJet
argument. The rationale for using a class (rather than a pointer to a function)
is that a class can be constructed with (and store) additional arguments.
C++ includes: fastjet/FunctionOfPseudoJet.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _fastjet.delete_FunctionOfPseudoJetPseudoJet
def description(self):
r"""
`description() const -> std::string`
returns a description of the function (an empty string by default)
"""
return _fastjet.FunctionOfPseudoJetPseudoJet_description(self)
def result(self, pj):
r"""
`result(const PseudoJet &pj) const =0 -> TOut`
the action of the function this *has* to be overloaded in derived classes
Parameters
----------
* `pj` :
the PseudoJet input to the function
"""
return _fastjet.FunctionOfPseudoJetPseudoJet_result(self, pj)
def __call__(self, *args):
return _fastjet.FunctionOfPseudoJetPseudoJet___call__(self, *args)
def __str__(self):
return _fastjet.FunctionOfPseudoJetPseudoJet___str__(self)
# Register FunctionOfPseudoJetPseudoJet in _fastjet:
_fastjet.FunctionOfPseudoJetPseudoJet_swigregister(FunctionOfPseudoJetPseudoJet)
class Transformer(FunctionOfPseudoJetPseudoJet):
r"""
Base (abstract) class for a jet transformer.
A transformer, when it acts on a jet, returns a modified version of that jet,
one that may have a different momentum and/or different internal structure.
The typical usage of a class derived from Transformer is
For many transformers, the transformed jets have transformer-specific
information that can be accessed through the
See the description of the Filter class for a more detailed usage example. See
the FastJet manual to find out how to implement new transformers.
C++ includes: fastjet/tools/Transformer.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _fastjet.delete_Transformer
def result(self, original):
r"""
`result(const PseudoJet &original) const =0 -> PseudoJet`
the result of the Transformer acting on the PseudoJet.
this *has* to be overloaded in derived classes
Parameters
----------
* `original` :
the PseudoJet input to the Transformer
"""
return _fastjet.Transformer_result(self, original)
def description(self):
r"""
`description() const =0 -> std::string`
This should be overloaded to return a description of the Transformer.
"""
return _fastjet.Transformer_description(self)
# Register Transformer in _fastjet:
_fastjet.Transformer_swigregister(Transformer)
class Boost(FunctionOfPseudoJetPseudoJet):
r"""
Class to boost a PseudoJet.
This is a FunctionOfPseudoJet with return type PseudoJet. Its action if to boost
the PseudoJet by a boost vector passed to its constructor
C++ includes: fastjet/tools/Boost.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, jet_rest):
r"""
`Boost(const PseudoJet &jet_rest)`
default ctor
"""
_fastjet.Boost_swiginit(self, _fastjet.new_Boost(jet_rest))
def result(self, original):
r"""
`result(const PseudoJet &original) const -> PseudoJet`
the action of the function: boost the PseudoJet by a boost vector _jet_rest
"""
return _fastjet.Boost_result(self, original)
def __str__(self):
return _fastjet.Boost___str__(self)
__swig_destroy__ = _fastjet.delete_Boost
# Register Boost in _fastjet:
_fastjet.Boost_swigregister(Boost)
class Unboost(FunctionOfPseudoJetPseudoJet):
r"""
Class to un-boost a PseudoJet.
This is a FunctionOfPseudoJet with return type PseudoJet. Its action if to un-
boost the PseudoJet back in the restframe of the PseudoJet passed to its
constructor
C++ includes: fastjet/tools/Boost.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, jet_rest):
r"""
`Unboost(const PseudoJet &jet_rest)`
default ctor
"""
_fastjet.Unboost_swiginit(self, _fastjet.new_Unboost(jet_rest))
def result(self, original):
r"""
`result(const PseudoJet &original) const -> PseudoJet`
the action of the function: boost the PseudoJet to the rest frame of _jet_rest
"""
return _fastjet.Unboost_result(self, original)
def __str__(self):
return _fastjet.Unboost___str__(self)
__swig_destroy__ = _fastjet.delete_Unboost
# Register Unboost in _fastjet:
_fastjet.Unboost_swigregister(Unboost)
class Recluster(FunctionOfPseudoJetPseudoJet):
r"""
Recluster a jet's constituents with a new jet definition.
When Recluster is constructed from a JetDefinition, it is that definition that
will be used to obtain the new jets. The user may then decide if the recombiner
should be the one from that jet definition or if it should be acquired from the
jet being processed (the default).
Alternatively, Recluster can be constructed from a jet algorithm and an optional
radius. In that case the recombiner is systematically obtained from the jet
being processed (unless you call set_acquire_recombiner(false)). If only the jet
algorithm is specified, a default radius of max_allowable_R will be assumed if
needed.
Recluster has two possible behaviours:
* if it is constructed with keep=keep_only_hardest the hardest inclusive jet
is returned as a "standard" jet with an associated cluster sequence
(unless there were no inclusive jets, in which case a zero jet is returned,
with no associated cluster sequence)
* if it is constructed with keep=keep_all all the inclusive jets are joined
into a composite jet
[Note that since the structure of the resulting PseudoJet depends on its usage,
this class inherits from FunctionOfPseudoJet<PseudoJet> (including a
description) rather than being a full-fledged Transformer]
C++ includes: fastjet/tools/Recluster.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
keep_only_hardest = _fastjet.Recluster_keep_only_hardest
keep_all = _fastjet.Recluster_keep_all
def __init__(self, *args):
r"""
`Recluster(JetAlgorithm new_jet_alg, Keep keep_in=keep_only_hardest)`
constructor with just a jet algorithm, but no jet radius.
If the algorithm requires a jet radius, JetDefinition::max_allowable_R will be
used.
"""
_fastjet.Recluster_swiginit(self, _fastjet.new_Recluster(*args))
__swig_destroy__ = _fastjet.delete_Recluster
def set_acquire_recombiner(self, acquire):
r"""
`set_acquire_recombiner(bool acquire)`
set whether the reclustering should attempt to acquire a recombiner from the
input jet
"""
return _fastjet.Recluster_set_acquire_recombiner(self, acquire)
def acquire_recombiner(self):
r"""
`acquire_recombiner() const -> bool`
returns true if this reclusterer is set to acquire the recombiner from the input
jet
"""
return _fastjet.Recluster_acquire_recombiner(self)
def set_cambridge_optimisation(self, enabled):
r"""
`set_cambridge_optimisation(bool enabled)`
sets whether to try to optimise reclustering with Cambridge/Aachen algorithms
(by not reclustering if the requested C/A reclustering can be obtained by using
subjets of an input C/A jet or one composed of multiple C/A pieces from the same
clustering sequence).
By default this is enabled, and *should* always be correct; disable it to test
this statement!
"""
return _fastjet.Recluster_set_cambridge_optimisation(self, enabled)
def set_cambridge_optimization(self, enabled):
r"""
`set_cambridge_optimization(bool enabled)`
sets whether to try to optimise reclustering with Cambridge/Aachen algorithms
(US spelling!)
"""
return _fastjet.Recluster_set_cambridge_optimization(self, enabled)
def cambridge_optimization(self):
r"""
`cambridge_optimization() -> bool`
returns true if the reclusterer tries to optimise reclustering with
Cambridge/Aachen algorithms
"""
return _fastjet.Recluster_cambridge_optimization(self)
def cambridge_optimisation(self):
r"""
`cambridge_optimisation() -> bool`
"""
return _fastjet.Recluster_cambridge_optimisation(self)
def set_keep(self, keep_in):
r"""
`set_keep(Keep keep_in)`
set the behaviour with regards to keeping all resulting jets or just the
hardest.
"""
return _fastjet.Recluster_set_keep(self, keep_in)
def keep(self):
r"""
`keep() const -> Keep`
returns the current "keep" mode i.e.
whether only the hardest inclusive jet is returned or all of them (see the Keep
enum above)
"""
return _fastjet.Recluster_keep(self)
def description(self):
r"""
`description() const -> std::string`
class description
"""
return _fastjet.Recluster_description(self)
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> PseudoJet`
runs the reclustering and sets kept and rejected to be the jets of interest
(with non-zero rho, they will have been subtracted).
Normally this will be accessed through the base class's operator().
Parameters
----------
* `jet` :
the jet that gets reclustered
Returns
-------
the reclustered jet
"""
return _fastjet.Recluster_result(self, jet)
def get_new_jets_and_def(self, input_jet, output_jets):
r"""
`get_new_jets_and_def(const PseudoJet &input_jet, std::vector< PseudoJet >
&output_jets) const -> bool`
A lower-level method that does the actual work of reclustering the input jet.
The resulting jets are stored in output_jets. The jet definition that has been
used can be accessed from the output_jets' ClusterSequence.
Parameters
----------
* `input_jet` :
the (input) jet that one wants to recluster
* `output_jets` :
inclusive jets resulting from the new clustering
Returns true if the C/A optimisation has been used (this means that
generate_output_jet then has to watch out for non-explicit-ghost areas that
might be leftover)
"""
return _fastjet.Recluster_get_new_jets_and_def(self, input_jet, output_jets)
def generate_output_jet(self, incljets, ca_optimisation_used):
r"""
`generate_output_jet(std::vector< PseudoJet > &incljets, bool
ca_optimisation_used) const -> PseudoJet`
given a set of inclusive jets and a jet definition used, create the resulting
PseudoJet;
If ca_optimisation_used then special care will be taken in deciding whether the
final jet can legitimately have an area.
"""
return _fastjet.Recluster_generate_output_jet(self, incljets, ca_optimisation_used)
def __str__(self):
return _fastjet.Recluster___str__(self)
# Register Recluster in _fastjet:
_fastjet.Recluster_swigregister(Recluster)
class Filter(Transformer):
r"""
Class that helps perform filtering (Butterworth, Davison, Rubin and Salam,
arXiv:0802.2470) and trimming (Krohn, Thaler and Wang, arXiv:0912.1342) on jets,
optionally in conjunction with subtraction (Cacciari and Salam,
arXiv:0707.1378).
For example, to apply filtering that reclusters a jet's constituents with the
Cambridge/Aachen jet algorithm with R=0.3 and then selects the 3 hardest
subjets, one can use the following code:
To obtain trimming, involving for example the selection of all subjets carrying
at least 3% of the original jet's pt, the selector would be replaced by
SelectorPtFractionMin(0.03).
To additionally perform subtraction on the subjets prior to selection, either
include a 3rd argument specifying the background density rho, or call the
set_subtractor(...) member function. If subtraction is requested, the original
jet must be the result of a clustering with active area with explicit ghosts
support or a merging of such pieces.
The information on the subjets that were kept and rejected can be obtained
using:
Implementation Note
If the original jet was defined with the Cambridge/Aachen algorithm (or is made
of pieces each of which comes from the C/A alg) and the filtering definition is
C/A, then the filter does not rerun the C/A algorithm on the constituents, but
instead makes use of the existent C/A cluster sequence in the original jet. This
increases the speed of the filter.
See also 11 - use of filtering for a further usage example.
Support for areas, reuse of C/A cluster sequences, etc., considerably
complicates the implementation of Filter. For an explanation of how a simpler
filter might be coded, see the "User-defined transformers" appendix of the
manual.
C++ includes: fastjet/tools/Filter.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`Filter(FunctionOfPseudoJet< double > *Rfilt_func, Selector selector, double
rho=0.0)`
Same as the full constructor (see above) but just specifying a filtering radius
that will depend on the jet being filtered As for the previous case, Cambridge-
Aachen is used If the jet (or all its pieces) is obtained with a non-default
recombiner, that one will be used.
Parameters
----------
* `Rfilt_func` :
the filtering radius function of a PseudoJet
"""
_fastjet.Filter_swiginit(self, _fastjet.new_Filter(*args))
__swig_destroy__ = _fastjet.delete_Filter
def set_subtractor(self, subtractor_in):
r"""
`set_subtractor(const FunctionOfPseudoJet< PseudoJet > *subtractor_in)`
Set a subtractor that is applied to all individual subjets before deciding which
ones to keep.
It takes precedence over a non-zero rho.
"""
return _fastjet.Filter_set_subtractor(self, subtractor_in)
def subtractor(self):
r"""
`subtractor() const -> const FunctionOfPseudoJet< PseudoJet > *`
Set a subtractor that is applied to all individual subjets before deciding which
ones to keep.
It takes precedence over a non-zero rho.
"""
return _fastjet.Filter_subtractor(self)
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> PseudoJet`
runs the filtering and sets kept and rejected to be the jets of interest (with
non-zero rho, they will have been subtracted).
Parameters
----------
* `jet` :
the jet that gets filtered
Returns
-------
the filtered jet
"""
return _fastjet.Filter_result(self, jet)
def description(self):
r"""
`description() const -> std::string`
class description
"""
return _fastjet.Filter_description(self)
def __str__(self):
return _fastjet.Filter___str__(self)
# Register Filter in _fastjet:
_fastjet.Filter_swigregister(Filter)
class FilterStructure(CompositeJetStructure):
r"""
Class to contain structure information for a filtered jet.
C++ includes: fastjet/tools/Filter.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, pieces_in, rec=None):
r"""
`FilterStructure(const std::vector< PseudoJet > &pieces_in, const
JetDefinition::Recombiner *rec=0)`
constructor from an original ClusterSequenceInfo We just share the original
ClusterSequenceWrapper and initialise the rest
"""
_fastjet.FilterStructure_swiginit(self, _fastjet.new_FilterStructure(pieces_in, rec))
__swig_destroy__ = _fastjet.delete_FilterStructure
def description(self):
r"""
`description() const -> std::string`
description
"""
return _fastjet.FilterStructure_description(self)
def rejected(self):
r"""
`rejected() const -> const std::vector< PseudoJet > &`
returns the subjets that were not kept during the filtering procedure
(subtracted if the filter requests it, and valid in the original cs)
"""
return _fastjet.FilterStructure_rejected(self)
# Register FilterStructure in _fastjet:
_fastjet.FilterStructure_swigregister(FilterStructure)
class Pruner(Transformer):
r"""
Transformer that prunes a jet.
This transformer prunes a jet according to the ideas presented in
arXiv:0903.5081 (S.D. Ellis, C.K. Vermilion and J.R. Walsh).
The jet's constituents are reclustered with a user-specified jet definition,
with the modification that objects i and j are only recombined if at least one
of the following two criteria is satisfied:
* the geometric distance between i and j is smaller than 'Rcut' with Rcut =
Rcut_factor*2m/pt (Rcut_factor is a parameter of the Pruner and m and pt
obtained from the jet being pruned)
* the transverse momenta of i and j are at least 'zcut' p_t(i+j)
If both these criteria fail, i and j are not recombined, the harder of i and j
is kept, and the softer is rejected.
Usage:
The pruned_jet has a valid associated cluster sequence. In addition the subjets
of the original jet that have been vetoed by pruning (i.e. have been 'pruned
away') can be accessed using
If the re-clustering happens to find more than a single inclusive jet (this
should normally not happen if the radius of the jet definition used for the
reclustering was set large enough), the hardest of these jets is retured as the
result of the Pruner. The other jets can be accessed through
Instead of using Rcut_factor and zcut, one can alternatively construct a Pruner
by passing two (pointers to) functions of PseudoJet that dynamically compute the
Rcut and zcut to be used for the jet being pruned.
When the jet being pruned has area support and explicit ghosts, the resulting
pruned jet will likewise have area.
C++ includes: fastjet/tools/Pruner.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`Pruner(const JetDefinition &jet_def, const FunctionOfPseudoJet< double >
*zcut_dyn, const FunctionOfPseudoJet< double > *Rcut_dyn)`
alternative ctor in which the pt-fraction cut and angular distance cut are
functions of the jet being pruned.
Parameters
----------
* `jet_def` :
the jet definition for the internal clustering
* `zcut_dyn` :
dynamic pt-fraction cut in the pruning
* `Rcut_dyn` :
dynamic angular distance cut in the pruning
"""
_fastjet.Pruner_swiginit(self, _fastjet.new_Pruner(*args))
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> PseudoJet`
action on a single jet
"""
return _fastjet.Pruner_result(self, jet)
def description(self):
r"""
`description() const -> std::string`
description
"""
return _fastjet.Pruner_description(self)
def __str__(self):
return _fastjet.Pruner___str__(self)
__swig_destroy__ = _fastjet.delete_Pruner
# Register Pruner in _fastjet:
_fastjet.Pruner_swigregister(Pruner)
class PrunerStructure(object):
r"""
The structure associated with a PseudoJet thas has gone through a Pruner
transformer.
C++ includes: fastjet/tools/Pruner.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, result_jet):
r"""
`PrunerStructure(const PseudoJet &result_jet)`
default ctor
Parameters
----------
* `result_jet` :
the jet for which we have to keep the structure
"""
_fastjet.PrunerStructure_swiginit(self, _fastjet.new_PrunerStructure(result_jet))
def description(self):
r"""
`description() const -> std::string`
description
"""
return _fastjet.PrunerStructure_description(self)
def rejected(self):
r"""
`rejected() const -> std::vector< PseudoJet >`
return the constituents that have been rejected
"""
return _fastjet.PrunerStructure_rejected(self)
def extra_jets(self):
r"""
`extra_jets() const -> std::vector< PseudoJet >`
return the other jets that may have been found along with the result of the
pruning The resulting vector is sorted in pt
"""
return _fastjet.PrunerStructure_extra_jets(self)
def Rcut(self):
r"""
`Rcut() const -> double`
return the value of Rcut that was used for this specific pruning.
"""
return _fastjet.PrunerStructure_Rcut(self)
def zcut(self):
r"""
`zcut() const -> double`
return the value of Rcut that was used for this specific pruning.
"""
return _fastjet.PrunerStructure_zcut(self)
__swig_destroy__ = _fastjet.delete_PrunerStructure
# Register PrunerStructure in _fastjet:
_fastjet.PrunerStructure_swigregister(PrunerStructure)
class PruningRecombiner(object):
r"""
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, zcut, Rcut, recombiner):
r"""
`PruningRecombiner(double zcut, double Rcut, const JetDefinition::Recombiner
*recombiner)`
ctor
Parameters
----------
* `zcut` :
transverse momentum fraction cut
* `Rcut` :
angular separation cut
* `recomb` :
pointer to a recombiner to use to cluster pairs
"""
_fastjet.PruningRecombiner_swiginit(self, _fastjet.new_PruningRecombiner(zcut, Rcut, recombiner))
def recombine(self, pa, pb, pab):
r"""
`recombine(const PseudoJet &pa, const PseudoJet &pb, PseudoJet &pab) const`
perform a recombination taking into account the pruning conditions
"""
return _fastjet.PruningRecombiner_recombine(self, pa, pb, pab)
def description(self):
r"""
`description() const -> std::string`
returns the description of the recombiner
"""
return _fastjet.PruningRecombiner_description(self)
def rejected(self):
r"""
`rejected() const -> const std::vector< unsigned int > &`
return the history indices that have been pruned away
"""
return _fastjet.PruningRecombiner_rejected(self)
def clear_rejected(self):
r"""
`clear_rejected()`
clears the list of rejected indices
If one decides to use this recombiner standalone, one has to call this after
each clustering in order for the rejected() vector to remain sensible and not
grow to infinite size.
"""
return _fastjet.PruningRecombiner_clear_rejected(self)
__swig_destroy__ = _fastjet.delete_PruningRecombiner
# Register PruningRecombiner in _fastjet:
_fastjet.PruningRecombiner_swigregister(PruningRecombiner)
class PruningPlugin(object):
r"""
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, jet_def, zcut, Rcut):
r"""
`PruningPlugin(const JetDefinition &jet_def, double zcut, double Rcut)`
ctor
Parameters
----------
* `jet_def` :
the jet definition to be used for the internal clustering
* `zcut` :
transverse momentum fraction cut
* `Rcut` :
angular separation cut
"""
_fastjet.PruningPlugin_swiginit(self, _fastjet.new_PruningPlugin(jet_def, zcut, Rcut))
def run_clustering(self, input_cs):
r"""
`run_clustering(ClusterSequence &input_cs) const`
the actual clustering work for the plugin
"""
return _fastjet.PruningPlugin_run_clustering(self, input_cs)
def description(self):
r"""
`description() const -> std::string`
description of the plugin
"""
return _fastjet.PruningPlugin_description(self)
def R(self):
r"""
`R() const -> double`
returns the radius
"""
return _fastjet.PruningPlugin_R(self)
__swig_destroy__ = _fastjet.delete_PruningPlugin
# Register PruningPlugin in _fastjet:
_fastjet.PruningPlugin_swigregister(PruningPlugin)
class CASubJetTagger(Transformer):
r"""
clean (almost parameter-free) tagger searching for the element in the clustering
history that maximises a chosen distance
class to help us get a clean (almost parameter-free) handle on substructure
inside a C/A jet. It follows the logic described in arXiv:0906.0728 (and is
inspired by the original Cambridge algorithm paper in its use of separate
angular and dimensionful distances), but provides some extra flexibility.
It searches for all splittings that pass a symmetry cut (zcut) and then selects
the one with the largest auxiliary scale choice (e.g. jade distance of the
splitting, kt distance of the splitting, etc.)
By default, the zcut is calculated from the fraction of the child pt carried by
the parent jet. If one calls set_absolute_z_cut the fraction of transverse
momentum will be computed wrt the original jet.
original code copyright (C) 2009 by Gavin Salam, released under the GPL.
Options
* the distance choice: options are kt2_distance : usual
min(kti^2,ktj^2)DeltaR_{ij}^2 jade_distance : kti . ktj DeltaR_{ij}^2 (LI
version of jade) jade2_distance : kti . ktj DeltaR_{ij}^4 (LI version of
jade * DR^2) plain_distance : DeltaR_{ij}^2 mass_drop_distance : m_jet -
max(m_parent1,m_parent2) dot_product_distance: parent1.parent2 (kt2_distance
by default)
* the z cut (0 by default)
* by calling set_absolute_z_cut(), one can ask that the pt fraction if
calculated wrt the original jet
* by calling set_dr_min(drmin), one can ask that only the recombinations where
the 2 objects are (geometrically) distant by at least drmin are kept in the
maximisation.
Input conditions
* the jet must have been obtained from a Cambridge/Aachen cluster sequence
Output/structure
* the element of the cluster sequence maximising the requested distance (and
satisfying the zcut) is returned.
* if the original jet has no parents, it will be returned
* the value of the "z" and distance corresponding to that history element
are stored and accessible through result.structure_of<CASubJetTagger>().z();
result.structure_of<CASubJetTagger>().distance();
C++ includes: fastjet/tools/CASubJetTagger.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
kt2_distance = _fastjet.CASubJetTagger_kt2_distance
jade_distance = _fastjet.CASubJetTagger_jade_distance
jade2_distance = _fastjet.CASubJetTagger_jade2_distance
plain_distance = _fastjet.CASubJetTagger_plain_distance
mass_drop_distance = _fastjet.CASubJetTagger_mass_drop_distance
dot_product_distance = _fastjet.CASubJetTagger_dot_product_distance
def __init__(self, *args):
r"""
`CASubJetTagger(ScaleChoice scale_choice=jade_distance, double z_threshold=0.1)`
just constructs
"""
_fastjet.CASubJetTagger_swiginit(self, _fastjet.new_CASubJetTagger(*args))
def set_dr_min(self, drmin):
r"""
`set_dr_min(double drmin)`
sets a minimum delta R below which spliting will be ignored (only relevant if
set prior to calling run())
"""
return _fastjet.CASubJetTagger_set_dr_min(self, drmin)
def description(self):
r"""
`description() const -> std::string`
returns a textual description of the tagger
"""
return _fastjet.CASubJetTagger_description(self)
def set_absolute_z_cut(self, abs_z_cut=True):
r"""
`set_absolute_z_cut(bool abs_z_cut=true)`
If (abs_z_cut) is set to false (the default) then for a splitting to be
considered, each subjet must satisfy.
p_{t,sub} > z_threshold * p_{t,parent}
whereas if it is set to true, then each subject must satisfy
p_{t,sub} > z_threshold * p_{t,original-jet}
where parent is the immediate parent of the splitting, and original jet is the
one supplied to the run() function.
Only relevant is called prior to run().
"""
return _fastjet.CASubJetTagger_set_absolute_z_cut(self, abs_z_cut)
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> PseudoJet`
runs the tagger on the given jet and returns the tagged PseudoJet if successful,
or a PseudoJet==0 otherwise (standard access is through operator()).
"""
return _fastjet.CASubJetTagger_result(self, jet)
def __str__(self):
return _fastjet.CASubJetTagger___str__(self)
__swig_destroy__ = _fastjet.delete_CASubJetTagger
# Register CASubJetTagger in _fastjet:
_fastjet.CASubJetTagger_swigregister(CASubJetTagger)
class CASubJetTaggerStructure(object):
r"""
the structure returned by a CASubJetTagger
Since this is directly an element of the ClusterSequence, we keep basically the
original ClusterSequenceStructure (wrapped for memory-management reasons) and
add information about the pt fraction and distance of the subjet structure
C++ includes: fastjet/tools/CASubJetTagger.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, result_jet):
r"""
`CASubJetTaggerStructure(const PseudoJet &result_jet)`
default ctor
Parameters
----------
* `result_jet` :
the jet for which we have to keep the structure
"""
_fastjet.CASubJetTaggerStructure_swiginit(self, _fastjet.new_CASubJetTaggerStructure(result_jet))
def scale_choice(self):
r"""
`scale_choice() const -> CASubJetTagger::ScaleChoice`
returns the scale choice asked for the maximisation
"""
return _fastjet.CASubJetTaggerStructure_scale_choice(self)
def distance(self):
r"""
`distance() const -> double`
returns the value of the distance measure (corresponding to ScaleChoice) for
this jet's splitting
"""
return _fastjet.CASubJetTaggerStructure_distance(self)
def z(self):
r"""
`z() const -> double`
returns the pt fraction contained by the softer of the two component pieces of
this jet (normalised relative to this jet)
"""
return _fastjet.CASubJetTaggerStructure_z(self)
def absolute_z(self):
r"""
`absolute_z() const -> bool`
returns the pt fraction contained by the softer of the two component pieces of
this jet (normalised relative to the original jet)
"""
return _fastjet.CASubJetTaggerStructure_absolute_z(self)
__swig_destroy__ = _fastjet.delete_CASubJetTaggerStructure
# Register CASubJetTaggerStructure in _fastjet:
_fastjet.CASubJetTaggerStructure_swigregister(CASubJetTaggerStructure)
class MassDropTagger(Transformer):
r"""
Class that helps perform 2-pronged boosted tagging using the "mass-drop"
technique (with asymmetry cut) introduced by Jonathan Butterworth, Adam Davison,
Mathieu Rubin and Gavin Salam in arXiv:0802.2470 in the context of a boosted
Higgs search.
The tagger proceeds as follows:
0. start from a jet obtained from with the Cambridge/Aachen algorithm
1. undo the last step of the clustering step j -> j1 + j2 (label them such as
j1 is the most massive).
2. if there is a mass drop, i.e. m_j1/m_j < mu_cut, and the splitting is
sufficiently symmetric, ${\rm min}(p_{tj1}^2,p_{tj2}^2)\Delta R_{j1,j2}^2
> y_{\rm cut} m_j^2$, keep j as the result of the tagger (with j1 and j2
its 2 subjets)
3. otherwise, redefine j to be equal to j1 and return to step 1.
Note that in the original proposal, j1 and j2 are both required to be b-tagged
and a filter (with Rfilt=min(0.3,Rbb/2) and n_filt=3) is also applied to j to
obtain the final "Higgs candidate". See the example 12 - boosted Higgs tagging
for details.
Options
The constructor has the following arguments:
* The first argument is the minimal mass drop that is required (mu_cut) [0.67
by default]
* The second argument is the asymmetry cut (y_cut) [0.09 by default]
Input conditions
* one must be able to successively "uncluster" the original jet using
"has_parents"
Output/structure
* the 2 subjets are kept as pieces if some substructure is found, otherwise a
single 0-momentum piece is returned
* the 'mu' and 'y' values corresponding to the unclustering step that passed
the tagger's cuts
See also 12 - boosted Higgs tagging for a usage example.
C++ includes: fastjet/tools/MassDropTagger.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, mu=0.67, ycut=0.09):
r"""
`MassDropTagger(const double mu=0.67, const double ycut=0.09)`
default ctor
"""
_fastjet.MassDropTagger_swiginit(self, _fastjet.new_MassDropTagger(mu, ycut))
def description(self):
r"""
`description() const -> std::string`
returns a textual description of the tagger
"""
return _fastjet.MassDropTagger_description(self)
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> PseudoJet`
runs the tagger on the given jet and returns the tagged PseudoJet if successful,
a PseudoJet==0 otherwise (standard access is through operator()).
Parameters
----------
* `jet` :
the PseudoJet to tag
"""
return _fastjet.MassDropTagger_result(self, jet)
def __str__(self):
return _fastjet.MassDropTagger___str__(self)
__swig_destroy__ = _fastjet.delete_MassDropTagger
# Register MassDropTagger in _fastjet:
_fastjet.MassDropTagger_swigregister(MassDropTagger)
class MassDropTaggerStructure(object):
r"""
the structure returned by the MassDropTagger transformer.
See the MassDropTagger class description for the details of what is inside this
structure
C++ includes: fastjet/tools/MassDropTagger.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, result_jet):
r"""
`MassDropTaggerStructure(const PseudoJet &result_jet)`
ctor with initialisation
Parameters
----------
* `pieces` :
the pieces of the created jet
* `rec` :
the recombiner from the underlying cluster sequence
"""
_fastjet.MassDropTaggerStructure_swiginit(self, _fastjet.new_MassDropTaggerStructure(result_jet))
def mu(self):
r"""
`mu() const -> double`
returns the mass-drop ratio, pieces[0].m()/jet.m(), for the splitting that
triggered the mass-drop condition
"""
return _fastjet.MassDropTaggerStructure_mu(self)
def y(self):
r"""
`y() const -> double`
returns the value of y = (squared kt distance) / (squared mass) for the
splitting that triggered the mass-drop condition
"""
return _fastjet.MassDropTaggerStructure_y(self)
__swig_destroy__ = _fastjet.delete_MassDropTaggerStructure
# Register MassDropTaggerStructure in _fastjet:
_fastjet.MassDropTaggerStructure_swigregister(MassDropTaggerStructure)
class RestFrameNSubjettinessTagger(Transformer):
r"""
Class that helps perform 2-pronged boosted tagging using a reclustering in the
jet's rest frame, supplemented with a cut on N-subjettiness (and a decay angle),
as discussed by Ji-Hun Kim in arXiv:1011.1493.
To tag a fat jet, the tagger proceeds as follows:
* boost its constituents into the rest frame of the jet
* recluster them using another jet definition (the original choice was SISCone
in spherical coordinates with R=0.6 and f=0.75.
* keep the 2 most energetic subjets ( $q_{1,2}$) and compute the
2-subjettiness \[ \tau_2^j = \frac{2}{m_{\rm jet}^2}\, \sum_{k\in
{\rm jet}} {\rm min}(q_1.p_k,q_2.p_k) \] where the sum runs over the
constituents of the jet.
* require $\tau_2^j < \tau_2^{\rm cut}$ [0.08 by default]
* impose that (in the rest frame of the fat jet), the angles between the 2
most energetic subjets and the boost axis are both large enough:
$\cos(\theta_s)<c_\theta^{\rm cut}$ [0.8 by default]
Note that in the original version, the jets to be tagged were reconstructed
using SISCone with R=0.8 and f=0.75. Also, b-tagging was imposed on the 2
subjets found in the rest-frame tagging procedure.
Options
The constructor has the following arguments:
* The first argument is the jet definition to be used to recluster the
constituents of the jet to be filtered (in the rest frame of the tagged
jet).
* The second argument is the cut on tau_2 [0.08 by default]
* The 3rd argument is the cut on cos(theta_s) [0.8 by default]
* If the 4th argument is true, 2 exclusive rest-frame jets will be considered
in place of the 2 most energetic inclusive jets
Input conditions
* the original jet must have constituents
Output/structure
* the 2 subjets are kept as pieces if some substructure is found, otherwise a
single 0-momentum piece
* the tau2 and maximal cos(theta_s) values computed during the tagging can be
obtained via the resulting jet's structure_of<...>() function
C++ includes: fastjet/tools/RestFrameNSubjettinessTagger.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, subjet_def, tau2cut=0.08, costhetascut=0.8, use_exclusive=False):
r"""
`RestFrameNSubjettinessTagger(const JetDefinition subjet_def, const double
tau2cut=0.08, const double costhetascut=0.8, const bool
use_exclusive=false)`
ctor with arguments (see the class description above)
"""
_fastjet.RestFrameNSubjettinessTagger_swiginit(self, _fastjet.new_RestFrameNSubjettinessTagger(subjet_def, tau2cut, costhetascut, use_exclusive))
def description(self):
r"""
`description() const -> std::string`
returns a textual description of the tagger
"""
return _fastjet.RestFrameNSubjettinessTagger_description(self)
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> PseudoJet`
runs the tagger on the given jet and returns the tagged PseudoJet if successful,
a PseudoJet==0 otherwise (standard access is through operator()).
impose the cut on cos(theta_s)
"""
return _fastjet.RestFrameNSubjettinessTagger_result(self, jet)
def __str__(self):
return _fastjet.RestFrameNSubjettinessTagger___str__(self)
__swig_destroy__ = _fastjet.delete_RestFrameNSubjettinessTagger
# Register RestFrameNSubjettinessTagger in _fastjet:
_fastjet.RestFrameNSubjettinessTagger_swigregister(RestFrameNSubjettinessTagger)
class RestFrameNSubjettinessTaggerStructure(CompositeJetStructure):
r"""
the structure returned by the RestFrameNSubjettinessTagger transformer.
See the RestFrameNSubjettinessTagger class description for the details of what
is inside this structure
C++ includes: fastjet/tools/RestFrameNSubjettinessTagger.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, pieces_in):
r"""
`RestFrameNSubjettinessTaggerStructure(const std::vector< PseudoJet >
&pieces_in)`
ctor with pieces initialisation
"""
_fastjet.RestFrameNSubjettinessTaggerStructure_swiginit(self, _fastjet.new_RestFrameNSubjettinessTaggerStructure(pieces_in))
def tau2(self):
r"""
`tau2() const -> double`
returns the associated N-subjettiness
"""
return _fastjet.RestFrameNSubjettinessTaggerStructure_tau2(self)
def costhetas(self):
r"""
`costhetas() const -> double`
returns the associated angle with the boosted axis
"""
return _fastjet.RestFrameNSubjettinessTaggerStructure_costhetas(self)
__swig_destroy__ = _fastjet.delete_RestFrameNSubjettinessTaggerStructure
# Register RestFrameNSubjettinessTaggerStructure in _fastjet:
_fastjet.RestFrameNSubjettinessTaggerStructure_swigregister(RestFrameNSubjettinessTaggerStructure)
class TopTaggerBase(Transformer):
r"""
A base class that provides a common interface for top taggers that are able to
return a W (in addition to the top itself).
Top taggers that derive from this should satisfy the following criteria:
* their underlying structure should derive from TopTaggerBaseStructure
* tagged tops should have two pieces, the first of which is the W candidate
* they should apply the top and W selectors to decide if the top has been
tagged
C++ includes: fastjet/tools/TopTaggerBase.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
def set_top_selector(self, sel):
r"""
`set_top_selector(const Selector &sel)`
sets the selector that is applied to the top candidate
"""
return _fastjet.TopTaggerBase_set_top_selector(self, sel)
def set_W_selector(self, sel):
r"""
`set_W_selector(const Selector &sel)`
sets the selector that is applied to the W candidate
"""
return _fastjet.TopTaggerBase_set_W_selector(self, sel)
def description_of_selectors(self):
r"""
`description_of_selectors() const -> std::string`
returns a description of the top and W selectors
"""
return _fastjet.TopTaggerBase_description_of_selectors(self)
__swig_destroy__ = _fastjet.delete_TopTaggerBase
# Register TopTaggerBase in _fastjet:
_fastjet.TopTaggerBase_swigregister(TopTaggerBase)
class TopTaggerBaseStructure(object):
r"""
class that specifies the structure common to all top taggers
Note that this specifies only the W, non_W part of the interface. An actual top
tagger structure class will also need to derive from a PseudoJetStructureBase
type class (e.g. CompositeJetStructure)
C++ includes: fastjet/tools/TopTaggerBase.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
def W(self):
r"""
`W() const =0 -> const PseudoJet &`
"""
return _fastjet.TopTaggerBaseStructure_W(self)
def non_W(self):
r"""
`non_W() const =0 -> const PseudoJet &`
"""
return _fastjet.TopTaggerBaseStructure_non_W(self)
__swig_destroy__ = _fastjet.delete_TopTaggerBaseStructure
# Register TopTaggerBaseStructure in _fastjet:
_fastjet.TopTaggerBaseStructure_swigregister(TopTaggerBaseStructure)
class JHTopTagger(TopTaggerBase):
r"""
Class that helps perform boosted top tagging using the "Johns Hopkins" method
from arXiv:0806.0848 (Kaplan, Rehermann, Schwartz and Tweedie)
The tagger proceeds as follows:
* start from a jet J obtained with the Cambridge/Aachen algorithm
* undo the last iteration j -> j_1,j_2 (with pt_1>pt_2) until the two subjets
satisfy pt_1 > delta_p pt_J (with pt_J the pt of the original jet) and |y_1
- y_2| + |phi_1 - phi_2| > delta_r.
* if one of these criteria is not satisfied, carry on the procedure with j_1
(discarding j_2)
* for each of the subjets found, repeat the procedure. If some new
substructure is found, keep these 2 new subjets, otherwise keep the original
subjet (found during the first iteration)
* at this stage, one has at most 4 subjets. If one has less than 3, the tagger
has failed.
* reconstruct the W from the 2 subjets with a mass closest to the W mass
* impose that the W helicity angle be less than a threshold cos_theta_W_max.
Input conditions
* the original jet must have an associated (and valid) ClusterSequence
* the tagger is designed to work with jets formed by the Cambridge/Aachen
(C/A) algorithm; if a non-C/A jet is passed to the tagger, a warning will be
issued
Example
A JHTopTagger can be used as follows:
The full set of information available from the structure_of<JHTopTagger>() call
is
* PseudoJet W() : the W subjet of the top candidate
* PseudoJet non_W(): non-W subjet(s) of the top candidate (i.e. the b)
* double cos_theta_W(): the W helicity angle
* PseudoJet W1(): the harder of the two prongs of the W
* PseudoJet W2(): the softer of the two prongs of the W
The structure of the top_candidate can also be accessed through its pieces()
function:
* top_candidate.pieces()[0]: W
* top_candidate.pieces()[1]: non_W
The W itself has two pieces (corresponding to W1, W2).
The existence of the first two of the structural calls (W(), non_W()) and the
fact that the top is made of two pieces (W, non_W) are features that should be
common to all taggers derived from TopTaggerBase.
See also 13 - boosted top tagging for a full usage example.
C++ includes: fastjet/tools/JHTopTagger.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, delta_p=0.10, delta_r=0.19, cos_theta_W_max=0.7, mW=80.4):
r"""
`JHTopTagger(const double delta_p=0.10, const double delta_r=0.19, double
cos_theta_W_max=0.7, double mW=80.4)`
default ctor The parameters are the following:
Parameters
----------
* `delta_p` :
fractional pt cut imposed on the subjets (computed as a fraction of the
original jet)
* `delta_r` :
minimal distance between 2 subjets (computed as |y1-y2|+|phi1-phi2|)
* `cos_theta_W_max` :
the maximal value for the polarisation angle of the W
* `mW` :
the W mass
The default values of all these parameters are taken from arXiv:0806:0848
"""
_fastjet.JHTopTagger_swiginit(self, _fastjet.new_JHTopTagger(delta_p, delta_r, cos_theta_W_max, mW))
def description(self):
r"""
`description() const -> std::string`
returns a textual description of the tagger
"""
return _fastjet.JHTopTagger_description(self)
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> PseudoJet`
runs the tagger on the given jet and returns the tagged PseudoJet if successful,
or a PseudoJet==0 otherwise (standard access is through operator()).
Parameters
----------
* `jet` :
the PseudoJet to tag
"""
return _fastjet.JHTopTagger_result(self, jet)
def __str__(self):
return _fastjet.JHTopTagger___str__(self)
__swig_destroy__ = _fastjet.delete_JHTopTagger
# Register JHTopTagger in _fastjet:
_fastjet.JHTopTagger_swigregister(JHTopTagger)
class JHTopTaggerStructure(CompositeJetStructure, TopTaggerBaseStructure):
r"""
the structure returned by the JHTopTagger transformer.
See the JHTopTagger class description for the details of what is inside this
structure
C++ includes: fastjet/tools/JHTopTagger.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, pieces_in, recombiner=None):
r"""
`JHTopTaggerStructure(std::vector< PseudoJet > pieces_in, const
JetDefinition::Recombiner *recombiner=0)`
ctor with pieces initialisation
"""
_fastjet.JHTopTaggerStructure_swiginit(self, _fastjet.new_JHTopTaggerStructure(pieces_in, recombiner))
def W(self):
r"""
`W() const -> const PseudoJet &`
returns the W subjet
"""
return _fastjet.JHTopTaggerStructure_W(self)
def W1(self):
r"""
`W1() const -> PseudoJet`
returns the first W subjet (the harder)
"""
return _fastjet.JHTopTaggerStructure_W1(self)
def W2(self):
r"""
`W2() const -> PseudoJet`
returns the second W subjet
"""
return _fastjet.JHTopTaggerStructure_W2(self)
def non_W(self):
r"""
`non_W() const -> const PseudoJet &`
returns the non-W subjet It will have 1 or 2 pieces depending on whether the
tagger has found 3 or 4 pieces
"""
return _fastjet.JHTopTaggerStructure_non_W(self)
def cos_theta_W(self):
r"""
`cos_theta_W() const -> double`
returns the W helicity angle
"""
return _fastjet.JHTopTaggerStructure_cos_theta_W(self)
__swig_destroy__ = _fastjet.delete_JHTopTaggerStructure
# Register JHTopTaggerStructure in _fastjet:
_fastjet.JHTopTaggerStructure_swigregister(JHTopTaggerStructure)
class BackgroundEstimate(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self):
_fastjet.BackgroundEstimate_swiginit(self, _fastjet.new_BackgroundEstimate())
def rho(self):
return _fastjet.BackgroundEstimate_rho(self)
def sigma(self):
return _fastjet.BackgroundEstimate_sigma(self)
def has_sigma(self):
return _fastjet.BackgroundEstimate_has_sigma(self)
def rho_m(self):
return _fastjet.BackgroundEstimate_rho_m(self)
def sigma_m(self):
return _fastjet.BackgroundEstimate_sigma_m(self)
def has_rho_m(self):
return _fastjet.BackgroundEstimate_has_rho_m(self)
def mean_area(self):
return _fastjet.BackgroundEstimate_mean_area(self)
def has_extras(self):
return _fastjet.BackgroundEstimate_has_extras(self)
def reset(self):
return _fastjet.BackgroundEstimate_reset(self)
def set_rho(self, rho_in):
return _fastjet.BackgroundEstimate_set_rho(self, rho_in)
def set_sigma(self, sigma_in):
return _fastjet.BackgroundEstimate_set_sigma(self, sigma_in)
def set_has_sigma(self, has_sigma_in):
return _fastjet.BackgroundEstimate_set_has_sigma(self, has_sigma_in)
def set_rho_m(self, rho_m_in):
return _fastjet.BackgroundEstimate_set_rho_m(self, rho_m_in)
def set_sigma_m(self, sigma_m_in):
return _fastjet.BackgroundEstimate_set_sigma_m(self, sigma_m_in)
def set_has_rho_m(self, has_rho_m_in):
return _fastjet.BackgroundEstimate_set_has_rho_m(self, has_rho_m_in)
def set_mean_area(self, mean_area_in):
return _fastjet.BackgroundEstimate_set_mean_area(self, mean_area_in)
def apply_rescaling_factor(self, rescaling_factor):
return _fastjet.BackgroundEstimate_apply_rescaling_factor(self, rescaling_factor)
def set_extras(self, extras_in):
return _fastjet.BackgroundEstimate_set_extras(self, extras_in)
__swig_destroy__ = _fastjet.delete_BackgroundEstimate
# Register BackgroundEstimate in _fastjet:
_fastjet.BackgroundEstimate_swigregister(BackgroundEstimate)
class BackgroundEstimatorBase(object):
r"""
Abstract base class that provides the basic interface for classes that estimate
levels of background radiation in hadron and heavy-ion collider events.
C++ includes: fastjet/tools/BackgroundEstimatorBase.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _fastjet.delete_BackgroundEstimatorBase
def set_particles(self, particles):
r"""
`set_particles(const std::vector< PseudoJet > &particles)=0`
tell the background estimator that it has a new event, composed of the specified
particles.
"""
return _fastjet.BackgroundEstimatorBase_set_particles(self, particles)
def set_particles_with_seed(self, particles, arg3):
return _fastjet.BackgroundEstimatorBase_set_particles_with_seed(self, particles, arg3)
def copy(self):
return _fastjet.BackgroundEstimatorBase_copy(self)
def estimate(self, *args):
return _fastjet.BackgroundEstimatorBase_estimate(self, *args)
def rho(self, *args):
r"""
`rho(const PseudoJet &jet)=0 -> double`
get rho, the background density per unit area, locally at the position of a
given jet.
Note that this is not const, because a user may then wish to query other aspects
of the background that could depend on the position of the jet last used for a
rho(jet) determination.
"""
return _fastjet.BackgroundEstimatorBase_rho(self, *args)
def sigma(self, *args):
r"""
`sigma(const PseudoJet &) -> double`
get sigma, the background fluctuations per unit area, locally at the position of
a given jet.
As for rho(jet), it is non-const.
"""
return _fastjet.BackgroundEstimatorBase_sigma(self, *args)
def has_sigma(self):
r"""
`has_sigma() -> bool`
returns true if this background estimator has support for determination of sigma
"""
return _fastjet.BackgroundEstimatorBase_has_sigma(self)
def rho_m(self, *args):
r"""
`rho_m(const PseudoJet &) -> double`
Returns rho_m locally at the jet position. As for rho(jet), it is non-const.
"""
return _fastjet.BackgroundEstimatorBase_rho_m(self, *args)
def sigma_m(self, *args):
r"""
`sigma_m(const PseudoJet &) -> double`
Returns sigma_m locally at the jet position. As for rho(jet), it is non-const.
"""
return _fastjet.BackgroundEstimatorBase_sigma_m(self, *args)
def has_rho_m(self):
r"""
`has_rho_m() const -> bool`
Returns true if this background estimator has support for determination of
rho_m.
Note that support for sigma_m is automatic is one has sigma and rho_m support.
"""
return _fastjet.BackgroundEstimatorBase_has_rho_m(self)
def set_rescaling_class(self, rescaling_class_in):
r"""
`set_rescaling_class(const FunctionOfPseudoJet< double > *rescaling_class_in)`
Set a pointer to a class that calculates the rescaling factor as a function of
the jet (position).
Note that the rescaling factor is used both in the determination of the
"global" rho (the pt/A of each jet is divided by this factor) and when asking
for a local rho (the result is multiplied by this factor).
The BackgroundRescalingYPolynomial class can be used to get a rescaling that
depends just on rapidity.
There is currently no support for different rescaling classes for rho and rho_m
determinations.
"""
return _fastjet.BackgroundEstimatorBase_set_rescaling_class(self, rescaling_class_in)
def rescaling_class(self):
r"""
`rescaling_class() const -> const FunctionOfPseudoJet< double > *`
return the pointer to the jet density class
"""
return _fastjet.BackgroundEstimatorBase_rescaling_class(self)
def description(self):
r"""
`description() const =0 -> std::string`
returns a textual description of the background estimator
"""
return _fastjet.BackgroundEstimatorBase_description(self)
# Register BackgroundEstimatorBase in _fastjet:
_fastjet.BackgroundEstimatorBase_swigregister(BackgroundEstimatorBase)
class BackgroundRescalingYPolynomial(FunctionOfPseudoJetDouble):
r"""
A background rescaling that is a simple polynomial in y.
C++ includes: fastjet/tools/BackgroundEstimatorBase.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, a0=1, a1=0, a2=0, a3=0, a4=0):
r"""
`BackgroundRescalingYPolynomial(double a0=1, double a1=0, double a2=0, double
a3=0, double a4=0)`
construct a background rescaling polynomial of the form a0 + a1*y + a2*y^2 +
a3*y^3 + a4*y^4
The following values give a reasonable reproduction of the Pythia8 tune 4C
background shape for pp collisions at sqrt(s)=7TeV:
* a0 = 1.157
* a1 = 0
* a2 = -0.0266
* a3 = 0
* a4 = 0.000048
"""
_fastjet.BackgroundRescalingYPolynomial_swiginit(self, _fastjet.new_BackgroundRescalingYPolynomial(a0, a1, a2, a3, a4))
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> double`
return the rescaling factor associated with this jet
"""
return _fastjet.BackgroundRescalingYPolynomial_result(self, jet)
__swig_destroy__ = _fastjet.delete_BackgroundRescalingYPolynomial
# Register BackgroundRescalingYPolynomial in _fastjet:
_fastjet.BackgroundRescalingYPolynomial_swigregister(BackgroundRescalingYPolynomial)
class JetMedianBackgroundEstimator(BackgroundEstimatorBase):
r"""
Class to estimate the pt density of the background per unit area, using the
median of the distribution of pt/area from jets that pass some selection
criterion.
Events are passed either in the form of the event particles (in which they're
clustered by the class), a ClusterSequenceArea (in which case the jets used are
those returned by "inclusive_jets()") or directly as a set of jets.
The selection criterion is typically a geometrical one (e.g. all jets with
|y|<2) sometimes supplemented with some kinematical restriction (e.g. exclusion
of the two hardest jets). It is passed to the class through a Selector.
Beware: by default, to correctly handle partially empty events, the class
attempts to calculate an "empty area", based (schematically) on
range.total_area() - sum_{jets_in_range} jets.area()
For ranges with small areas, this can be inaccurate (particularly relevant in
dense events where empty_area should be zero and ends up not being zero).
This calculation of empty area can be avoided if a ClusterSequenceArea class
with explicit ghosts (ActiveAreaExplicitGhosts) is used. This is *recommended*
unless speed requirements cause you to use Voronoi areas. For speedy background
estimation you could also consider using GridMedianBackgroundEstimator.
C++ includes: fastjet/tools/JetMedianBackgroundEstimator.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`JetMedianBackgroundEstimator(const Selector &rho_range=SelectorIdentity())`
Default constructor that optionally sets the rho range.
The configuration must be done later calling set_cluster_sequence(...) or
set_jets(...).
Parameters
----------
* `rho_range` :
the Selector specifying which jets will be considered
"""
_fastjet.JetMedianBackgroundEstimator_swiginit(self, _fastjet.new_JetMedianBackgroundEstimator(*args))
__swig_destroy__ = _fastjet.delete_JetMedianBackgroundEstimator
def set_particles(self, particles):
r"""
`set_particles(const std::vector< PseudoJet > &particles)`
tell the background estimator that it has a new event, composed of the specified
particles.
"""
return _fastjet.JetMedianBackgroundEstimator_set_particles(self, particles)
def set_particles_with_seed(self, particles, seed):
return _fastjet.JetMedianBackgroundEstimator_set_particles_with_seed(self, particles, seed)
def set_cluster_sequence(self, csa):
r"""
`set_cluster_sequence(const ClusterSequenceAreaBase &csa)`
(re)set the cluster sequence (with area support) to be used by future calls to
rho() etc.
Parameters
----------
* `csa` :
the cluster sequence area
Pre-conditions:
* one should be able to estimate the "empty area" (i.e. the area not
occupied by jets). This is feasible if at least one of the following
conditions is satisfied: ( i) the ClusterSequence has explicit ghosts (ii)
the range selected has a computable area.
* the jet algorithm must be suited for median computation (otherwise a warning
will be issues)
Note that selectors with e.g. hardest-jets exclusion do not have a well-defined
area. For this reasons, it is STRONGLY advised to use an area with explicit
ghosts.
"""
return _fastjet.JetMedianBackgroundEstimator_set_cluster_sequence(self, csa)
def set_jets(self, jets):
r"""
`set_jets(const std::vector< PseudoJet > &jets)`
(re)set the jets (which must have area support) to be used by future calls to
rho() etc.
; for the conditions that must be satisfied by the jets, see the Constructor
that takes jets.
"""
return _fastjet.JetMedianBackgroundEstimator_set_jets(self, jets)
def set_selector(self, rho_range_selector):
r"""
`set_selector(const Selector &rho_range_selector)`
(re)set the selector to be used for future calls to rho() etc.
"""
return _fastjet.JetMedianBackgroundEstimator_set_selector(self, rho_range_selector)
def set_compute_rho_m(self, enable):
r"""
`set_compute_rho_m(bool enable)`
determine whether the automatic calculation of rho_m and sigma_m is enabled (by
default true)
"""
return _fastjet.JetMedianBackgroundEstimator_set_compute_rho_m(self, enable)
def copy(self):
return _fastjet.JetMedianBackgroundEstimator_copy(self)
def estimate(self, *args):
return _fastjet.JetMedianBackgroundEstimator_estimate(self, *args)
def rho(self, *args):
r"""
`rho(const PseudoJet &jet) -> double`
get rho, the median background density per unit area, locally at the position of
a given jet.
If the Selector associated with the range takes a reference jet (i.e. is
relocatable), then for subsequent operations the Selector has that jet set as
its reference.
"""
return _fastjet.JetMedianBackgroundEstimator_rho(self, *args)
def sigma(self, *args):
r"""
`sigma(const PseudoJet &jet) -> double`
get sigma, the background fluctuations per unit area, locally at the position of
a given jet.
If the Selector associated with the range takes a reference jet (i.e. is
relocatable), then for subsequent operations the Selector has that jet set as
its reference.
"""
return _fastjet.JetMedianBackgroundEstimator_sigma(self, *args)
def has_sigma(self):
r"""
`has_sigma() -> bool`
returns true if this background estimator has support for determination of sigma
"""
return _fastjet.JetMedianBackgroundEstimator_has_sigma(self)
def rho_m(self, *args):
r"""
`rho_m(const PseudoJet &) -> double`
Returns rho_m locally at the jet position. As for rho(jet), it is non-const.
"""
return _fastjet.JetMedianBackgroundEstimator_rho_m(self, *args)
def sigma_m(self, *args):
r"""
`sigma_m(const PseudoJet &) -> double`
Returns sigma_m locally at the jet position. As for rho(jet), it is non-const.
"""
return _fastjet.JetMedianBackgroundEstimator_sigma_m(self, *args)
def has_rho_m(self):
r"""
`has_rho_m() const -> bool`
Returns true if this background estimator has support for determination of
rho_m.
In te presence of a density class, support for rho_m is automatically disabled
Note that support for sigma_m is automatic is one has sigma and rho_m support.
"""
return _fastjet.JetMedianBackgroundEstimator_has_rho_m(self)
def mean_area(self):
r"""
`mean_area() const -> double`
Returns the mean area of the jets used to actually compute the background
properties in the last call of rho() or sigma() If the configuration has changed
in the meantime, throw an error.
"""
return _fastjet.JetMedianBackgroundEstimator_mean_area(self)
def n_jets_used(self):
r"""
`n_jets_used() const -> unsigned int`
returns the number of jets used to actually compute the background properties in
the last call of rho() or sigma() If the configuration has changed in the
meantime, throw an error.
"""
return _fastjet.JetMedianBackgroundEstimator_n_jets_used(self)
def jets_used(self):
r"""
`jets_used() const -> std::vector< PseudoJet >`
returns the jets used to actually compute the background properties
"""
return _fastjet.JetMedianBackgroundEstimator_jets_used(self)
def empty_area(self):
r"""
`empty_area() const -> double`
Returns the estimate of the area (within the range defined by the selector) that
is not occupied by jets.
The value is that for the last call of rho() or sigma() If the configuration has
changed in the meantime, throw an error.
The answer is defined to be zero if the area calculation involved explicit
ghosts; if the area calculation was an active area, then use is made of the
active area's internal list of pure ghost jets (taking those that pass the
selector); otherwise it is based on the difference between the selector's total
area and the area of the jets that pass the selector.
The result here is just the cached result of the corresponding call to the
ClusterSequenceAreaBase function.
"""
return _fastjet.JetMedianBackgroundEstimator_empty_area(self)
def n_empty_jets(self):
r"""
`n_empty_jets() const -> double`
Returns the number of empty jets used when computing the background properties.
The value is that for the last call of rho() or sigma(). If the configuration
has changed in the meantime, throw an error.
If the area has explicit ghosts the result is zero; for active areas it is the
number of internal pure ghost jets that pass the selector; otherwise it is
deduced from the empty area, divided by $ 0.55 \pi R^2 $ (the average pure-
ghost-jet area).
The result here is just the cached result of the corresponding call to the
ClusterSequenceAreaBase function.
"""
return _fastjet.JetMedianBackgroundEstimator_n_empty_jets(self)
def reset(self):
r"""
`reset()`
Resets the class to its default state, including the choice to use 4-vector
areas.
"""
return _fastjet.JetMedianBackgroundEstimator_reset(self)
def set_use_area_4vector(self, use_it=True):
r"""
`set_use_area_4vector(bool use_it=true)`
By default when calculating pt/Area for a jet, it is the transverse component of
the 4-vector area that is used in the ratiof $p_t/A$.
Calling this function with a "false" argument causes the scalar area to be
used instead.
While the difference between the two choices is usually small, for high-
precision work it is usually the 4-vector area that is to be preferred.
Parameters
----------
* `use_it` :
whether one uses the 4-vector area or not (true by default)
"""
return _fastjet.JetMedianBackgroundEstimator_set_use_area_4vector(self, use_it)
def use_area_4vector(self):
r"""
`use_area_4vector() const -> bool`
check if the estimator uses the 4-vector area or the scalar area
"""
return _fastjet.JetMedianBackgroundEstimator_use_area_4vector(self)
def set_provide_fj2_sigma(self, provide_fj2_sigma=True):
r"""
`set_provide_fj2_sigma(bool provide_fj2_sigma=true)`
The FastJet v2.X sigma calculation had a small spurious offset in the limit of a
small number of jets.
This is fixed by default in versions 3 upwards. The old behaviour can be
obtained with a call to this function.
"""
return _fastjet.JetMedianBackgroundEstimator_set_provide_fj2_sigma(self, provide_fj2_sigma)
def set_jet_density_class(self, jet_density_class):
r"""
`set_jet_density_class(const FunctionOfPseudoJet< double > *jet_density_class)`
Set a pointer to a class that calculates the quantity whose median will be
calculated; if the pointer is null then pt/area is used (as occurs also if this
function is not called).
Note that this is still *preliminary* in FastJet 3.0 and that backward
compatibility is not guaranteed in future releases of FastJet
"""
return _fastjet.JetMedianBackgroundEstimator_set_jet_density_class(self, jet_density_class)
def jet_density_class(self):
r"""
`jet_density_class() const -> const FunctionOfPseudoJet< double > *`
return the pointer to the jet density class
"""
return _fastjet.JetMedianBackgroundEstimator_jet_density_class(self)
def set_rescaling_class(self, rescaling_class_in):
r"""
`set_rescaling_class(const FunctionOfPseudoJet< double > *rescaling_class_in)`
Set a pointer to a class that calculates the rescaling factor as a function of
the jet (position).
Note that the rescaling factor is used both in the determination of the
"global" rho (the pt/A of each jet is divided by this factor) and when asking
for a local rho (the result is multiplied by this factor).
The BackgroundRescalingYPolynomial class can be used to get a rescaling that
depends just on rapidity.
"""
return _fastjet.JetMedianBackgroundEstimator_set_rescaling_class(self, rescaling_class_in)
def description(self):
r"""
`description() const -> std::string`
returns a textual description of the background estimator
"""
return _fastjet.JetMedianBackgroundEstimator_description(self)
# Register JetMedianBackgroundEstimator in _fastjet:
_fastjet.JetMedianBackgroundEstimator_swigregister(JetMedianBackgroundEstimator)
class BackgroundJetPtDensity(FunctionOfPseudoJetDouble):
r"""
Class that implements pt/area_4vector.perp() for background estimation *(this is
a preliminary class)*.
C++ includes: fastjet/tools/JetMedianBackgroundEstimator.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> double`
the action of the function this *has* to be overloaded in derived classes
Parameters
----------
* `pj` :
the PseudoJet input to the function
"""
return _fastjet.BackgroundJetPtDensity_result(self, jet)
def description(self):
r"""
`description() const -> std::string`
returns a description of the function (an empty string by default)
"""
return _fastjet.BackgroundJetPtDensity_description(self)
def __init__(self):
_fastjet.BackgroundJetPtDensity_swiginit(self, _fastjet.new_BackgroundJetPtDensity())
__swig_destroy__ = _fastjet.delete_BackgroundJetPtDensity
# Register BackgroundJetPtDensity in _fastjet:
_fastjet.BackgroundJetPtDensity_swigregister(BackgroundJetPtDensity)
class BackgroundJetScalarPtDensity(FunctionOfPseudoJetDouble):
r"""
Class that implements (scalar pt sum of jet)/(scalar area of jet) for background
estimation *(this is a preliminary class)*.
Optionally it can return a quantity based on the sum of pt^n, e.g. for use in
subtracting fragementation function moments.
C++ includes: fastjet/tools/JetMedianBackgroundEstimator.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`BackgroundJetScalarPtDensity(double n)`
Constructor to provide background estimation based on $ sum_{i\in jet}
p_{ti}^{n} $.
"""
_fastjet.BackgroundJetScalarPtDensity_swiginit(self, _fastjet.new_BackgroundJetScalarPtDensity(*args))
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> double`
the action of the function this *has* to be overloaded in derived classes
Parameters
----------
* `pj` :
the PseudoJet input to the function
"""
return _fastjet.BackgroundJetScalarPtDensity_result(self, jet)
def description(self):
r"""
`description() const -> std::string`
returns a description of the function (an empty string by default)
"""
return _fastjet.BackgroundJetScalarPtDensity_description(self)
__swig_destroy__ = _fastjet.delete_BackgroundJetScalarPtDensity
# Register BackgroundJetScalarPtDensity in _fastjet:
_fastjet.BackgroundJetScalarPtDensity_swigregister(BackgroundJetScalarPtDensity)
class BackgroundJetPtMDensity(FunctionOfPseudoJetDouble):
r"""
Class that implements $ \frac{1}{A} \sum_{i \in jet} (\sqrt{p_{ti}^2+m^2} -
p_{ti}) $ for background estimation *(this is a preliminary class)*.
This is useful for correcting jet masses in cases where the event involves
massive particles.
C++ includes: fastjet/tools/JetMedianBackgroundEstimator.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> double`
the action of the function this *has* to be overloaded in derived classes
Parameters
----------
* `pj` :
the PseudoJet input to the function
"""
return _fastjet.BackgroundJetPtMDensity_result(self, jet)
def description(self):
r"""
`description() const -> std::string`
returns a description of the function (an empty string by default)
"""
return _fastjet.BackgroundJetPtMDensity_description(self)
def __init__(self):
_fastjet.BackgroundJetPtMDensity_swiginit(self, _fastjet.new_BackgroundJetPtMDensity())
__swig_destroy__ = _fastjet.delete_BackgroundJetPtMDensity
# Register BackgroundJetPtMDensity in _fastjet:
_fastjet.BackgroundJetPtMDensity_swigregister(BackgroundJetPtMDensity)
class GridMedianBackgroundEstimator(BackgroundEstimatorBase, RectangularGrid):
r"""
Background Estimator based on the median pt/area of a set of grid cells.
Description of the method: This background estimator works by projecting the
event onto a grid in rapidity and azimuth. In each grid cell, the scalar pt sum
of the particles in the cell is computed. The background density is then
estimated by the median of (scalar pt sum/cell area) for all cells.
Parameters: The class takes 2 arguments: the absolute rapidity extent of the
cells and the size of the grid cells. Note that the size of the cell will be
adjusted in azimuth to satisfy the 2pi periodicity and in rapidity to match the
requested rapidity extent.
Rescaling: It is possible to use a rescaling profile. In this case, the profile
needs to be set before setting the particles and it will be applied to each
particle (i.e. not to each cell). Note also that in this case one needs to call
rho(jet) instead of rho() [Without rescaling, they are identical]
C++ includes: fastjet/tools/GridMedianBackgroundEstimator.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`GridMedianBackgroundEstimator(double rapmin_in, double rapmax_in, double
drap_in, double dphi_in, Selector tile_selector=Selector())`
Constructor with the explicit parameters for the underlying RectangularGrid.
Parameters
----------
* `rapmin` :
the minimum rapidity extent of the grid
* `rapmax` :
the maximum rapidity extent of the grid
* `drap` :
the grid spacing in rapidity
* `dphi` :
the grid spacing in azimuth
* `tile_selector` :
optional (geometric) selector to specify which tiles are good; a tile is
good if a massless 4-vector at the center of the tile passes the selection
"""
_fastjet.GridMedianBackgroundEstimator_swiginit(self, _fastjet.new_GridMedianBackgroundEstimator(*args))
def set_particles(self, particles):
r"""
`set_particles(const std::vector< PseudoJet > &particles)`
tell the background estimator that it has a new event, composed of the specified
particles.
"""
return _fastjet.GridMedianBackgroundEstimator_set_particles(self, particles)
def set_compute_rho_m(self, enable):
r"""
`set_compute_rho_m(bool enable)`
determine whether the automatic calculation of rho_m and sigma_m is enabled (by
default true)
"""
return _fastjet.GridMedianBackgroundEstimator_set_compute_rho_m(self, enable)
def copy(self):
return _fastjet.GridMedianBackgroundEstimator_copy(self)
def estimate(self, *args):
return _fastjet.GridMedianBackgroundEstimator_estimate(self, *args)
def rho(self, *args):
r"""
`rho(const PseudoJet &jet) -> double`
returns rho, the background density per unit area, locally at the position of a
given jet.
Note that this is not const, because a user may then wish to query other aspects
of the background that could depend on the position of the jet last used for a
rho(jet) determination.
"""
return _fastjet.GridMedianBackgroundEstimator_rho(self, *args)
def sigma(self, *args):
r"""
`sigma(const PseudoJet &jet) -> double`
returns sigma, the background fluctuations per unit area, locally at the
position of a given jet.
As for rho(jet), it is non-const.
"""
return _fastjet.GridMedianBackgroundEstimator_sigma(self, *args)
def has_sigma(self):
r"""
`has_sigma() -> bool`
returns true if this background estimator has support for determination of sigma
"""
return _fastjet.GridMedianBackgroundEstimator_has_sigma(self)
def rho_m(self, *args):
r"""
`rho_m(const PseudoJet &jet) -> double`
Returns rho_m locally at the jet position. As for rho(jet), it is non-const.
"""
return _fastjet.GridMedianBackgroundEstimator_rho_m(self, *args)
def sigma_m(self, *args):
r"""
`sigma_m(const PseudoJet &jet) -> double`
Returns sigma_m locally at the jet position. As for rho(jet), it is non-const.
"""
return _fastjet.GridMedianBackgroundEstimator_sigma_m(self, *args)
def has_rho_m(self):
r"""
`has_rho_m() const -> bool`
Returns true if this background estimator has support for determination of
rho_m.
Note that support for sigma_m is automatic if one has sigma and rho_m support.
"""
return _fastjet.GridMedianBackgroundEstimator_has_rho_m(self)
def mean_area(self):
r"""
`mean_area() const -> double`
returns the area of the grid cells (all identical, but referred to as "mean"
area for uniformity with JetMedianBGE).
"""
return _fastjet.GridMedianBackgroundEstimator_mean_area(self)
def set_rescaling_class(self, rescaling_class):
r"""
`set_rescaling_class(const FunctionOfPseudoJet< double > *rescaling_class)`
Set a pointer to a class that calculates the rescaling factor as a function of
the jet (position).
Note that the rescaling factor is used both in the determination of the
"global" rho (the pt/A of each jet is divided by this factor) and when asking
for a local rho (the result is multiplied by this factor).
The BackgroundRescalingYPolynomial class can be used to get a rescaling that
depends just on rapidity.
Note that this has to be called BEFORE any attempt to do an actual computation
The same profile will be used for both pt and mt (this is probabaly a good
approximation since the particle density changes is what dominates the rapidity
profile)
"""
return _fastjet.GridMedianBackgroundEstimator_set_rescaling_class(self, rescaling_class)
def description(self):
r"""
`description() const -> std::string`
returns a textual description of the background estimator
"""
return _fastjet.GridMedianBackgroundEstimator_description(self)
__swig_destroy__ = _fastjet.delete_GridMedianBackgroundEstimator
# Register GridMedianBackgroundEstimator in _fastjet:
_fastjet.GridMedianBackgroundEstimator_swigregister(GridMedianBackgroundEstimator)
class Subtractor(Transformer):
r"""
Class that helps perform jet background subtraction.
This class derives from Transformer and makes use of a pointer to a
BackgroundEstimatorBase object in order to determine the background in the
vicinity of a given jet and then subtract area*background from the jet. It can
also be initialised with a specific fixed value for the background pt density.
Input conditions
The original jet must have area support (4-vector)
Output/structure
The underlying structure of the returned, subtracted jet (i.e. constituents,
pieces, etc.) is identical to that of the original jet.
C++ includes: fastjet/tools/Subtractor.hh
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
`Subtractor()`
default constructor
"""
_fastjet.Subtractor_swiginit(self, _fastjet.new_Subtractor(*args))
__swig_destroy__ = _fastjet.delete_Subtractor
def set_defaults(self):
r"""
`set_defaults()`
reset all parameters to default values
Note: by default, the rho_m term is not included and the safety test for the
mass is not done. This is mostly for backwards compatibility with FastJet 3.0
and is highly likely to change in a future release of FastJet
"""
return _fastjet.Subtractor_set_defaults(self)
def set_background_estimator(self, bge):
return _fastjet.Subtractor_set_background_estimator(self, bge)
def set_use_rho_m(self, use_rho_m_in=True):
r"""
`set_use_rho_m(bool use_rho_m_in=true)`
when 'use_rho_m' is true, include in the subtraction the correction from rho_m,
the purely longitudinal, particle-mass-induced component of the background
density per unit area
Note: this will be switched off by default (for backwards compatibility with
FastJet 3.0) but is highly likely to change in a future release of FastJet
"""
return _fastjet.Subtractor_set_use_rho_m(self, use_rho_m_in)
def use_rho_m(self):
r"""
`use_rho_m() const -> bool`
returns whether or not the rho_m component is used
"""
return _fastjet.Subtractor_use_rho_m(self)
def set_safe_mass(self, safe_mass_in=True):
r"""
`set_safe_mass(bool safe_mass_in=true)`
when 'safe_mass' is true, ensure that the mass of the subtracted 4-vector remain
positive
when true, if the subtracted mass is negative, we return a 4-vector with 0 mass,
pt and phi from the subtracted 4-vector and the rapidity of the original,
unsubtracted jet.
Note: this will be switched off by default (for backwards compatibility with
FastJet 3.0) but is highly likely to change in a future release of FastJet
"""
return _fastjet.Subtractor_set_safe_mass(self, safe_mass_in)
def safe_mass(self):
r"""
`safe_mass() const -> bool`
returns whether or not safety tests on the mass are included
"""
return _fastjet.Subtractor_safe_mass(self)
def set_known_selectors(self, sel_known_vertex, sel_leading_vertex):
r"""
`set_known_selectors(const Selector &sel_known_vertex, const Selector
&sel_leading_vertex)`
This is mostly intended for cherge-hadron-subtracted type of events where we
wich to use vertex information to improve the subtraction.
Given the following parameters:
Parameters
----------
* `sel_known_vertex` :
selects the particles with a known vertex origin
* `sel_leading_vertex` :
amongst the particles with a known vertex origin, select those coming from
the leading vertex Momentum identified as coming from the leading vertex
will be kept, momentum identified as coming from a non-leading vertex will
be eliminated and a regular area-median subtraction will be applied on the
4-vector sum of the particles with unknown vertex origin.
When this is set, we shall ensure that the pt of the subtracted 4-vector is at
least the pt of the particles that are known to come from the leading vertex (if
it fails, subtraction returns the component that is known to come from the
leading vertex --- or, the original unsubtracted jet if it contains no particles
from the leading vertex). Furthermore, when safe_mass() is on, we also impose a
similar constraint on the mass of the subtracted 4-vector (if the test fails,
the longitudinal part of the subtracted 4-vector is taken from the component
that is known to come from the leading vertex).
"""
return _fastjet.Subtractor_set_known_selectors(self, sel_known_vertex, sel_leading_vertex)
def result(self, jet):
r"""
`result(const PseudoJet &jet) const -> PseudoJet`
returns a jet that's subtracted
Parameters
----------
* `jet` :
the jet that is to be subtracted
Returns
-------
the subtracted jet
"""
return _fastjet.Subtractor_result(self, jet)
def description(self):
r"""
`description() const -> std::string`
class description
"""
return _fastjet.Subtractor_description(self)
def __str__(self):
return _fastjet.Subtractor___str__(self)
# Register Subtractor in _fastjet:
_fastjet.Subtractor_swigregister(Subtractor)
|