Berkeley Nuclear Data Software
HPGECalibration.h
Go to the documentation of this file.
1 #ifndef _HPGE_CALIBRATION_H_
2 #define _HPGE_CALIBRATION_H_
3 // performs HPGE calibration
4 // Joey Gordon 2019.09.16
5 
6 #include "TH1.h"
7 #include "TFile.h"
8 #include "SpectrumAnalysis.h"
9 #include <vector>
10 #include <map>
11 #include <string>
12 using std::map;
13 using std::vector;
14 using std::string;
15 
17 {
18 public:
21 
24  void loadBasicHists(string a_fname);
25 
28  void findPeaks(double a_minHeight, int a_numPeaks);
29 
30 
34  void doCalibration();
35 
36 
37  map<int, TH1*> getHists();
38  map<string, vector<vector<double>>> m_zeroCrossings;
40  void writeToConfig();
41 private:
42  vector<double> m_energy;
43  map<int, TH1*> m_hists;
44  map<int, vector<vector<double>>> m_peakFits;
45  map<int, vector<double>> m_calibration;
46 
47 
48 };
49 #endif
Definition: HPGECalibration.h:17
HPGECalibration()
default constructor
Definition: HPGECalibration.cpp:9
void findPeaks(double a_minHeight, int a_numPeaks)
Definition: HPGECalibration.cpp:51
void doCalibration()
Definition: HPGECalibration.cpp:107
map< int, TH1 * > getHists()
Definition: HPGECalibration.cpp:102
void writeToConfig()
writes slope/intercept to configFile
void loadBasicHists(string a_fname)
Definition: HPGECalibration.cpp:14
map< string, vector< vector< double > > > m_zeroCrossings
Definition: HPGECalibration.h:38
Definition: SpectrumAnalysis.h:40