add a small program to get the template from the real pulse shape
add a small program to get the template from the real pulse shape