MakeAnalysedPulses was crashing because fAnalysedPulseMap was NULL. So I have gone to using the global variable gAnalysedPulseMap that we currently have. ***This will be changed when we decide how to pass TAnalysedPulses between modules***