Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / analyse.h
diff --git a/research/transmission_spectroscopy/TOF/analyse.h b/research/transmission_spectroscopy/TOF/analyse.h
new file mode 100644 (file)
index 0000000..b2621dc
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef ANALYSE_H\r
+#define ANALYSE_H\r
+\r
+#include <vector>\r
+#include <cstdlib>\r
+#include <string>\r
+#include <map>\r
+\r
+using namespace std;\r
+\r
+class Analysis\r
+{\r
+       public:\r
+               //Analyse data\r
+               static void AnalyseData(std::vector<int> & input, std::map<float, std::vector<int> > & output, float peakEnergy, float timeRes, float m, float L, float peakCutOff, int spectraNumber);\r
+\r
+       private:\r
+               //Find the index of the peak value\r
+               static int FindMaximum(std::vector<int> & data);\r
+               static void AnalyseSpectrum(std::vector<int> & spectrum, std::map<float, std::vector<int> > & output, float peakEnergy, float timeRes, float m, float L, float peakCutOff);\r
+\r
+\r
+       \r
+               Analysis() {}\r
+               ~Analysis() {}\r
+};\r
+\r
+#endif //ANALYSE_H\r
+\r
+//EOF\r
+\r

UCC git Repository :: git.ucc.asn.au