7 for (std::vector<float>::const_iterator
it = vec.begin();
it != vec.end();
it++)
16 const int maxInCol = 25;
21 gridRows = (NbRows <= maxInCol) ? NbRows : maxInCol;
22 NbColumns =
ceil(1.0 * NbRows / maxInCol) + 1;
27 align =
new TH2F(
title.c_str(),
"Ecal Function Parameters", NbColumns, 0, NbColumns, gridRows, 0, gridRows);
29 double row = gridRows - 0.5;
33 for (
int i = 0;
i < gridRows;
i++) {
34 align->Fill(0.5, gridRows -
i - 0.5,
i + 1);
37 for (std::vector<float>::const_iterator
it = m_params.begin();
it != m_params.end();
it++) {
43 column = floor(1.0 * cnt / maxInCol) + 1.5;
44 row = (row == 0.5 ? (gridRows - 0.5) : row - 1);
constexpr int32_t ceil(float num)
int countEmptyRows(std::vector< float > &vec)
void fillFunctionParamsValues(TH2F *&align, std::vector< float > &m_params, std::string title, int &gridRows, int &NbColumns)