Automated detector simulation and reconstruction parametrization using machine learning. (29th May 2020)