9 for(std::vector<float>::const_iterator it=vec.begin();it!=vec.end();it++)
18 const int maxInCol=25;
23 gridRows=(NbRows<=maxInCol)?NbRows:maxInCol;
24 NbColumns=ceil(1.0*NbRows/maxInCol)+1;
29 align =
new TH2F(title.c_str(),
"Ecal Function Parameters", NbColumns, 0, NbColumns, gridRows, 0, gridRows);
31 double row = gridRows - 0.5;
35 for(
int i=0;
i<gridRows;
i++){
36 align->Fill(0.5, gridRows-
i-0.5,
i+1);
40 for (std::vector<float>::const_iterator it =m_params.begin(); it != m_params.end();it++) {
41 if((*it)==0.0f)
continue;
42 align->Fill(column, row, *it);
45 column=floor(1.0*cnt/maxInCol)+1.5;
46 row=(row==0.5?(gridRows-0.5):row-1);
int countEmptyRows(std::vector< float > &vec)
void fillFunctionParamsValues(TH2F *&align, std::vector< float > &m_params, std::string title, int &gridRows, int &NbColumns)