Transferring legacy scripts from BristolTopGroup/AnalysisSoftware as per issue BristolTopGroup/AnalysisSoftware/#3