There is an issue with the TH1D histogram that counts events, which is destroyed when the first file is processed. - The event count should probably be stored in an TParameter and not a histogram - EventFile is created for each input file, but never deleted. - EventProcessor creates new EventHeader, TSData and VTPData, but never cleans them up.