This project contains all data and code related to my master's thesis "Semileptonic decays of heavy-flavour hadrons". Please note that the simulation uses the PYTHIA 8.3 event generator and will not function without it. The specific version of PYTHIA used in this thesis was PYTHIA 8.307. Brief descriptions of the contents of each folder present here will follow.