Merge branch 'master' of git.ucc.asn.au:/matches/honours
[matches/honours.git] / research / transmission_spectroscopy / TOF / analyse.h
1 #ifndef ANALYSE_H\r
2 #define ANALYSE_H\r
3 \r
4 #include <vector>\r
5 #include <cstdlib>\r
6 #include <string>\r
7 #include <map>\r
8 \r
9 using namespace std;\r
10 \r
11 class Analysis\r
12 {\r
13         public:\r
14                 //Analyse data\r
15                 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
16 \r
17         private:\r
18                 //Find the index of the peak value\r
19                 static int FindMaximum(std::vector<int> & data);\r
20                 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
21 \r
22 \r
23         \r
24                 Analysis() {}\r
25                 ~Analysis() {}\r
26 };\r
27 \r
28 #endif //ANALYSE_H\r
29 \r
30 //EOF\r
31 \r

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