Definition at line 143 of file TRTCalib_bhadd.cxx.
◆ CompBHist() [1/2]
| CompBHist::CompBHist |
( |
int | sid, |
|
|
const std::vector< int > & | uchist, |
|
|
int | ntbins, |
|
|
int | nrbins ) |
Definition at line 160 of file TRTCalib_bhadd.cxx.
161{
162
163 id = sid;
165 std::vector<std::vector<int>>
tmp(2, std::vector<int>(ntbins * nrbins + 200, 0));
166
167 for (int ibin = 0; ibin < ntbins * nrbins + 200; ibin++)
168 {
169 if (uchist.at(ibin) > 0)
170 {
172 tmp.at(1).at(
npop) = uchist.at(ibin);
174 }
175 }
176
180 for (
int ipop = 0; ipop <
npop; ipop++)
181 {
182 hist[ipop * 2 + 1] =
tmp.at(0).at(ipop);
183 hist[ipop * 2 + 2] =
tmp.at(1).at(ipop);
184 }
185}
◆ ~CompBHist()
| CompBHist::~CompBHist |
( |
| ) |
|
◆ CompBHist() [2/2]
◆ GetStat()
| int CompBHist::GetStat |
( |
int | val | ) |
|
Definition at line 208 of file TRTCalib_bhadd.cxx.
209{
210
215
216 for (
int ipop = 0; ipop < 2 *
npop; ipop = ipop + 2)
217 {
218 if (
hist[ipop] < 100)
220 else if (
hist[ipop] >= 100 &&
hist[ipop] < 200)
222 else
224 }
225
227}
◆ operator=()
◆ Print()
Definition at line 192 of file TRTCalib_bhadd.cxx.
193{
194
195 cout <<
npop <<
" " <<
id <<
" ";
196 for (
int ipop = 0; ipop < 2 *
npop + 2; ipop++)
197 cout <<
hist[ipop] <<
" ";
198 cout << endl;
199 return 0;
200}
◆ Write()
| void CompBHist::Write |
( |
ofstream * | file | ) |
|
◆ hist
◆ id
◆ npop
The documentation for this class was generated from the following file: