Library for Monte Carlo simulation of photons moving in long scintillator (Qt)