## 5 Conclusions  
In summary, a code was provided to calculate energy distribution spectra and maximum proton energy values from input time-of-flight datasets. The method of maximum proton energy derivation was drastically improved to allow for a more accurate automatic determination of the value via rudimentary machine training techniques, making use of linear regression systems, allowing the code to be fine-tuned using the data. The code was additionally altered to allow functionality for any provided TOF dataset, meaning the proton energy could be predicted to typically within 0.24% margin of error for a universal set of TOF data, regardless of the signal intensity or S/N ratio. Additional feature implementation allowed for the photopeak location to be manually set for situations that may require such a feature, such as cases where no photopeak is visible in an individual dataset but the location of which can be inferred from other data. The code has minimal processing time (>30 datasets/sec, where each set consists of 50,000 points, run on local hardware), and user-friendly systems and annotations have been included for third-party users to easily understand and operate it. Due to the automatic nature of the program, processing of a large number of datasets is possible in quick succession without the need for manual monitoring, suitable for the high-repetition rate that is often achieved with currently available laser systems [20; 21] and similarly suitable datasets. The code will be available for free use for the study of TOF data and will prove to be useful in investigations requiring high level accuracy of the laser-accelerated proton spectra characteristics.  
The developed code is suitable to systematically analyze a broad range of data that are acquired via laser-plasma experimental campaigns, in particular those aiming at investigating the reliability of laser-driven ion beams for multi-disciplinary applications, including proton insertion in nuclear fusion studies or clinical biomedical research [22].  
The paper's initial idea was proposed by [PERSON] and [PERSON]; the experiment was carried out by [PERSON], [PERSON], [PERSON] and [PERSON]; data analysis was performed by [PERSON], [PERSON] and [PERSON]; original draft preparation by [PERSON] review and editing performed by [PERSON], [PERSON], [PERSON], [PERSON], [PERSON], [PERSON] and [PERSON]. All authors have read and agreed to the published version of the manuscript.  
This work has been supported by the project Advanced research using high-intensity laser-produced photons and particles (CZ.02.1.01/0.0/0.0/16_019/0000789) from European Regional Development Fund (ADONIS) and IMPULES project by the European Union Framework Program for Research and Innovation Horizon 2020 under grant agreement No 871161\" YL acknowledges the support from the European Regional Development Fund and the state budget of the Czech Republic (project BIATRI: No. CZ.02.1.01/0.0/0.0/15_003/000045). This project has received funding from the European Union's Horizon 2020 research and innovation programme under Grant agreement no. 871124 Laserlab-Europe, Grant agreement no. 739573 HiLASE Centre of Excellence and Operational Programme Research, development, and education under Decision on grant no. 15_006/0000674-01 HiLASE Centre of Excellence.  
Not applicable.  
Data Availability Statement:Data are available from the corresponding authors upon reasonable request.  
**Acknowledgments:** We acknowledge HiLASE Centre in Dolni Brezany, Czech Republic, for provision of laser/experimental station beamtime and would like to thank the instrument group and facility staff for their assistance.  
**Conflicts of Interest:** The authors declare no conflict of interest.