Skip to content

Commit

Permalink
change trackid in csv generator (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramirezdiego authored Oct 21, 2024
1 parent 36ac25c commit 4209bec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/3_csv_input.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"\n",
" df[\"type\"] = np.repeat(\"gamma\", n)\n",
"\n",
" df[\"trackid\"] = np.zeros(n)\n",
" df[\"trackid\"] = np.ones(n)\n",
" df[\"parentid\"] = np.zeros(n, dtype=np.int32)\n",
" df[\"creaproc\"] = np.repeat(\"None\", n)\n",
" df[\"parenttype\"] = np.repeat(\"None\", n)\n",
Expand Down Expand Up @@ -100,12 +100,12 @@
" df[\"parenttype\"] = np.tile([\"Kr83[41.557]\", \"Kr83[9.405]\"], n)\n",
"\n",
" # Not used:\n",
" # a) since Kr83m is classified in epix using only the parenttype\n",
" # a) since Kr83m is classified using only the parenttype\n",
" # b) trackid, parentid are not used right now.\n",
" # Please keep in mind that other \"simulations\" may require properly set\n",
" # edproc, type and creaproc. Future epix updates using e.g. track reconstructions\n",
" # may also need proper track- and parent-ids.\n",
" df[\"trackid\"] = np.tile([0, 1], n)\n",
" df[\"trackid\"] = np.tile([1, 2], n)\n",
" df[\"parentid\"] = np.zeros(2 * n, dtype=np.int32)\n",
" df[\"creaproc\"] = np.repeat(\"None\", 2 * n)\n",
" df[\"edproc\"] = np.repeat(\"None\", 2 * n)\n",
Expand Down

0 comments on commit 4209bec

Please sign in to comment.