From 48ec2cbf72b7de102b218c7ff0402d22c7e8bc51 Mon Sep 17 00:00:00 2001 From: Braulio Rivas Abad Date: Sat, 4 May 2024 20:36:20 -0500 Subject: [PATCH 1/3] changing access to particle mappings from switch to js object --- data/particles.js | 107 +++++++++++++++++++++ js/tools.js | 236 +++------------------------------------------- 2 files changed, 121 insertions(+), 222 deletions(-) create mode 100644 data/particles.js diff --git a/data/particles.js b/data/particles.js new file mode 100644 index 00000000..3cb61274 --- /dev/null +++ b/data/particles.js @@ -0,0 +1,107 @@ +export const mappings = { + "1": "d", + "-1": "{\\bar d}", + "2": "u", + "-2": "{\\bar u}", + "3": "s", + "-3": "{\\bar s}", + "4": "c", + "-4": "{\\bar c}", + "5": "b", + "-5": "{\\bar b}", + "6": "t", + "-6": "{\\bar t}", + "11": "e^{-}", + "-11": "e^{+}", + "12": "\\nu_{e}", + "-12": "{\\bar \\nu}_{e}", + "13": "\\mu^{-}", + "-13": "\\mu^{+}", + "14": "\\nu_{\\mu}", + "-14": "{\\bar \\nu}_{\\mu}", + "15": "\\tau^{-}", + "-15": "\\tau^{+}", + "16": "\\nu_{\\tau}", + "-16": "{\\bar \\nu}_{\\tau}", + "21": "g", + "22": "\\gamma", + "23": "Z^{0}", + "24": "W^{+}", + "-24": "W^{-}", + "25": "H", + "111": "\\pi^{0}", + "113": "\\rho^{0}(770)", + "130": "K^{0}_{L}", + "211": "\\pi^{+}", + "213": "\\rho(770)^{+}", + "-213": "\\rho(770)^{-}", + "-211": "\\pi^{-}", + "221": "\\eta", + "223": "\\omega(782)", + "313": "K^{*}(892)^{0}", + "310": "K^{0}_{S}", + "311": "K^{0}", + "-311": "{\\bar K}^{0}", + "-313": "{\\bar K}^{*}(892)^{0}", + "321": "K^{+}", + "-321": "K^{-}", + "323": "K^{*}(892)^{+}", + "-323": "K^{*}(892)^{-}", + "331": "\\eta^{\\prime}(958)", + "-331": "{\\bar \\eta}^{\\prime}(958)", + "333": "\\phi(1020)", + "411": "D^{+}", + "-411": "d^{-}", + "413": "D^{*}(2010)^{+}", + "-413": "{\\bar D}^{*}(2010)^{+}", + "415": "D^{*}_{2}(2460)^{+}", + "421": "D^{0}", + "-421": "{\\bar D}^{0}", + "423": "D^{*}(2007)^{0}", + "-423": "{\\bar D}^{*}(2007)^{0}", + "431": "D^{+}_{s}", + "-431": "{\\bar D}^{+}_{s}", + "511": "B^{0}", + "-511": "{\\bar B}^{0}", + "513": "B^{*0}", + "-513": "{\\bar B}^{*0}", + "521": "B^{+}", + "-521": "B^{-}", + "523": "B^{*+}", + "-523": "B^{*-}", + "531": "B^{0}_{s}", + "-531": "{\\bar B}^{0}_{s}", + "1114": "\\Delta^{-}", + "-1114": "{\\bar \\Delta}^{-}", + "2112": "n", + "-2112": "{\\bar n}", + "2114": "\\Delta^{0}", + "2212": "p", + "-2212": "{\\bar p}", + "2214": "\\Delta^{+}", + "-2214": "{\\bar \\Delta}^{+}", + "2224": "\\Delta^{++}", + "-2224": "{\\bar \\Delta}^{++}", + "3112": "\\Sigma^{-}", + "3114": "\\Sigma^{*-}", + "3122": "\\Lambda", + "-3122": "{\\bar \\Lambda}", + "3212": "\\Sigma^{0}", + "-3212": "{\\bar \\Sigma}^{0}", + "3222": "\\Sigma^{+}", + "-3222": "\\Sigma^{-}", + "3224": "\\Sigma^{*+}", + "-3224": "{\\bar \\Sigma}^{*+}", + "3312": "\\Xi^{-}", + "-3312": "{\\bar \\Xi}^{-}", + "4114": "\\Sigma^{*0}_{c}", + "4122": "\\Lambda^{+}_{c}", + "-4122": "\\Lambda^{-}_{c}", + "4212": "\\Sigma^{+}_{c}", + "-4212": "\\Sigma^{-}_{c}", + "4222": "\\Sigma^{++}", + "-4222": "\\Sigma^{--}", + "5122": "\\Lambda^{0}_{b}", + "20213": "a_{1}(1260)^{+}", + "-20213": "{\\bar a}_{1}(1260)^{+}" +} \ No newline at end of file diff --git a/js/tools.js b/js/tools.js index 00d9cf6f..8b0df0d7 100644 --- a/js/tools.js +++ b/js/tools.js @@ -1,4 +1,5 @@ import { InfoBox, Link } from "./objects.js"; +import { mappings } from "../data/particles.js"; export function infoMsg(msg) { const msgDiv = document.getElementById("input-message"); @@ -15,7 +16,7 @@ export function errorMsg(msg) { } export function loadMCParticles(jsonData, eventNum, - infoBoxes, parentLinks, childrenLinks) { + infoBoxes, parentLinks, childrenLinks) { const eventData = jsonData["Event " + eventNum]; try { const mcParticles = Object.values(eventData).find(element => element.collType == "edm4hep::MCParticleCollection"); @@ -25,12 +26,12 @@ export function loadMCParticles(jsonData, eventNum, box.genStatus = particle.generatorStatus; box.simStatus = particle.simulatorStatus; box.momentum = Math.sqrt(Math.pow(particle.momentum.x, 2) - + Math.pow(particle.momentum.y, 2) - + Math.pow(particle.momentum.z, 2)); + + Math.pow(particle.momentum.y, 2) + + Math.pow(particle.momentum.z, 2)); box.momentum = Math.round(box.momentum * 100) / 100; box.vertex = Math.sqrt(Math.pow(particle.vertex.x, 2) - + Math.pow(particle.vertex.y, 2) - + Math.pow(particle.vertex.z, 2)); + + Math.pow(particle.vertex.y, 2) + + Math.pow(particle.vertex.z, 2)); box.vertex = Math.round(box.vertex * 100) / 100; box.px = Math.round(particle.momentum.x * 100) / 100; box.py = Math.round(particle.momentum.y * 100) / 100; @@ -84,7 +85,7 @@ export function loadMCParticles(jsonData, eventNum, } } - const getMaxRow = function(parentIds) { + const getMaxRow = function (parentIds) { let maxRow = -1; for (const parentId of parentIds) { if (infoBoxes[parentId].row === -1) { @@ -100,7 +101,7 @@ export function loadMCParticles(jsonData, eventNum, } let repeat = true; - while(repeat) { + while (repeat) { repeat = false; for (const infoBox of infoBoxes) { if (infoBox.row >= 0) { @@ -118,219 +119,10 @@ export function loadMCParticles(jsonData, eventNum, function getName(pdg) { - switch (pdg) { - case 1: - return "d"; - case -1: - return "{\\bar d}"; - case 2: - return "u"; - case -2: - return "{\\bar u}"; - case 3: - return "s"; - case -3: - return "{\\bar s}"; - case 4: - return "c"; - case -4: - return "{\\bar c}"; - case 5: - return "b"; - case -5: - return "{\\bar b}"; - case 6: - return "t"; - case -6: - return "{\\bar t}"; - case 11: - return "e^{-}"; - case -11: - return "e^{+}"; - case 12: - return "\\nu_{e}"; - case -12: - return "{\\bar \\nu}_{e}"; - case 13: - return "\\mu^{-}"; - case -13: - return "\\mu^{+}"; - case 14: - return "\\nu_{\\mu}"; - case -14: - return "{\\bar \\nu}_{\\mu}"; - case 15: - return "\\tau^{-}"; - case -15: - return "\\tau^{+}"; - case 16: - return "\\nu_{\\tau}"; - case -16: - return "{\\bar \\nu}_{\\tau}"; - case 21: - return "g"; - case 22: - return "\\gamma"; - case 23: - return "Z^{0}"; - case 24: - return "W^{+}"; - case -24: - return "W^{-}"; - case 25: - return "H"; - case 111: - return "\\pi^{0}"; - case 113: - return "\\rho^{0}(770)"; - case 130: - return "K^{0}_{L}"; - case 211: - return "\\pi^{+}"; - case 213: - return "\\rho(770)^{+}"; - case -213: - return "\\rho(770)^{-}"; - case -211: - return "\\pi^{-}"; - case 221: - return "\\eta"; - case 223: - return "\\omega(782)"; - case 313: - return "K^{*}(892)^{0}"; - case 310: - return "K^{0}_{S}"; - case 311: - return "K^{0}"; - case -311: - return "{\\bar K}^{0}"; - case -313: - return "{\\bar K}^{*}(892)^{0}"; - case 321: - return "K^{+}"; - case -321: - return "K^{-}"; - case 323: - return "K^{*}(892)^{+}"; - case -323: - return "K^{*}(892)^{-}"; - case 331: - return "\\eta^{\\prime}(958)"; - case -331: - return "{\\bar \\eta}^{\\prime}(958)"; - case 333: - return "\\phi(1020)"; - case 411: - return "D^{+}"; - case -411: - return "d^{-}"; - case 413: - return "D^{*}(2010)^{+}"; - case -413: - return "{\\bar D}^{*}(2010)^{+}"; - case 415: - return "D^{*}_{2}(2460)^{+}"; - case 421: - return "D^{0}"; - case -421: - return "{\\bar D}^{0}"; - case 423: - return "D^{*}(2007)^{0}"; - case -423: - return "{\\bar D}^{*}(2007)^{0}"; - case 431: - return "D^{+}_{s}"; - case -431: - return "{\\bar D}^{+}_{s}"; - case 511: - return "B^{0}"; - case -511: - return "{\\bar B}^{0}"; - case 513: - return "B^{*0}"; - case -513: - return "{\\bar B}^{*0}"; - case 521: - return "B^{+}"; - case -521: - return "B^{-}"; - case 523: - return "B^{*+}"; - case -523: - return "B^{*-}"; - case 531: - return "B^{0}_{s}"; - case -531: - return "{\\bar B}^{0}_{s}"; - case 1114: - return "\\Delta^{-}"; - case -1114: - return "{\\bar \\Delta}^{-}"; - case 2112: - return "n"; - case -2112: - return "{\\bar n}"; - case 2114: - return "\\Delta^{0}"; - case 2212: - return "p"; - case -2212: - return "{\\bar p}"; - case 2214: - return "\\Delta^{+}"; - case -2214: - return "{\\bar \\Delta}^{+}"; - case 2224: - return "\\Delta^{++}"; - case -2224: - return "{\\bar \\Delta}^{++}"; - case 3112: - return "\\Sigma^{-}"; - case 3114: - return "\\Sigma^{*-}"; - case 3122: - return "\\Lambda"; - case -3122: - return "{\\bar \\Lambda}"; - case 3212: - return "\\Sigma^{0}"; - case -3212: - return "{\\bar \\Sigma}^{0}"; - case 3222: - return "\\Sigma^{+}"; - case -3222: - return "\\Sigma^{-}"; - case 3224: - return "\\Sigma^{*+}"; - case -3224: - return "{\\bar \\Sigma}^{*+}"; - case 3312: - return "\\Xi^{-}"; - case -3312: - return "{\\bar \\Xi}^{-}"; - case 4114: - return "\\Sigma^{*0}_{c}"; - case 4122: - return "\\Lambda^{+}_{c}"; - case -4122: - return "\\Lambda^{-}_{c}"; - case 4212: - return "\\Sigma^{+}_{c}"; - case -4212: - return "\\Sigma^{-}_{c}"; - case 4222: - return "\\Sigma^{++}"; - case -4222: - return "\\Sigma^{--}"; - case 5122: - return "\\Lambda^{0}_{b}"; - case 20213: - return "a_{1}(1260)^{+}"; - case -20213: - return "{\\bar a}_{1}(1260)^{+}"; - default: - console.log("PDG: " + pdg.toString()); - return "PDG: " + pdg.toString(); - } + const particle = mappings[pdg]; + + if (particle !== undefined) return particle; + + console.log("PDG: " + pdg.toString()); + return "PDG: " + pdg.toString(); } From bb2f39f0b45735c181e8e90aa135d4bdb7bb4963 Mon Sep 17 00:00:00 2001 From: Braulio Rivas Abad Date: Sun, 5 May 2024 14:12:13 -0500 Subject: [PATCH 2/3] added more particle names to PDG's id --- data/particles.js | 474 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 444 insertions(+), 30 deletions(-) diff --git a/data/particles.js b/data/particles.js index 3cb61274..5a594dab 100644 --- a/data/particles.js +++ b/data/particles.js @@ -1,4 +1,5 @@ export const mappings = { + // Quarks "1": "d", "-1": "{\\bar d}", "2": "u", @@ -11,6 +12,10 @@ export const mappings = { "-5": "{\\bar b}", "6": "t", "-6": "{\\bar t}", + "7": "b^{\\prime}", + "8": "t^{\\prime}", + + // Leptons "11": "e^{-}", "-11": "e^{+}", "12": "\\nu_{e}", @@ -23,85 +28,494 @@ export const mappings = { "-15": "\\tau^{+}", "16": "\\nu_{\\tau}", "-16": "{\\bar \\nu}_{\\tau}", + "17": "\\tau^{\\prime-}", + "18": "\\nu_{{\\tau}^{\\prime}}", + + // Excited Particles + "4000001": "d^{*}", + "4000002": "u^{*}", + "4000011": "e^{*}", + "4000012": "\\nu_{e}^{*}", + + // Gauge and Higgs Bosons "21": "g", "22": "\\gamma", "23": "Z^{0}", "24": "W^{+}", "-24": "W^{-}", - "25": "H", + "25": "h^{0}", + "32": "Z^{\\prime}", + "33": "Z^{\\prime\\prime}", + "34": "W^{\\prime}", + "35": "H^{0}", + "36": "A^{0}", + "37": "H^{+}", + + // Diquarks + "1103": "(dd)_{1}", + "2101": "(ud)_{0}", + "2103": "(ud)_{1}", + "2203": "(uu)_{1}", + "3101": "(sd)_{0}", + "3103": "(sd)_{1}", + "3201": "(su)_{0}", + "3203": "(su)_{1}", + "3303": "(ss)_{1}", + "4101": "(cd)_{0}", + "4103": "(cd)_{1}", + "4201": "(cu)_{0}", + "4203": "(cu)_{1}", + "4301": "(cs)_{0}", + "4303": "(cs)_{1}", + "4403": "(cc)_{1}", + "5101": "(bd)_{0}", + "5103": "(bd)_{1}", + "5201": "(bu)_{0}", + "5203": "(bu)_{1}", + "5301": "(bs)_{0}", + "5303": "(bs)_{1}", + "5401": "(bc)_{0}", + "5403": "(bc)_{1}", + "5503": "(bb)_{1}", + + // Technicolor Particles + "3000111": "\\pi^{0}_{tech}", + "3000211": "\\pi^{+}_{tech}", + "3000221": "\\pi^{\\prime0}_{tech}", + "3100221": "\\eta^{0}_{tech}", + "3000113": "\\rho^{0}_{tech}", + "3000213": "\\rho^{+}_{tech}", + "3000223": "\\omega^{0}_{tech}", + "3100021": "V_{8}", + "3060111": "\\pi^{1}_{tech,22}", + "3160111": "\\pi^{8}_{tech,22}", + "3130113": "\\rho_{tech,11}", + "3140113": "\\rho_{tech,12}", + "3150113": "\\rho_{tech,21}", + "3160113": "\\rho_{tech,22}", + + // R-Hadrons + "1000993": "R^{0}_{{\\widetilde{g}}g}", + "1009113": "R^{0}_{{\\widetilde{g}}d{\\bar{d}}}", + "1009213": "R^{+}_{{\\widetilde{g}}u{\\bar{u}}}", + "1009223": "R^{0}_{{\\widetilde{g}}u{\\bar{u}}}", + "1009313": "R^{0}_{{\\widetilde{g}}d{\\bar{s}}}", + "1009323": "R^{+}_{{\\widetilde{g}}u{\\bar{s}}}", + "1009333": "R^{0}_{{\\widetilde{g}}s{\\bar{s}}}", + "1091114": "R^{-}_{{\\widetilde{g}}ddd}", + "1092114": "R^{0}_{{\\widetilde{g}}udd}", + "1092214": "R^{+}_{{\\widetilde{g}}uud}", + "1092224": "R^{++}_{{\\widetilde{g}}uuu}", + "1093114": "R^{-}_{{\\widetilde{g}}sdd}", + "1093214": "R^{0}_{{\\widetilde{g}}sud}", + "1093224": "R^{+}_{{\\widetilde{g}}suu}", + "1093314": "R^{-}_{{\\widetilde{g}}ssd}", + "1093324": "R^{0}_{{\\widetilde{g}}ssu}", + "1093324": "R^{-}_{{\\widetilde{g}}sss}", + "1000612": "R^{+}_{{\\widetilde{t_{1}}}{\\bar{d}}}", + "1000622": "R^{0}_{{\\widetilde{t_{1}}}{\\bar{u}}}", + "1000632": "R^{+}_{{\\widetilde{t_{1}}}{\\bar{s}}}", + "1000642": "R^{0}_{{\\widetilde{t_{1}}}{\\bar{c}}}", + "1000652": "R^{+}_{{\\widetilde{t_{1}}}{\\bar{b}}}", + "1006113": "R^{0}_{{\\widetilde{t_{1}}}dd_{1}}", + "1006211": "R^{+}_{{\\widetilde{t_{1}}}ud_{0}}", + "1006213": "R^{+}_{{\\widetilde{t_{1}}}ud_{1}}", + "1006223": "R^{++}_{{\\widetilde{t_{1}}}uu_{1}}", + "1006311": "R^{0}_{{\\widetilde{t_{1}}}sd_{0}}", + "1006313": "R^{0}_{{\\widetilde{t_{1}}}sd_{1}}", + "1006321": "R^{+}_{{\\widetilde{t_{1}}}su_{0}}", + "1006323": "R^{+}_{{\\widetilde{t_{1}}}su_{1}}", + "1006333": "R^{0}_{{\\widetilde{t_{1}}}ss_{1}}", + + // Susy Particles + "1000001": "{\\widetilde{d}}_{L}", + "1000002": "{\\widetilde{u}}_{L}", + "1000003": "{\\widetilde{s}}_{L}", + "1000004": "{\\widetilde{c}}_{L}", + "1000005": "{\\widetilde{b}}_{1}", + "1000006": "{\\widetilde{t}}_{1}", + "1000011": "{\\widetilde{e}}^{-}_{L}", + "1000012": "{\\widetilde{\\nu}}_{eL}", + "1000013": "{\\widetilde{\\mu}}^{-}_{L}", + "1000014": "{\\widetilde{\\nu}}_{\\muL}", + "1000015": "{\\widetilde{\\tau}}^{-}_{1}", + "1000016": "{\\widetilde{\\nu}}_{\\tauL}", + "2000001": "{\\widetilde{d}}_{R}", + "2000002": "{\\widetilde{u}}_{R}", + "2000003": "{\\widetilde{s}}_{R}", + "2000004": "{\\widetilde{c}}_{R}", + "2000005": "{\\widetilde{b}}_{2}", + "2000006": "{\\widetilde{t}}_{2}", + "2000011": "{\\widetilde{e}}^{-}_{R}", + "2000013": "{\\widetilde{\\mu}}^{-}_{R}", + "2000015": "{\\widetilde{\\tau}}^{-}_{2}", + "1000021": "{\\widetilde{g}}", + "1000022": "{\\widetilde{\\chi}}^{0}_{1}", + "1000023": "{\\widetilde{\\chi}}^{0}_{2}", + "1000024": "{\\widetilde{\\chi}}^{+}_{1}", + "1000025": "{\\widetilde{\\chi}}^{0}_{3}", + "1000035": "{\\widetilde{\\chi}}^{0}_{4}", + "1000037": "{\\widetilde{\\chi}}^{+}_{2}", + "1000039": "{\\widetilde{G}}", + + // Special Particles + "39": "G", + "41": "R^{0}", + "42": "LQ^{c}", + "110": "reggeon", + "990": "pomeron", + "9990": "odderon", + + // Light I = 1 Mesons "111": "\\pi^{0}", - "113": "\\rho^{0}(770)", - "130": "K^{0}_{L}", "211": "\\pi^{+}", + "-211": "\\pi^{-}", + "9000111": "a_{0}(980)^{0}", + "9000211": "a_{0}(980)^{+}", + "100111": "\\pi(1300)^{0}", + "100211": "\\pi(1300)^{+}", + "10111": "a_{0}(1450)^{0}", + "10211": "a_{0}(1450)^{+}", + "9010111": "\\pi(1800)^{0}", + "9010211": "\\pi(1800)^{+}", + "113": "\\rho^{0}(770)", "213": "\\rho(770)^{+}", "-213": "\\rho(770)^{-}", - "-211": "\\pi^{-}", + "10113": "b_{1}(1235)^{0}", + "10213": "b_{1}(1235)^{+}", + "20113": "a_{1}(1260)^{0}", + "20213": "a_{1}(1260)^{+}", + "-20213": "{\\bar a}_{1}(1260)^{+}", + "9000113": "\\pi_{1}(1400)^{0}", + "9000213": "\\pi_{1}(1400)^{+}", + "100113": "\\rho(1450)^{0}", + "100213": "\\rho(1450)^{+}", + "9010113": "\\pi_{1}(1600)^{0}", + "9010213": "\\pi_{1}(1600)^{+}", + "9020113": "a_{1}(1640)^{0}", + "9020213": "a_{1}(1640)^{+}", + "30113": "\\rho(1700)^{0}", + "30213": "\\rho(1700)^{+}", + "9030113": "\\rho(1900)^{0}", + "9030213": "\\rho(1900)^{+}", + "9040113": "\\rho(2150)^{0}", + "9040213": "\\rho(2150)^{+}", + "115": "a_{2}(1320)^{0}", + "215": "a_{2}(1320)^{+}", + "10115": "\\pi_{2}(1670)^{0}", + "10215": "\\pi_{2}(1670)^{+}", + "9000115": "a_{2}(1700)^{0}", + "9000215": "a_{2}(1700)^{+}", + "9010115": "\\pi_{2}(2100)^{0}", + "9010215": "\\pi_{2}(2100)^{+}", + "117": "\\rho_{3}(1690)^{0}", + "217": "\\rho_{3}(1690)^{+}", + "9000117": "\\rho_{3}(1990)^{0}", + "9000217": "\\rho_{3}(1990)^{+}", + "9010117": "\\rho_{3}(2250)^{0}", + "9010217": "\\rho_{3}(2250)^{+}", + "119": "a_{4}(2040)^{0}", + "219": "a_{4}(2040)^{+}", + + // Light I = 0 Mesons "221": "\\eta", + "331": "\\eta^{\\prime}(958)", + "-331": "{\\bar \\eta}^{\\prime}(958)", + "9000221": "f_{0}(600)", + "9010221": "f_{0}(980)", + "100221": "\\eta(1295)", + "10221": "f_{0}(1370)", + "9020221": "\\eta(1405)", + "100331": "\\eta(1475)", + "9030221": "f_{0}(1500)", + "10331": "f_{0}(1710)", + "9040221": "\\eta(1760)", + "9050221": "f_{0}(2020)", + "9060221": "f_{0}(2100)", + "9070221": "f_{0}(2200)", + "9080221": "\\eta(2225)", "223": "\\omega(782)", - "313": "K^{*}(892)^{0}", + "333": "\\phi(1020)", + "10223": "h_{1}(1170)", + "20223": "f_{1}(1285)", + "10333": "h_{1}(1380)", + "20333": "f_{1}(1420)", + "100223": "\\omega(1420)", + "9000223": "f_{1}(1510)", + "9010223": "h_{1}(1595)", + "30223": "\\omega(1650)", + "100333": "\\phi(1680)", + "225": "f_{2}(1270)", + "9000225": "f_{2}(1430)", + "335": "f_{2}^{\\prime}(1525)", + "9010225": "f_{2}(1565)", + "9020225": "f_{2}(1640)", + "10225": "\\eta_{2}(1645)", + "9030225": "f_{2}(1810)", + "10335": "\\eta_{2}(1870)", + "9040225": "f_{2}(1910)", + "9050225": "f_{2}(1950)", + "9060225": "f_{2}(2010)", + "9070225": "f_{2}(2150)", + "9080225": "f_{2}(2300)", + "9090225": "f_{2}(2340)", + "227": "\\omega_{3}(1670)", + "337": "\\phi_{3}(1850)", + "229": "f_{4}(2050)", + "9000229": "f_{J}(2220)", + "9010229": "f_{4}(2300)", + + // Strange Mesons + "130": "K^{0}_{L}", "310": "K^{0}_{S}", "311": "K^{0}", "-311": "{\\bar K}^{0}", - "-313": "{\\bar K}^{*}(892)^{0}", "321": "K^{+}", "-321": "K^{-}", + "9000311": "K^{*}_{0}(800)^{0}", + "9000321": "K^{*}_{0}(800)^{+}", + "10311": "K^{*}_{0}(1430)^{0}", + "10321": "K^{*}_{0}(1430)^{+}", + "100311": "K(1460)^{0}", + "100321": "K(1460)^{+}", + "9010311": "K(1830)^{0}", + "9010321": "K(1830)^{+}", + "9020311": "K^{*}_{0}(1950)^{0}", + "9020321": "K^{*}_{0}(1950)^{+}", + "313": "K^{*}(892)^{0}", + "-313": "{\\bar K}^{*}(892)^{0}", "323": "K^{*}(892)^{+}", "-323": "K^{*}(892)^{-}", - "331": "\\eta^{\\prime}(958)", - "-331": "{\\bar \\eta}^{\\prime}(958)", - "333": "\\phi(1020)", + "10313": "K_{1}(1270)^{0}", + "10323": "K_{1}(1270)^{+}", + "20313": "K_{1}(1400)^{0}", + "20323": "K_{1}(1400)^{+}", + "100313": "K^{*}(1410)^{0}", + "100323": "K^{*}(1410)^{+}", + "9000313": "K_{1}(1650)^{0}", + "9000323": "K_{1}(1650)^{+}", + "30313": "K^{*}(1680)^{0}", + "30323": "K^{*}(1680)^{+}", + "315": "K_{2}^{*}(1430)^{0}", + "325": "K_{2}^{*}(1430)^{+}", + "9000315": "K_{2}(1580)^{0}", + "9000325": "K_{2}(1580)^{+}", + "10315": "K_{2}(1770)^{0}", + "10325": "K_{2}(1770)^{+}", + "20315": "K_{2}(1820)^{0}", + "20325": "K_{2}(1820)^{+}", + "9010315": "K^{*}_{2}(1980)^{0}", + "9010325": "K^{*}_{2}(1980)^{+}", + "9020315": "K_{2}(2250)^{0}", + "9020325": "K_{2}(2250)^{+}", + "317": "K_{3}^{*}(1780)^{0}", + "327": "K_{3}^{*}(1780)^{+}", + "9010317": "K_{3}(2320)^{0}", + "9010327": "K_{3}(2320)^{+}", + "319": "K_{4}^{*}(2045)^{0}", + "329": "K_{4}^{*}(2045)^{+}", + "9000319": "K_{4}(2500)^{0}", + "9000329": "K_{4}(2500)^{+}", + + // Charmed Mesons "411": "D^{+}", "-411": "d^{-}", - "413": "D^{*}(2010)^{+}", - "-413": "{\\bar D}^{*}(2010)^{+}", - "415": "D^{*}_{2}(2460)^{+}", "421": "D^{0}", "-421": "{\\bar D}^{0}", + "10411": "D^{*}_{0}(2400)^{+}", + "10421": "D^{*}_{0}(2400)^{0}", + "413": "D^{*}(2010)^{+}", + "-413": "{\\bar D}^{*}(2010)^{+}", "423": "D^{*}(2007)^{0}", "-423": "{\\bar D}^{*}(2007)^{0}", + "10413": "D_{1}(2420)^{+}", + "10423": "D_{1}(2420)^{0}", + "20413": "D_{1}(H)^{+}", + "20423": "D_{1}(2430)^{0}", + "415": "D^{*}_{2}(2460)^{+}", + "425": "D^{*}_{2}(2460)^{0}", "431": "D^{+}_{s}", "-431": "{\\bar D}^{+}_{s}", + "10431": "D^{*}_{s0}(2317)^{+}", + "433": "D^{*+}_{s}", + "10433": "D_{s1}(2536)^{+}", + "20433": "D_{s1}(2460)^{+}", + "435": "D^{*}_{s2}(2573)^{+}", + + // Bottom Mesons "511": "B^{0}", "-511": "{\\bar B}^{0}", - "513": "B^{*0}", - "-513": "{\\bar B}^{*0}", "521": "B^{+}", "-521": "B^{-}", + "10511": "B^{*0}_{0}", + "10521": "B^{*+}_{0}", + "513": "B^{*0}", + "-513": "{\\bar B}^{*0}", "523": "B^{*+}", "-523": "B^{*-}", + "10513": "B_{1}(L)^{0}", + "10523": "B_{1}(L)^{+}", + "20513": "B_{1}(H)^{0}", + "20523": "B_{1}(H)^{+}", + "515": "B^{*0}_{2}", + "525": "B^{*+}_{2}", "531": "B^{0}_{s}", "-531": "{\\bar B}^{0}_{s}", - "1114": "\\Delta^{-}", - "-1114": "{\\bar \\Delta}^{-}", - "2112": "n", - "-2112": "{\\bar n}", - "2114": "\\Delta^{0}", + "10531": "B^{*0}_{s0}", + "533": "B^{*0}_{s}", + "10533": "B_{s1}(L)^{0}", + "20533": "B_{s1}(H)^{0}", + "535": "B^{*0}_{s2}", + "541": "B^{+}_{c}", + "10541": "B^{*+}_{c0}", + "543": "B^{*+}_{c}", + "10543": "B_{c1}(L)^{+}", + "20543": "B_{c1}(H)^{+}", + "545": "B^{*+}_{c2}", + + // cc Mesons + "441": "\\eta_{c}(1S)", + "10441": "\\chi_{c0}(1P)", + "100441": "\\eta_{c}(2S)", + "443": "J/\\psi(1S)", + "10443": "h_{c}(1P)", + "20443": "\\chi_{c1}(1P)", + "100443": "\\psi(2S)", + "30443": "\\psi(3770)", + "9000443": "\\psi(4040)", + "9010443": "\\psi(4160)", + "9020443": "\\psi(4415)", + "445": "\\chi_{c2}(1P)", + "100445": "\\chi_{c2}(2P)", + + // bb Mesons + "551": "\\eta_{b}(1S)", + "10551": "\\chi_{b0}(1P)", + "100551": "\\eta_{b}(2S)", + "110551": "\\chi_{b0}(2P)", + "200551": "\\eta_{b}(3S)", + "210551": "\\chi_{b0}(3P)", + "553": "\\Upsilon(1S)", + "10553": "h_{b}(1P)", + "20553": "\\chi_{b1}(1P)", + "30553": "\\Upsilon_{1}(1D)", + "100553": "\\Upsilon(2S)", + "110553": "h_{b}(2P)", + "120553": "\\chi_{b1}(2P)", + "130553": "\\Upsilon_{1}(2D)", + "200553": "\\Upsilon(3S)", + "210553": "h_{b}(3P)", + "220553": "\\chi_{b1}(3P)", + "300553": "\\Upsilon(4S)", + "9000553": "\\Upsilon(10860)", + "9010553": "\\Upsilon(11020)", + "555": "\\chi_{b2}(1P)", + "10555": "\\eta_{b2}(1D)", + "20555": "\\Upsilon_{2}(1D)", + "100555": "\\chi_{b2}(2P)", + "110555": "\\eta_{b2}(2D)", + "120555": "\\Upsilon_{2}(2D)", + "200555": "\\chi_{b2}(3P)", + "557": "\\Upsilon_{3}(1D)", + "100557": "\\Upsilon_{3}(2D)", + + // Light Baryons "2212": "p", "-2212": "{\\bar p}", - "2214": "\\Delta^{+}", - "-2214": "{\\bar \\Delta}^{+}", + "2112": "n", + "-2112": "{\\bar n}", "2224": "\\Delta^{++}", "-2224": "{\\bar \\Delta}^{++}", - "3112": "\\Sigma^{-}", - "3114": "\\Sigma^{*-}", + "2214": "\\Delta^{+}", + "-2214": "{\\bar \\Delta}^{+}", + "2114": "\\Delta^{0}", + "1114": "\\Delta^{-}", + "-1114": "{\\bar \\Delta}^{-}", + + // Strange Baryons "3122": "\\Lambda", "-3122": "{\\bar \\Lambda}", - "3212": "\\Sigma^{0}", - "-3212": "{\\bar \\Sigma}^{0}", "3222": "\\Sigma^{+}", "-3222": "\\Sigma^{-}", + "3212": "\\Sigma^{0}", + "-3212": "{\\bar \\Sigma}^{0}", + "3112": "\\Sigma^{-}", "3224": "\\Sigma^{*+}", "-3224": "{\\bar \\Sigma}^{*+}", + "3214": "\\Sigma^{*0}", + "3114": "\\Sigma^{*-}", + "3322": "\\Xi^{0}", "3312": "\\Xi^{-}", "-3312": "{\\bar \\Xi}^{-}", - "4114": "\\Sigma^{*0}_{c}", + "3324": "\\Xi^{*0}", + "3314": "\\Xi^{*-}", + "3334": "\\Omega^{-}", + + // Charmed Baryons "4122": "\\Lambda^{+}_{c}", "-4122": "\\Lambda^{-}_{c}", + "4222": "\\Sigma^{++}_{c}", + "-4222": "\\Sigma^{--}_{c}", "4212": "\\Sigma^{+}_{c}", "-4212": "\\Sigma^{-}_{c}", - "4222": "\\Sigma^{++}", - "-4222": "\\Sigma^{--}", + "4112": "\\Sigma^{0}_{c}", + "4224": "\\Sigma^{*++}_{c}", + "4214": "\\Sigma^{*+}_{c}", + "4114": "\\Sigma^{*0}_{c}", + "4232": "\\Xi^{+}_{c}", + "4132": "\\Xi^{0}_{c}", + "4322": "\\Xi^{\\prime+}_{c}", + "4312": "\\Xi^{\\prime0}_{c}", + "4324": "\\Xi^{*+}_{c}", + "4314": "\\Xi^{*0}_{c}", + "4332": "\\Omega^{0}_{c}", + "4334": "\\Omega^{*0}_{c}", + "4412": "\\Xi^{+}_{cc}", + "4422": "\\Xi^{++}_{cc}", + "4414": "\\Xi^{*+}_{cc}", + "4424": "\\Xi^{*++}_{cc}", + "4432": "\\Omega^{+}_{cc}", + "4434": "\\Omega^{*+}_{cc}", + "4444": "\\Omega^{++}_{ccc}", + + // Pentaquarks + "9221132": "\\Theta^{+}", + "9331122": "\\Phi^{--}", + + // Bottom Baryons "5122": "\\Lambda^{0}_{b}", - "20213": "a_{1}(1260)^{+}", - "-20213": "{\\bar a}_{1}(1260)^{+}" + "5112": "\\Sigma^{-}_{b}", + "5212": "\\Sigma^{0}_{b}", + "5222": "\\Sigma^{+}_{b}", + "5114": "\\Sigma^{*-}_{b}", + "5214": "\\Sigma^{*0}_{b}", + "5224": "\\Sigma^{*+}_{b}", + "5132": "\\Xi^{-}_{b}", + "5232": "\\Xi^{0}_{b}", + "5312": "\\Xi^{\\prime-}_{b}", + "5322": "\\Xi^{\\prime0}_{b}", + "5314": "\\Xi^{*-}_{b}", + "5324": "\\Xi^{*0}_{b}", + "5332": "\\Omega^{-}_{b}", + "5334": "\\Omega^{*-}_{b}", + "5142": "\\Xi^{0}_{bc}", + "5242": "\\Xi^{+}_{bc}", + "5412": "\\Xi^{\\prime0}_{bc}", + "5422": "\\Xi^{\\prime+}_{bc}", + "5414": "\\Xi^{*0}_{bc}", + "5424": "\\Xi^{*+}_{bc}", + "5342": "\\Omega^{0}_{bc}", + "5432": "\\Omega^{\\prime0}_{bc}", + "5434": "\\Omega^{*0}_{bc}", + "5442": "\\Omega^{+}_{bcc}", + "5444": "\\Omega^{*+}_{bcc}", + "5512": "\\Xi^{-}_{bb}", + "5522": "\\Xi^{0}_{bb}", + "5514": "\\Xi^{*-}_{bb}", + "5524": "\\Xi^{*0}_{bb}", + "5532": "\\Omega^{-}_{bb}", + "5534": "\\Omega^{*-}_{bb}", + "5542": "\\Omega^{0}_{bbc}", + "5544": "\\Omega^{*0}_{bbc}", + "5554": "\\Omega^{-}_{bbb}", } \ No newline at end of file From 758ba5e464f687d30c1e767643ce4e0246b4a0d4 Mon Sep 17 00:00:00 2001 From: Braulio Rivas Abad Date: Mon, 6 May 2024 09:05:55 -0500 Subject: [PATCH 3/3] print particle name --- js/tools.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/tools.js b/js/tools.js index 8b0df0d7..ef175a92 100644 --- a/js/tools.js +++ b/js/tools.js @@ -121,7 +121,10 @@ export function loadMCParticles(jsonData, eventNum, function getName(pdg) { const particle = mappings[pdg]; - if (particle !== undefined) return particle; + if (particle !== undefined) { + console.log("Name: " + particle); + return particle + }; console.log("PDG: " + pdg.toString()); return "PDG: " + pdg.toString();