PMTNoiseROI.h
Go to the documentation of this file.
1 #ifndef WIRECELLSIGPROC_PMTNoiseROI_h
2 #define WIRECELLSIGPROC_PMTNoiseROI_h
3 
4 #include <vector>
5 #include <map>
6 
7 namespace WireCell{
8  namespace SigProc{
9  class PMTNoiseROI{
10  public:
11  PMTNoiseROI(int start_bin, int end_bin, int peak, int channel, float peak_height);
12  ~PMTNoiseROI();
13 
14  int get_start_bin(){return start_bin;};
15  int get_end_bin(){return end_bin;};
16 
17  void insert_peak(int peak);
18 
19  void insert_uwires(int wire_no, float peak_height);
20  void insert_vwires(int wire_no, float peak_height);
21 
22 
23  std::vector<int>& get_peaks(){return peaks;}
24 
25  std::vector<int>& get_uwires(){return induction_uwires;}
26  std::vector<int>& get_vwires(){return induction_vwires;}
27  std::vector<int>& get_wwires(){return collection_wwires;}
28 
29  std::map<int,float>& get_uwires_peak_heights(){return uwires_peak_heights;}
30  std::map<int,float>& get_vwires_peak_heights(){return vwires_peak_heights;}
31  std::map<int,float>& get_wwires_peak_heights(){return wwires_peak_heights;}
32 
33  float get_average_uwires_peak_height(int group);
34  float get_average_vwires_peak_height(int group);
35 
36 
37  float get_max_uwires_peak_height(int group);
38  float get_max_vwires_peak_height(int group);
39 
42 
43 
44  std::vector<std::vector<int>>& get_sorted_uwires(){return sorted_ind_uwires;}
45  std::vector<std::vector<int>>& get_sorted_vwires(){return sorted_ind_vwires;}
46  std::vector<int>& get_sorted_wwires(){return sorted_col_wwires;}
47 
48  void sort_wires(int nwire=1);
49  bool merge_ROI(PMTNoiseROI& ROI);
50 
51  private:
52  std::vector<int> peaks;
53  int start_bin;
54  int end_bin;
55 
56  std::map<int,float> uwires_peak_heights;
57  std::map<int,float> vwires_peak_heights;
58  std::map<int,float> wwires_peak_heights;
59 
60 
61  std::vector<int> induction_uwires;
62  std::vector<int> induction_vwires;
63  std::vector<int> collection_wwires;
64 
65  std::vector<std::vector<int>> sorted_ind_uwires;
66  std::vector<std::vector<int>> sorted_ind_vwires;
67  std::vector<int> sorted_col_wwires;
68  };
69  }
70 }
71 
72 #endif
std::map< int, float > uwires_peak_heights
Definition: PMTNoiseROI.h:56
float get_max_vwires_peak_height(int group)
Definition: PMTNoiseROI.cxx:79
void insert_uwires(int wire_no, float peak_height)
Definition: PMTNoiseROI.cxx:30
std::map< int, float > wwires_peak_heights
Definition: PMTNoiseROI.h:58
std::vector< int > induction_vwires
Definition: PMTNoiseROI.h:62
std::vector< int > & get_sorted_wwires()
Definition: PMTNoiseROI.h:46
std::map< int, float > & get_wwires_peak_heights()
Definition: PMTNoiseROI.h:31
std::map< int, float > & get_vwires_peak_heights()
Definition: PMTNoiseROI.h:30
std::vector< int > & get_vwires()
Definition: PMTNoiseROI.h:26
std::vector< std::vector< int > > sorted_ind_vwires
Definition: PMTNoiseROI.h:66
std::vector< int > & get_uwires()
Definition: PMTNoiseROI.h:25
std::vector< int > peaks
Definition: PMTNoiseROI.h:52
bool merge_ROI(PMTNoiseROI &ROI)
std::vector< std::vector< int > > & get_sorted_uwires()
Definition: PMTNoiseROI.h:44
float get_average_uwires_peak_height(int group)
Definition: PMTNoiseROI.cxx:90
std::vector< std::vector< int > > sorted_ind_uwires
Definition: PMTNoiseROI.h:65
std::vector< int > sorted_col_wwires
Definition: PMTNoiseROI.h:67
std::vector< int > induction_uwires
Definition: PMTNoiseROI.h:61
std::vector< std::vector< int > > & get_sorted_vwires()
Definition: PMTNoiseROI.h:45
Definition: Main.h:22
std::vector< int > collection_wwires
Definition: PMTNoiseROI.h:63
std::map< int, float > & get_uwires_peak_heights()
Definition: PMTNoiseROI.h:29
std::vector< int > & get_peaks()
Definition: PMTNoiseROI.h:23
void insert_vwires(int wire_no, float peak_height)
Definition: PMTNoiseROI.cxx:37
std::map< int, float > vwires_peak_heights
Definition: PMTNoiseROI.h:57
float get_average_vwires_peak_height(int group)
std::vector< int > & get_wwires()
Definition: PMTNoiseROI.h:27
float get_max_uwires_peak_height(int group)
Definition: PMTNoiseROI.cxx:68
PMTNoiseROI(int start_bin, int end_bin, int peak, int channel, float peak_height)
Definition: PMTNoiseROI.cxx:10