Fixed AddToDirectory method which was preventing TTemplates being saved
Also calculate the MaxBin amplitude in IntegralRatioAPGenerator
Store the amplitude in MaxBin Algorithm
Improve comments and save histo templates to sub-dir
Add error msg when no template is found
Use new TTemplate::AddToDirectory method properly
Refactor some functions
Pass parameters from config file to TemplateConvolver constructor
Make GetSetupRecord a static method
Add comments and tidy up summation loop counters
Remove commented out code
Add (currently hard-coded) flag for whether we expect piled-up waveforms
Convolve is now 2 methods, convolve and find peaks and find peaks
handles waveforms that could have pile-up differently
Draw recovered amplitude correctly for negative polarity channels
Get the polarity of the template
Tidy up whitespace