Definition at line 142 of file TRTCalib_bhadd.cxx.
◆ CompBHist() [1/2]
CompBHist::CompBHist |
( |
int |
sid, |
|
|
const std::vector< int > & |
uchist, |
|
|
int |
ntbins, |
|
|
int |
nrbins |
|
) |
| |
Definition at line 159 of file TRTCalib_bhadd.cxx.
164 std::vector<std::vector<int>>
tmp(2, std::vector<int>(ntbins * nrbins + 200, 0));
166 for (
int ibin = 0; ibin < ntbins * nrbins + 200; ibin++)
168 if (uchist.at(ibin) > 0)
171 tmp.at(1).at(
npop) = uchist.at(ibin);
179 for (
int ipop = 0; ipop <
npop; ipop++)
181 hist[ipop * 2 + 1] =
tmp.at(0).at(ipop);
182 hist[ipop * 2 + 2] =
tmp.at(1).at(ipop);
◆ ~CompBHist()
CompBHist::~CompBHist |
( |
| ) |
|
◆ CompBHist() [2/2]
◆ GetStat()
int CompBHist::GetStat |
( |
int |
val | ) |
|
Definition at line 206 of file TRTCalib_bhadd.cxx.
214 for (
int ipop = 0; ipop < 2 *
npop; ipop = ipop + 2)
216 if (
hist[ipop] < 100)
218 else if (
hist[ipop] >= 100 &&
hist[ipop] < 200)
◆ operator=()
◆ Print()
Definition at line 191 of file TRTCalib_bhadd.cxx.
194 cout <<
npop <<
" " <<
id <<
" ";
195 for (
int ipop = 0; ipop < 2 *
npop + 2; ipop++)
196 cout <<
hist[ipop] <<
" ";
◆ Write()
void CompBHist::Write |
( |
ofstream * |
file | ) |
|
◆ hist
◆ id
◆ npop
The documentation for this class was generated from the following file: