root
This commit is contained in:
parent
d1d15196c4
commit
0494143d2c
69
wetest.ipynb
69
wetest.ipynb
@ -2,27 +2,38 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 65,
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import uproot\n",
|
||||
"import numpy as np\n",
|
||||
"import sys\n",
|
||||
"import os\n",
|
||||
"import matplotlib\n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"from mpl_toolkits import mplot3d\n",
|
||||
"import itertools\n",
|
||||
"import awkward as ak\n",
|
||||
"%matplotlib inline"
|
||||
]
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 66,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"ename": "FileNotFoundError",
|
||||
"evalue": "file not found\n\n 'tracking_losses_ntuple_Dst0ToD0EE.root'\n\nFiles may be specified as:\n * str/bytes: relative or absolute filesystem path or URL, without any colons\n other than Windows drive letter or URL schema.\n Examples: \"rel/file.root\", \"C:\\abs\\file.root\", \"http://where/what.root\"\n * str/bytes: same with an object-within-ROOT path, separated by a colon.\n Example: \"rel/file.root:tdirectory/ttree\"\n * pathlib.Path: always interpreted as a filesystem path or URL only (no\n object-within-ROOT path), regardless of whether there are any colons.\n Examples: Path(\"rel:/file.root\"), Path(\"/abs/path:stuff.root\")\n\nFunctions that accept many files (uproot.iterate, etc.) also allow:\n * glob syntax in str/bytes and pathlib.Path.\n Examples: Path(\"rel/*.root\"), \"/abs/*.root:tdirectory/ttree\"\n * dict: keys are filesystem paths, values are objects-within-ROOT paths.\n Example: {\"/data_v1/*.root\": \"ttree_v1\", \"/data_v2/*.root\": \"ttree_v2\"}\n * already-open TTree objects.\n * iterables of the above.\n",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
||||
"\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)",
|
||||
"File \u001b[0;32m/work/cetin/software/miniconda3/envs/env1/lib/python3.11/site-packages/uproot/source/file.py:112\u001b[0m, in \u001b[0;36mMemmapSource._open\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 111\u001b[0m \u001b[39mtry\u001b[39;00m:\n\u001b[0;32m--> 112\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_file \u001b[39m=\u001b[39m numpy\u001b[39m.\u001b[39;49mmemmap(\u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_file_path, dtype\u001b[39m=\u001b[39;49m\u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_dtype, mode\u001b[39m=\u001b[39;49m\u001b[39m\"\u001b[39;49m\u001b[39mr\u001b[39;49m\u001b[39m\"\u001b[39;49m)\n\u001b[1;32m 113\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_fallback \u001b[39m=\u001b[39m \u001b[39mNone\u001b[39;00m\n",
|
||||
"File \u001b[0;32m/work/cetin/software/miniconda3/envs/env1/lib/python3.11/site-packages/numpy/core/memmap.py:229\u001b[0m, in \u001b[0;36mmemmap.__new__\u001b[0;34m(subtype, filename, dtype, mode, offset, shape, order)\u001b[0m\n\u001b[1;32m 228\u001b[0m \u001b[39melse\u001b[39;00m:\n\u001b[0;32m--> 229\u001b[0m f_ctx \u001b[39m=\u001b[39m \u001b[39mopen\u001b[39;49m(os_fspath(filename), (\u001b[39m'\u001b[39;49m\u001b[39mr\u001b[39;49m\u001b[39m'\u001b[39;49m \u001b[39mif\u001b[39;49;00m mode \u001b[39m==\u001b[39;49m \u001b[39m'\u001b[39;49m\u001b[39mc\u001b[39;49m\u001b[39m'\u001b[39;49m \u001b[39melse\u001b[39;49;00m mode)\u001b[39m+\u001b[39;49m\u001b[39m'\u001b[39;49m\u001b[39mb\u001b[39;49m\u001b[39m'\u001b[39;49m)\n\u001b[1;32m 231\u001b[0m \u001b[39mwith\u001b[39;00m f_ctx \u001b[39mas\u001b[39;00m fid:\n",
|
||||
"\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] No such file or directory: 'tracking_losses_ntuple_Dst0ToD0EE.root'",
|
||||
"\nDuring handling of the above exception, another exception occurred:\n",
|
||||
"\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)",
|
||||
"File \u001b[0;32m/work/cetin/software/miniconda3/envs/env1/lib/python3.11/site-packages/uproot/source/file.py:36\u001b[0m, in \u001b[0;36mFileResource.__init__\u001b[0;34m(self, file_path)\u001b[0m\n\u001b[1;32m 35\u001b[0m \u001b[39mtry\u001b[39;00m:\n\u001b[0;32m---> 36\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_file \u001b[39m=\u001b[39m \u001b[39mopen\u001b[39;49m(\u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_file_path, \u001b[39m\"\u001b[39;49m\u001b[39mrb\u001b[39;49m\u001b[39m\"\u001b[39;49m)\n\u001b[1;32m 37\u001b[0m \u001b[39mexcept\u001b[39;00m uproot\u001b[39m.\u001b[39m_util\u001b[39m.\u001b[39m_FileNotFoundError \u001b[39mas\u001b[39;00m err:\n",
|
||||
"\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] No such file or directory: 'tracking_losses_ntuple_Dst0ToD0EE.root'",
|
||||
"\nThe above exception was the direct cause of the following exception:\n",
|
||||
"\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)",
|
||||
"\u001b[1;32m/work/cetin/Projektpraktikum/wetest.ipynb Cell 2\u001b[0m line \u001b[0;36m2\n\u001b[1;32m <a href='vscode-notebook-cell://ssh-remote%2Blhcba1.physi.uni-heidelberg.de/work/cetin/Projektpraktikum/wetest.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=0'>1</a>\u001b[0m \u001b[39m#file = uproot.open(\"tracking_losses_ntuple_Bd2KstEE.root:PrDebugTrackingLosses.PrDebugTrackingTool/Tuple;1\")\u001b[39;00m\n\u001b[0;32m----> <a href='vscode-notebook-cell://ssh-remote%2Blhcba1.physi.uni-heidelberg.de/work/cetin/Projektpraktikum/wetest.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=1'>2</a>\u001b[0m file \u001b[39m=\u001b[39m uproot\u001b[39m.\u001b[39;49mopen(\u001b[39m\"\u001b[39;49m\u001b[39mtracking_losses_ntuple_Dst0ToD0EE.root:PrDebugTrackingLosses.PrDebugTrackingTool/Tuple;1\u001b[39;49m\u001b[39m\"\u001b[39;49m)\n\u001b[1;32m <a href='vscode-notebook-cell://ssh-remote%2Blhcba1.physi.uni-heidelberg.de/work/cetin/Projektpraktikum/wetest.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=3'>4</a>\u001b[0m \u001b[39m#file.keys()\u001b[39;00m\n\u001b[1;32m <a href='vscode-notebook-cell://ssh-remote%2Blhcba1.physi.uni-heidelberg.de/work/cetin/Projektpraktikum/wetest.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=4'>5</a>\u001b[0m \u001b[39m#file.show()\u001b[39;00m\n\u001b[1;32m <a href='vscode-notebook-cell://ssh-remote%2Blhcba1.physi.uni-heidelberg.de/work/cetin/Projektpraktikum/wetest.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=5'>6</a>\u001b[0m \u001b[39m\"\"\"\u001b[39;00m\n\u001b[1;32m <a href='vscode-notebook-cell://ssh-remote%2Blhcba1.physi.uni-heidelberg.de/work/cetin/Projektpraktikum/wetest.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=6'>7</a>\u001b[0m \u001b[39mvertices = file.arrays([\"all_endvtx_x\", \"all_endvtx_y\", \"all_endvtx_z\"])\u001b[39;00m\n\u001b[1;32m <a href='vscode-notebook-cell://ssh-remote%2Blhcba1.physi.uni-heidelberg.de/work/cetin/Projektpraktikum/wetest.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=7'>8</a>\u001b[0m \u001b[39mvt_length = file.arrays([\"all_endvtx_x_length\", \"all_endvtx_y_length\", \"all_endvtx_z_length\"])\u001b[39;00m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m <a href='vscode-notebook-cell://ssh-remote%2Blhcba1.physi.uni-heidelberg.de/work/cetin/Projektpraktikum/wetest.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=17'>18</a>\u001b[0m \u001b[39mfromPairProd = file[\"fromPairProd\"].array()\u001b[39;00m\n\u001b[1;32m <a href='vscode-notebook-cell://ssh-remote%2Blhcba1.physi.uni-heidelberg.de/work/cetin/Projektpraktikum/wetest.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=18'>19</a>\u001b[0m \u001b[39m\"\"\"\u001b[39;00m\n",
|
||||
"File \u001b[0;32m/work/cetin/software/miniconda3/envs/env1/lib/python3.11/site-packages/uproot/reading.py:142\u001b[0m, in \u001b[0;36mopen\u001b[0;34m(path, object_cache, array_cache, custom_classes, decompression_executor, interpretation_executor, **options)\u001b[0m\n\u001b[1;32m 133\u001b[0m \u001b[39mif\u001b[39;00m \u001b[39mnot\u001b[39;00m uproot\u001b[39m.\u001b[39m_util\u001b[39m.\u001b[39misstr(file_path) \u001b[39mand\u001b[39;00m \u001b[39mnot\u001b[39;00m (\n\u001b[1;32m 134\u001b[0m \u001b[39mhasattr\u001b[39m(file_path, \u001b[39m\"\u001b[39m\u001b[39mread\u001b[39m\u001b[39m\"\u001b[39m) \u001b[39mand\u001b[39;00m \u001b[39mhasattr\u001b[39m(file_path, \u001b[39m\"\u001b[39m\u001b[39mseek\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[1;32m 135\u001b[0m ):\n\u001b[1;32m 136\u001b[0m \u001b[39mraise\u001b[39;00m \u001b[39mValueError\u001b[39;00m(\n\u001b[1;32m 137\u001b[0m \u001b[39m\"\u001b[39m\u001b[39m'\u001b[39m\u001b[39mpath\u001b[39m\u001b[39m'\u001b[39m\u001b[39m must be a string, pathlib.Path, an object with \u001b[39m\u001b[39m'\u001b[39m\u001b[39mread\u001b[39m\u001b[39m'\u001b[39m\u001b[39m and \u001b[39m\u001b[39m\"\u001b[39m\n\u001b[1;32m 138\u001b[0m \u001b[39m\"\u001b[39m\u001b[39m'\u001b[39m\u001b[39mseek\u001b[39m\u001b[39m'\u001b[39m\u001b[39m methods, or a length-1 dict of \u001b[39m\u001b[39m{\u001b[39m\u001b[39mfile_path: object_path}, \u001b[39m\u001b[39m\"\u001b[39m\n\u001b[1;32m 139\u001b[0m \u001b[39mf\u001b[39m\u001b[39m\"\u001b[39m\u001b[39mnot \u001b[39m\u001b[39m{\u001b[39;00mpath\u001b[39m!r}\u001b[39;00m\u001b[39m\"\u001b[39m\n\u001b[1;32m 140\u001b[0m )\n\u001b[0;32m--> 142\u001b[0m file \u001b[39m=\u001b[39m ReadOnlyFile(\n\u001b[1;32m 143\u001b[0m file_path,\n\u001b[1;32m 144\u001b[0m object_cache\u001b[39m=\u001b[39;49mobject_cache,\n\u001b[1;32m 145\u001b[0m array_cache\u001b[39m=\u001b[39;49marray_cache,\n\u001b[1;32m 146\u001b[0m custom_classes\u001b[39m=\u001b[39;49mcustom_classes,\n\u001b[1;32m 147\u001b[0m decompression_executor\u001b[39m=\u001b[39;49mdecompression_executor,\n\u001b[1;32m 148\u001b[0m interpretation_executor\u001b[39m=\u001b[39;49minterpretation_executor,\n\u001b[1;32m 149\u001b[0m \u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49moptions, \u001b[39m# NOTE: a comma after **options breaks Python 2\u001b[39;49;00m\n\u001b[1;32m 150\u001b[0m )\n\u001b[1;32m 152\u001b[0m \u001b[39mif\u001b[39;00m object_path \u001b[39mis\u001b[39;00m \u001b[39mNone\u001b[39;00m:\n\u001b[1;32m 153\u001b[0m \u001b[39mreturn\u001b[39;00m file\u001b[39m.\u001b[39mroot_directory\n",
|
||||
"File \u001b[0;32m/work/cetin/software/miniconda3/envs/env1/lib/python3.11/site-packages/uproot/reading.py:582\u001b[0m, in \u001b[0;36mReadOnlyFile.__init__\u001b[0;34m(self, file_path, object_cache, array_cache, custom_classes, decompression_executor, interpretation_executor, **options)\u001b[0m\n\u001b[1;32m 577\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mhook_before_create_source()\n\u001b[1;32m 579\u001b[0m Source, file_path \u001b[39m=\u001b[39m uproot\u001b[39m.\u001b[39m_util\u001b[39m.\u001b[39mfile_path_to_source_class(\n\u001b[1;32m 580\u001b[0m file_path, \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_options\n\u001b[1;32m 581\u001b[0m )\n\u001b[0;32m--> 582\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_source \u001b[39m=\u001b[39m Source(\n\u001b[1;32m 583\u001b[0m file_path, \u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49m\u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_options \u001b[39m# NOTE: a comma after **options breaks Python 2\u001b[39;49;00m\n\u001b[1;32m 584\u001b[0m )\n\u001b[1;32m 586\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mhook_before_get_chunks()\n\u001b[1;32m 588\u001b[0m \u001b[39mif\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_options[\u001b[39m\"\u001b[39m\u001b[39mbegin_chunk_size\u001b[39m\u001b[39m\"\u001b[39m] \u001b[39m<\u001b[39m _file_header_fields_big\u001b[39m.\u001b[39msize:\n",
|
||||
"File \u001b[0;32m/work/cetin/software/miniconda3/envs/env1/lib/python3.11/site-packages/uproot/source/file.py:108\u001b[0m, in \u001b[0;36mMemmapSource.__init__\u001b[0;34m(self, file_path, **options)\u001b[0m\n\u001b[1;32m 105\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_num_requested_bytes \u001b[39m=\u001b[39m \u001b[39m0\u001b[39m\n\u001b[1;32m 107\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_file_path \u001b[39m=\u001b[39m file_path\n\u001b[0;32m--> 108\u001b[0m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_open()\n",
|
||||
"File \u001b[0;32m/work/cetin/software/miniconda3/envs/env1/lib/python3.11/site-packages/uproot/source/file.py:118\u001b[0m, in \u001b[0;36mMemmapSource._open\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 116\u001b[0m opts \u001b[39m=\u001b[39m \u001b[39mdict\u001b[39m(\u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_fallback_opts)\n\u001b[1;32m 117\u001b[0m opts[\u001b[39m\"\u001b[39m\u001b[39mnum_workers\u001b[39m\u001b[39m\"\u001b[39m] \u001b[39m=\u001b[39m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_num_fallback_workers\n\u001b[0;32m--> 118\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_fallback \u001b[39m=\u001b[39m uproot\u001b[39m.\u001b[39;49msource\u001b[39m.\u001b[39;49mfile\u001b[39m.\u001b[39;49mMultithreadedFileSource(\n\u001b[1;32m 119\u001b[0m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_file_path, \u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49mopts \u001b[39m# NOTE: a comma after **opts breaks Python 2\u001b[39;49;00m\n\u001b[1;32m 120\u001b[0m )\n",
|
||||
"File \u001b[0;32m/work/cetin/software/miniconda3/envs/env1/lib/python3.11/site-packages/uproot/source/file.py:248\u001b[0m, in \u001b[0;36mMultithreadedFileSource.__init__\u001b[0;34m(self, file_path, **options)\u001b[0m\n\u001b[1;32m 245\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_num_requested_bytes \u001b[39m=\u001b[39m \u001b[39m0\u001b[39m\n\u001b[1;32m 247\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_file_path \u001b[39m=\u001b[39m file_path\n\u001b[0;32m--> 248\u001b[0m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_open()\n",
|
||||
"File \u001b[0;32m/work/cetin/software/miniconda3/envs/env1/lib/python3.11/site-packages/uproot/source/file.py:252\u001b[0m, in \u001b[0;36mMultithreadedFileSource._open\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 250\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39m_open\u001b[39m(\u001b[39mself\u001b[39m):\n\u001b[1;32m 251\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_executor \u001b[39m=\u001b[39m uproot\u001b[39m.\u001b[39msource\u001b[39m.\u001b[39mfutures\u001b[39m.\u001b[39mResourceThreadPoolExecutor(\n\u001b[0;32m--> 252\u001b[0m [FileResource(\u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_file_path) \u001b[39mfor\u001b[39;49;00m x \u001b[39min\u001b[39;49;00m \u001b[39mrange\u001b[39;49m(\u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_num_workers)]\n\u001b[1;32m 253\u001b[0m )\n\u001b[1;32m 254\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_num_bytes \u001b[39m=\u001b[39m os\u001b[39m.\u001b[39mpath\u001b[39m.\u001b[39mgetsize(\u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_file_path)\n",
|
||||
"File \u001b[0;32m/work/cetin/software/miniconda3/envs/env1/lib/python3.11/site-packages/uproot/source/file.py:252\u001b[0m, in \u001b[0;36m<listcomp>\u001b[0;34m(.0)\u001b[0m\n\u001b[1;32m 250\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39m_open\u001b[39m(\u001b[39mself\u001b[39m):\n\u001b[1;32m 251\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_executor \u001b[39m=\u001b[39m uproot\u001b[39m.\u001b[39msource\u001b[39m.\u001b[39mfutures\u001b[39m.\u001b[39mResourceThreadPoolExecutor(\n\u001b[0;32m--> 252\u001b[0m [FileResource(\u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_file_path) \u001b[39mfor\u001b[39;00m x \u001b[39min\u001b[39;00m \u001b[39mrange\u001b[39m(\u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_num_workers)]\n\u001b[1;32m 253\u001b[0m )\n\u001b[1;32m 254\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_num_bytes \u001b[39m=\u001b[39m os\u001b[39m.\u001b[39mpath\u001b[39m.\u001b[39mgetsize(\u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_file_path)\n",
|
||||
"File \u001b[0;32m/work/cetin/software/miniconda3/envs/env1/lib/python3.11/site-packages/uproot/source/file.py:38\u001b[0m, in \u001b[0;36mFileResource.__init__\u001b[0;34m(self, file_path)\u001b[0m\n\u001b[1;32m 36\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_file \u001b[39m=\u001b[39m \u001b[39mopen\u001b[39m(\u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_file_path, \u001b[39m\"\u001b[39m\u001b[39mrb\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[1;32m 37\u001b[0m \u001b[39mexcept\u001b[39;00m uproot\u001b[39m.\u001b[39m_util\u001b[39m.\u001b[39m_FileNotFoundError \u001b[39mas\u001b[39;00m err:\n\u001b[0;32m---> 38\u001b[0m \u001b[39mraise\u001b[39;00m uproot\u001b[39m.\u001b[39m_util\u001b[39m.\u001b[39m_file_not_found(file_path) \u001b[39mfrom\u001b[39;00m \u001b[39merr\u001b[39;00m\n",
|
||||
"\u001b[0;31mFileNotFoundError\u001b[0m: file not found\n\n 'tracking_losses_ntuple_Dst0ToD0EE.root'\n\nFiles may be specified as:\n * str/bytes: relative or absolute filesystem path or URL, without any colons\n other than Windows drive letter or URL schema.\n Examples: \"rel/file.root\", \"C:\\abs\\file.root\", \"http://where/what.root\"\n * str/bytes: same with an object-within-ROOT path, separated by a colon.\n Example: \"rel/file.root:tdirectory/ttree\"\n * pathlib.Path: always interpreted as a filesystem path or URL only (no\n object-within-ROOT path), regardless of whether there are any colons.\n Examples: Path(\"rel:/file.root\"), Path(\"/abs/path:stuff.root\")\n\nFunctions that accept many files (uproot.iterate, etc.) also allow:\n * glob syntax in str/bytes and pathlib.Path.\n Examples: Path(\"rel/*.root\"), \"/abs/*.root:tdirectory/ttree\"\n * dict: keys are filesystem paths, values are objects-within-ROOT paths.\n Example: {\"/data_v1/*.root\": \"ttree_v1\", \"/data_v2/*.root\": \"ttree_v2\"}\n * already-open TTree objects.\n * iterables of the above.\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"#file = uproot.open(\"tracking_losses_ntuple_Bd2KstEE.root:PrDebugTrackingLosses.PrDebugTrackingTool/Tuple;1\")\n",
|
||||
"file = uproot.open(\"tracking_losses_ntuple_Dst0ToD0EE.root:PrDebugTrackingLosses.PrDebugTrackingTool/Tuple;1\")\n",
|
||||
@ -60,7 +71,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -96,7 +107,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -135,7 +146,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 61,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -188,7 +199,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 62,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -252,7 +263,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 63,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -277,7 +288,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 64,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -344,7 +355,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -387,7 +398,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 16,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -662,7 +673,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -846,7 +857,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 14,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user