AE: Change HistogramFitFCN to TemplateFitFCN in old MakeTemplate.cpp so rootana will compile.
AE: ROOT numbers bins from 1 and not 0
AE: Renaming fFitter to fMinuitFitter in TemplateFitter.{cpp/h} for clarification
AE: Add the AddPulse function from John's PulseTemplate code and rename AddPulseToTemplate. Also make these methods pricate since they aren't needed outside of the class
AE: Add John's AddPulse function from PulseTemplate.cpp, this currently doesn't compile because I haven't edited more than the function name. Also, added a call to this function for the first pulse which has nothing to be fitted to. Finally, add the creation of a Template histogram and a TemplateFitter
AE: Add the template histogram as a parameter to AddPulseToTemplate
AE: Change the condition of this being the first pulse
AE: Move the function comment to outside of the function
AE: old_template is now hTemplate and passed to the function. Here I've either changed the reference or got rid of ti since it is no longer needed
AE: Realised that we will want to skip to the next iteration of the loop after this
AE: Renamed pol-->polarity, ped-->pedestal and nsamp->n_samples because I am feeling viciously pedantic today and it's easier work than actually working out what the code does
AE: Moved a few declarations to where they are first initialised
AE: Get a const reference to the samples and not copy them over