scintillator function first implementation without noise