Function to create a signal peak object