{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "e2b64874",
   "metadata": {},
   "source": [
    "Source: https://github.com/root-project/summer-student-course/blob/main/Exercises/06_RDataFrame/02_collections.ipynb"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a58bae3e",
   "metadata": {},
   "source": [
    "**Excercise2** : The same dataset used in the previous exercise (TTree `dataset` in file `example_file.root`) contains two vector columns `vec1`and `vec2`\n",
    "The elements of `vec1` are distributed as a mixture of Gaussians, plus background noise.\n",
    "To remove the background noise, select the elements of `vec1` for which the square of the corresponding elements in `vec2` is less than 0.1.\n",
    "Where are the peaks of this mixture of Gaussians?"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "8af4db51",
   "metadata": {},
   "outputs": [],
   "source": [
    "import ROOT"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "cb6f3531",
   "metadata": {},
   "outputs": [],
   "source": [
    "df = ROOT.RDataFrame(\"dataset\",'example_file.root')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "85111d72",
   "metadata": {},
   "outputs": [],
   "source": [
    "# solve it \n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
