AE: Use SetupNavigator's GetRunNumber to put the run number on the histogram title
AE: Get the SQLite row from pedestals_and_noises with the correct run number
AE: Need to change the field numbers that we need to get since I added the run number as field 0 to the SQLite database
AE: Add pulses to template and also add some things to plot to check that the templates progress
AE: Add some simpler bounds to see if it changes anything
AE: Forgot to divide by the number of samples in the calculation of the RMS
AE: Restrict to fitting a smaller range of bins in HistogramFitFCN. Also get the error of the correct bin
AE: A few things done all at once here in TemplateCreator. Made the TemplateFitter a member variable so that I could write the CorrectSampleValue function. Export some iterations of the templates. Also, use the corrected sample values when adding a pulse to the template (rather obvious when you think about it...)
AE: May have screwed up with my commits here. Some of these changes should have been in the last one. The only change I think I've made is to make sure that we only add pulses to the template when the bin number is on the template histogram.
AE: This is the bit I think I changed