initial commit: functions for extracting information from TH2 and putting into TH1 to compute a Pulse Template