Code for the analysis of CERN H4 test beam (Nov. 2014) - SPACAL