Jpp
Classes | Functions
PMT_choice.hh File Reference

Go to the source code of this file.

Classes

struct  pmt_clusters_top
 
struct  pmt_clusters_bottom
 

Functions

vector< int > setTopPMTs (int option)
 Select the PMTs in the upper hemisphere of a DOM. More...
 
vector< int > setBottomPMTs (int option)
 Select the PMTs in the lower hemisphere of a DOM. More...
 

Function Documentation

◆ setTopPMTs()

vector< int > setTopPMTs ( int  option)
inline

Select the PMTs in the upper hemisphere of a DOM.

Parameters
optionuser choice
Returns
vector with chosen pmts

Definition at line 48 of file PMT_choice.hh.

48  {
49 
50  vector < int > topPMTs ;
51 
53 
54  switch(option){
55 
56  case 1 :
57 
58  topPMTs.insert(topPMTs.end(), t.top_a.begin(), t.top_a.end());
59 
60  break;
61 
62  case 2 :
63 
64  topPMTs.insert(topPMTs.end(), t.top_a.begin(), t.top_a.end());
65 
66  topPMTs.insert(topPMTs.end(), t.top_b.begin(), t.top_b.end());
67 
68  break;
69 
70  case 3 :
71 
72  topPMTs.insert(topPMTs.end(), t.top_a.begin(), t.top_a.end());
73 
74  topPMTs.insert(topPMTs.end(), t.top_b.begin(), t.top_b.end());
75 
76  topPMTs.insert(topPMTs.end(), t.top_c.begin(), t.top_c.end());
77 
78  topPMTs.insert(topPMTs.end(), t.top_d.begin(), t.top_d.end());
79 
80  topPMTs.insert(topPMTs.end(), t.top_e.begin(), t.top_e.end());
81 
82  topPMTs.insert(topPMTs.end(), t.top_f.begin(), t.top_f.end());
83 
84  break;
85 
86  }
87 
88  return topPMTs ;
89 
90 }

◆ setBottomPMTs()

vector< int > setBottomPMTs ( int  option)
inline

Select the PMTs in the lower hemisphere of a DOM.

Parameters
optionuser choice
Returns
vector with chosen pmts

Definition at line 100 of file PMT_choice.hh.

100  {
101 
102  vector < int > bottomPMTs ;
103 
105 
106  switch(option){
107 
108  case 1 :
109 
110  bottomPMTs.insert(bottomPMTs.end(), b.bottom_a.begin(), b.bottom_a.end());
111 
112  break;
113 
114  case 2 :
115 
116  bottomPMTs.insert(bottomPMTs.end(), b.bottom_a.begin(), b.bottom_a.end());
117 
118  bottomPMTs.insert(bottomPMTs.end(), b.bottom_b.begin(), b.bottom_b.end());
119 
120  break;
121 
122  case 3 :
123 
124  bottomPMTs.insert(bottomPMTs.end(), b.bottom_a.begin(), b.bottom_a.end());
125 
126  bottomPMTs.insert(bottomPMTs.end(), b.bottom_b.begin(), b.bottom_b.end());
127 
128  bottomPMTs.insert(bottomPMTs.end(), b.bottom_c.begin(), b.bottom_c.end());
129 
130  break;
131 
132  case 4 :
133 
134  bottomPMTs.insert(bottomPMTs.end(), b.bottom_a.begin(), b.bottom_a.end());
135 
136  bottomPMTs.insert(bottomPMTs.end(), b.bottom_b.begin(), b.bottom_b.end());
137 
138  bottomPMTs.insert(bottomPMTs.end(), b.bottom_c.begin(), b.bottom_c.end());
139 
140  bottomPMTs.insert(bottomPMTs.end(), b.bottom_d.begin(), b.bottom_d.end());
141 
142  break;
143 
144  }
145 
146  return bottomPMTs ;
147 
148 }
pmt_clusters_bottom::bottom_d
vector< int > bottom_d
Definition: PMT_choice.hh:37
pmt_clusters_top::top_b
vector< int > top_b
Definition: PMT_choice.hh:16
pmt_clusters_bottom::bottom_a
vector< int > bottom_a
Definition: PMT_choice.hh:31
pmt_clusters_top
Definition: PMT_choice.hh:12
pmt_clusters_top::top_f
vector< int > top_f
Definition: PMT_choice.hh:24
pmt_clusters_top::top_d
vector< int > top_d
Definition: PMT_choice.hh:20
pmt_clusters_top::top_a
vector< int > top_a
Definition: PMT_choice.hh:14
pmt_clusters_top::top_e
vector< int > top_e
Definition: PMT_choice.hh:22
std::vector< int >
pmt_clusters_top::top_c
vector< int > top_c
Definition: PMT_choice.hh:18
pmt_clusters_bottom
Definition: PMT_choice.hh:29
pmt_clusters_bottom::bottom_b
vector< int > bottom_b
Definition: PMT_choice.hh:33
pmt_clusters_bottom::bottom_c
vector< int > bottom_c
Definition: PMT_choice.hh:35