Code related to the Test Beam data analysis for the CMS Tracker Phase-II Upgrade