shared velo tracks in the D decay

This commit is contained in:
cetin 2023-09-25 15:57:26 +02:00
parent b06f86791e
commit 7ca40f1994
2 changed files with 254 additions and 291 deletions

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 40, "execution_count": 1,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -21,7 +21,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 41, "execution_count": 2,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -40,7 +40,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 42, "execution_count": 3,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -49,7 +49,7 @@
"0.8606728758791105" "0.8606728758791105"
] ]
}, },
"execution_count": 42, "execution_count": 3,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@ -72,7 +72,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 43, "execution_count": 4,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -81,7 +81,7 @@
"0.96875" "0.96875"
] ]
}, },
"execution_count": 43, "execution_count": 4,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@ -101,7 +101,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 44, "execution_count": 5,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -110,7 +110,7 @@
"0.8603431839847474" "0.8603431839847474"
] ]
}, },
"execution_count": 44, "execution_count": 5,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@ -133,7 +133,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 45, "execution_count": 6,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -154,7 +154,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 46, "execution_count": 7,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -193,7 +193,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 47, "execution_count": 8,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -222,7 +222,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 48, "execution_count": 9,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -253,7 +253,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 49, "execution_count": 10,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -262,7 +262,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 50, "execution_count": 11,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
@ -307,7 +307,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 51, "execution_count": 12,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -365,7 +365,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 52, "execution_count": 13,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -401,7 +401,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 53, "execution_count": 14,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -410,7 +410,7 @@
"-4.6785491318157854e-07" "-4.6785491318157854e-07"
] ]
}, },
"execution_count": 53, "execution_count": 14,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@ -421,7 +421,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 54, "execution_count": 15,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -469,7 +469,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 55, "execution_count": 16,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -496,7 +496,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 56, "execution_count": 17,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
@ -530,148 +530,122 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 25, "execution_count": 18,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/plain": [ "text/plain": [
"{'all_endvtx_types_length': 12,\n", "{'all_endvtx_types_length': 9,\n",
" 'all_endvtx_types': [101.0,\n", " 'all_endvtx_types': [101.0,\n",
" 101.0,\n", " 101.0,\n",
" 101.0,\n", " 101.0,\n",
" 101.0,\n", " 101.0,\n",
" 104.0,\n",
" 101.0,\n", " 101.0,\n",
" 101.0,\n", " 101.0,\n",
" 101.0,\n", " 101.0,\n",
" 101.0,\n", " 101.0,\n",
" 101.0,\n", " 0.0],\n",
" 101.0,\n", " 'all_endvtx_x_length': 9,\n",
" 110.0],\n", " 'all_endvtx_x': [4.337699890136719,\n",
" 'all_endvtx_x_length': 12,\n", " 14.665200233459473,\n",
" 'all_endvtx_x': [-3.31820011138916,\n", " 76.01349639892578,\n",
" -3.4500999450683594,\n", " 407.2786865234375,\n",
" -20.166799545288086,\n", " 407.5032958984375,\n",
" -120.83049774169922,\n", " 410.0320129394531,\n",
" -150.31619262695312,\n", " 415.61248779296875,\n",
" -155.7082977294922,\n", " 416.95660400390625,\n",
" -187.58470153808594,\n", " 434.4844970703125],\n",
" -195.8394012451172,\n", " 'all_endvtx_y_length': 9,\n",
" -196.60830688476562,\n", " 'all_endvtx_y': [11.121000289916992,\n",
" -196.72889709472656,\n", " 44.36029815673828,\n",
" -197.48280334472656,\n", " 229.05709838867188,\n",
" -202.9868927001953],\n", " 701.25048828125,\n",
" 'all_endvtx_y_length': 12,\n", " 701.5361938476562,\n",
" 'all_endvtx_y': [-4.850500106811523,\n", " 704.75341796875,\n",
" -5.047299861907959,\n", " 711.8519287109375,\n",
" -29.993200302124023,\n", " 713.556396484375,\n",
" -196.2998046875,\n", " 735.4926147460938],\n",
" -270.5392150878906,\n", " 'all_endvtx_z_length': 9,\n",
" -285.7712097167969,\n", " 'all_endvtx_z': [225.14419555664062,\n",
" -380.3049011230469,\n", " 794.5338134765625,\n",
" -405.302490234375,\n", " 3962.47607421875,\n",
" -407.66009521484375,\n", " 12063.0546875,\n",
" -408.0318908691406,\n", " 12067.9521484375,\n",
" -410.36138916015625,\n", " 12123.0634765625,\n",
" -434.51611328125],\n", " 12244.5712890625,\n",
" 'all_endvtx_z_length': 12,\n", " 12273.71875,\n",
" 'all_endvtx_z': [184.35940551757812,\n", " 12650.5009765625],\n",
" 190.19970703125,\n", " 'brem_photons_pe_length': 8,\n",
" 929.2517700195312,\n", " 'brem_photons_pe': [8379.3701171875,\n",
" 5855.25390625,\n", " 1664.8931884765625,\n",
" 8055.12451171875,\n", " 1533.9306640625,\n",
" 8506.958984375,\n", " 636.8262939453125,\n",
" 11310.3232421875,\n", " 1398.7904052734375,\n",
" 12051.8232421875,\n", " 190.91404724121094,\n",
" 12121.9033203125,\n", " 12675.98828125,\n",
" 12132.9287109375,\n", " 17840.21875],\n",
" 12201.8427734375,\n", " 'brem_photons_px_length': 8,\n",
" 12703.953125],\n", " 'brem_photons_px': [151.9600067138672,\n",
" 'brem_photons_pe_length': 10,\n", " 30.200000762939453,\n",
" 'brem_photons_pe': [1881.1756591796875,\n", " 36.0,\n",
" 17914.712890625,\n", " 29.139999389648438,\n",
" 479.9449768066406,\n", " 63.97999954223633,\n",
" 3987.47119140625,\n", " 8.739999771118164,\n",
" 4792.82421875,\n", " 582.6599731445312,\n",
" 19725.302734375,\n", " 821.239990234375],\n",
" 2376.974853515625,\n", " 'brem_photons_py_length': 8,\n",
" 6870.6201171875,\n", " 'brem_photons_py': [488.9800109863281,\n",
" 19237.05859375,\n", " 96.83999633789062,\n",
" 3409.642822265625],\n", " 89.2300033569336,\n",
" 'brem_photons_px_length': 10,\n", " 37.040000915527344,\n",
" 'brem_photons_px': [-42.470001220703125,\n", " 81.45999908447266,\n",
" -404.0400085449219,\n", " 11.109999656677246,\n",
" -10.8100004196167,\n", " 739.2999877929688,\n",
" -61.459999084472656,\n", " 1038.8900146484375],\n",
" -56.58000183105469,\n", " 'brem_photons_pz_length': 8,\n",
" -220.60000610351562,\n", " 'brem_photons_pz': [8363.7099609375,\n",
" -26.079999923706055,\n", " 1661.800048828125,\n",
" -75.06999969482422,\n", " 1530.9100341796875,\n",
" -210.25999450683594,\n", " 635.0800170898438,\n",
" -37.400001525878906],\n", " 1394.949951171875,\n",
" 'brem_photons_py_length': 10,\n", " 190.38999938964844,\n",
" 'brem_photons_py': [-63.31999969482422,\n", " 12640.990234375,\n",
" -603.0599975585938,\n", " 17791.0],\n",
" -16.190000534057617,\n", " 'brem_vtx_x_length': 8,\n",
" -134.4499969482422,\n", " 'brem_vtx_x': [4.337699890136719,\n",
" -161.4499969482422,\n", " 14.665200233459473,\n",
" -664.5800170898438,\n", " 76.01349639892578,\n",
" -79.8499984741211,\n", " 407.2786865234375,\n",
" -231.4499969482422,\n", " 407.5032958984375,\n",
" -648.0399780273438,\n", " 410.0320129394531,\n",
" -115.2300033569336],\n", " 415.61248779296875,\n",
" 'brem_photons_pz_length': 10,\n", " 416.95660400390625],\n",
" 'brem_photons_pz': [1879.6300048828125,\n", " 'brem_vtx_y_length': 8,\n",
" 17900.0,\n", " 'brem_vtx_y': [11.121000289916992,\n",
" 479.54998779296875,\n", " 44.36029815673828,\n",
" 3984.72998046875,\n", " 229.05709838867188,\n",
" 4789.77001953125,\n", " 701.25048828125,\n",
" 19712.869140625,\n", " 701.5361938476562,\n",
" 2375.489990234375,\n", " 704.75341796875,\n",
" 6866.31005859375,\n", " 711.8519287109375,\n",
" 19224.990234375,\n", " 713.556396484375],\n",
" 3407.489990234375],\n", " 'brem_vtx_z_length': 8,\n",
" 'brem_vtx_x_length': 10,\n", " 'brem_vtx_z': [225.14419555664062,\n",
" 'brem_vtx_x': [-3.31820011138916,\n", " 794.5338134765625,\n",
" -3.4500999450683594,\n", " 3962.47607421875,\n",
" -20.166799545288086,\n", " 12063.0546875,\n",
" -120.83049774169922,\n", " 12067.9521484375,\n",
" -155.7082977294922,\n", " 12123.0634765625,\n",
" -187.58470153808594,\n", " 12244.5712890625,\n",
" -195.8394012451172,\n", " 12273.71875],\n",
" -196.60830688476562,\n",
" -196.72889709472656,\n",
" -197.48280334472656],\n",
" 'brem_vtx_y_length': 10,\n",
" 'brem_vtx_y': [-4.850500106811523,\n",
" -5.047299861907959,\n",
" -29.993200302124023,\n",
" -196.2998046875,\n",
" -285.7712097167969,\n",
" -380.3049011230469,\n",
" -405.302490234375,\n",
" -407.66009521484375,\n",
" -408.0318908691406,\n",
" -410.36138916015625],\n",
" 'brem_vtx_z_length': 10,\n",
" 'brem_vtx_z': [184.35940551757812,\n",
" 190.19970703125,\n",
" 929.2517700195312,\n",
" 5855.25390625,\n",
" 8506.958984375,\n",
" 11310.3232421875,\n",
" 12051.8232421875,\n",
" 12121.9033203125,\n",
" 12132.9287109375,\n",
" 12201.8427734375],\n",
" 'endvtx_type': 0,\n", " 'endvtx_type': 0,\n",
" 'endvtx_x': nan,\n", " 'endvtx_x': nan,\n",
" 'endvtx_y': nan,\n", " 'endvtx_y': nan,\n",
" 'endvtx_z': nan,\n", " 'endvtx_z': nan,\n",
" 'energy': 134321.90632702777,\n", " 'energy': 56441.954665682184,\n",
" 'eta': 3.8988255511590677,\n", " 'eta': 3.488542459471178,\n",
" 'event_count': 2,\n", " 'event_count': 4,\n",
" 'fromB': True,\n", " 'fromB': True,\n",
" 'fromD': False,\n", " 'fromD': False,\n",
" 'fromDecay': True,\n", " 'fromDecay': True,\n",
@ -688,135 +662,130 @@
" 'lost': False,\n", " 'lost': False,\n",
" 'lost_in_track_fit': False,\n", " 'lost_in_track_fit': False,\n",
" 'match_fraction': 1.0,\n", " 'match_fraction': 1.0,\n",
" 'mcp_idx': 5524,\n", " 'mcp_idx': 742,\n",
" 'mother_id': 511,\n", " 'mother_id': -511,\n",
" 'mother_key': 5479,\n", " 'mother_key': 698,\n",
" 'originvtx_type': 2,\n", " 'originvtx_type': 3,\n",
" 'originvtx_x': -0.0663,\n", " 'originvtx_x': 1.1207,\n",
" 'originvtx_y': -0.0023,\n", " 'originvtx_y': 0.8300000000000001,\n",
" 'originvtx_z': 40.3966,\n", " 'originvtx_z': 48.8842,\n",
" 'p': 134321.90632605576,\n", " 'p': 56441.95466336899,\n",
" 'phi': -2.1616595746843887,\n", " 'phi': 1.2677798486443645,\n",
" 'pid': 11,\n", " 'pid': 11,\n",
" 'pt': 5442.019481892728,\n", " 'pt': 3444.8656184095194,\n",
" 'px': -3031.63,\n", " 'px': 1027.95,\n",
" 'py': -4519.38,\n", " 'py': 3287.92,\n",
" 'pz': 134211.62,\n", " 'pz': 56336.73,\n",
" 'scifi_hit_pos_x_length': 13,\n", " 'scifi_hit_pos_x_length': 12,\n",
" 'scifi_hit_pos_x': [-147.52284240722656,\n", " 'scifi_hit_pos_x': [213.45494079589844,\n",
" -148.3743133544922,\n", " 216.5443115234375,\n",
" -149.227783203125,\n", " 219.6619110107422,\n",
" -150.07235717773438,\n", " 222.7693634033203,\n",
" -155.70518493652344,\n", " 243.98696899414062,\n",
" -155.71279907226562,\n", " 247.14352416992188,\n",
" -156.53173828125,\n", " 250.3206329345703,\n",
" -157.3567352294922,\n", " 253.48336791992188,\n",
" -158.170166015625,\n", " 275.1091003417969,\n",
" -163.65866088867188,\n", " 278.3012390136719,\n",
" -164.45834350585938,\n", " 281.5145568847656,\n",
" -165.2606201171875,\n", " 284.71240234375],\n",
" -166.0580291748047],\n", " 'scifi_hit_pos_y_length': 12,\n",
" 'scifi_hit_pos_y_length': 13,\n", " 'scifi_hit_pos_y': [454.385986328125,\n",
" 'scifi_hit_pos_y': [-262.7794494628906,\n", " 458.4554138183594,\n",
" -265.13543701171875,\n", " 462.55010986328125,\n",
" -267.5039367675781,\n", " 466.6192932128906,\n",
" -269.8581237792969,\n", " 494.1504821777344,\n",
" -285.7621765136719,\n", " 498.219482421875,\n",
" -285.7840270996094,\n", " 502.31170654296875,\n",
" -288.1278991699219,\n", " 506.38079833984375,\n",
" -290.49371337890625,\n", " 534.1050415039062,\n",
" -292.84771728515625,\n", " 538.1732788085938,\n",
" -308.8764343261719,\n", " 542.2637939453125,\n",
" -311.22991943359375,\n", " 546.33056640625],\n",
" -313.5960998535156,\n", " 'scifi_hit_pos_z_length': 12,\n",
" -315.9485168457031],\n", " 'scifi_hit_pos_z': [7827.7353515625,\n",
" 'scifi_hit_pos_z_length': 13,\n", " 7897.55078125,\n",
" 'scifi_hit_pos_z': [7825.15283203125,\n", " 7967.765625,\n",
" 7894.94482421875,\n", " 8037.5810546875,\n",
" 7965.13671875,\n", " 8509.87890625,\n",
" 8034.9287109375,\n", " 8579.693359375,\n",
" 8506.689453125,\n", " 8649.9091796875,\n",
" 8507.3388671875,\n", " 8719.724609375,\n",
" 8576.8623046875,\n", " 9195.0224609375,\n",
" 8647.0537109375,\n", " 9264.837890625,\n",
" 8716.845703125,\n", " 9335.052734375,\n",
" 9191.9873046875,\n", " 9404.8681640625],\n",
" 9261.779296875,\n", " 'track_p': 45119.27933089411,\n",
" 9331.970703125,\n", " 'track_pt': 2751.5483539471675,\n",
" 9401.7626953125],\n", " 'tx': 0.018246532945735403,\n",
" 'track_p': 111183.03747794438,\n", " 'ty': 0.05836192480465231,\n",
" 'track_pt': 4503.0812830108725,\n",
" 'tx': -0.022588431612702388,\n",
" 'ty': -0.03367353735838968,\n",
" 'ut_hit_pos_x_length': 4,\n", " 'ut_hit_pos_x_length': 4,\n",
" 'ut_hit_pos_x': [-51.275360107421875,\n", " 'ut_hit_pos_x': [42.633201599121094,\n",
" -52.504058837890625,\n", " 43.659507751464844,\n",
" -57.51994705200195,\n", " 47.88643264770508,\n",
" -58.743045806884766],\n", " 48.9288444519043],\n",
" 'ut_hit_pos_y_length': 4,\n", " 'ut_hit_pos_y_length': 4,\n",
" 'ut_hit_pos_y': [-76.70736694335938,\n", " 'ut_hit_pos_y': [133.4278106689453,\n",
" -78.56417083740234,\n", " 136.63731384277344,\n",
" -86.16027069091797,\n", " 149.7635040283203,\n",
" -88.01727294921875],\n", " 152.9698028564453],\n",
" 'ut_hit_pos_z_length': 4,\n", " 'ut_hit_pos_z_length': 4,\n",
" 'ut_hit_pos_z': [2313.153564453125,\n", " 'ut_hit_pos_z': [2321.846435546875,\n",
" 2368.153564453125,\n", " 2376.846435546875,\n",
" 2593.153564453125,\n", " 2601.846435546875,\n",
" 2648.153564453125],\n", " 2656.846435546875],\n",
" 'velo_hit_pos_x_length': 12,\n", " 'velo_hit_pos_x_length': 11,\n",
" 'velo_hit_pos_x': [-2.809859037399292,\n", " 'velo_hit_pos_x': [2.4984264373779297,\n",
" -3.374659538269043,\n", " 2.954725503921509,\n",
" -3.9390575885772705,\n", " 3.4115281105041504,\n",
" -4.503256320953369,\n", " 3.8682260513305664,\n",
" -5.067859172821045,\n", " 4.323416709899902,\n",
" -6.197760581970215,\n", " 4.777114391326904,\n",
" -7.8953633308410645,\n", " 5.2308149337768555,\n",
" -10.159163475036621,\n", " 6.138315677642822,\n",
" -12.452364921569824,\n", " 7.523914337158203,\n",
" -13.584664344787598,\n", " 9.338811874389648,\n",
" -14.716963768005371,\n", " 11.151512145996094],\n",
" -15.848661422729492],\n", " 'velo_hit_pos_y_length': 11,\n",
" 'velo_hit_pos_y_length': 12,\n", " 'velo_hit_pos_y': [5.234837055206299,\n",
" 'velo_hit_pos_y': [-4.092668056488037,\n", " 6.694038391113281,\n",
" -4.934769153594971,\n", " 8.154040336608887,\n",
" -5.776969909667969,\n", " 9.614141464233398,\n",
" -6.6197710037231445,\n", " 11.075146675109863,\n",
" -7.463074207305908,\n", " 12.537148475646973,\n",
" -9.150375366210938,\n", " 13.99904727935791,\n",
" -11.682275772094727,\n", " 16.921545028686523,\n",
" -15.058876037597656,\n", " 21.37623405456543,\n",
" -18.47857666015625,\n", " 27.210132598876953,\n",
" -20.166975021362305,\n", " 33.04653549194336],\n",
" -21.85477638244629,\n", " 'velo_hit_pos_z_length': 11,\n",
" -23.543376922607422],\n", " 'velo_hit_pos_z': [124.35900115966797,\n",
" 'velo_hit_pos_z_length': 12,\n", " 149.35899353027344,\n",
" 'velo_hit_pos_z': [161.85899353027344,\n", " 174.35899353027344,\n",
" 186.85899353027344,\n", " 199.35899353027344,\n",
" 211.85899353027344,\n", " 224.35899353027344,\n",
" 236.85899353027344,\n", " 249.35899353027344,\n",
" 261.8590087890625,\n", " 274.3590087890625,\n",
" 311.8590087890625,\n", " 324.3590087890625,\n",
" 386.8590087890625,\n", " 400.6409912109375,\n",
" 486.8590087890625,\n", " 500.6409912109375,\n",
" 588.1409912109375,\n", " 600.6409912109375],\n",
" 638.1409912109375,\n", " 'velo_track_idx': 44,\n",
" 688.1409912109375,\n", " 'velo_track_tx': 0.018183697015047073,\n",
" 738.1409912109375],\n", " 'velo_track_ty': 0.05834294483065605,\n",
" 'velo_track_idx': 90,\n", " 'velo_track_x': 14.221809387207031,\n",
" 'velo_track_tx': -0.022649554535746574,\n", " 'velo_track_y': 42.918701171875,\n",
" 'velo_track_ty': -0.033734168857336044,\n",
" 'velo_track_x': -16.569623947143555,\n",
" 'velo_track_y': -24.62316131591797,\n",
" 'velo_track_z': 770.0}" " 'velo_track_z': 770.0}"
] ]
}, },
"execution_count": 25, "execution_count": 18,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
], ],
"source": [ "source": [
"\n" "same = found[found[\"event_count\"]==4]\n",
"same[1].tolist()\n"
] ]
}, },
{ {