Analysis code usin ROOT for my bachelor project