26 int flatTableSize = flatparmsDB_.
m_table.size();
28 if (flatTableSize < flat[0]->getHBins() + 2 * flat[0]->getOBins()) {
34 for (
int i = 0;
i < flatTableSize;
i++) {
38 if (indx < 0 || indx >= hi::NumEPNames) {
46 }
else if (
i >= Hbins &&
i < Hbins + Obins) {
49 }
else if (
i >= Hbins + Obins &&
i < Hbins + 2 * Obins) {
50 flat[indx]->
setPtDB(
i - Hbins - Obins, thisBin->
x[
j]);
51 flat[indx]->
setPt2DB(
i - Hbins - Obins, thisBin->
y[
j]);
57 while (flatTableSize > Hbins + 2 * Obins + cbins) {
59 double centbinning = thisBin->
x[0];
60 int ncentbins = (int)thisBin->
y[0] + 0.01;
63 for (
int j = 0;
j < ncentbins;
j++) {
65 if (fabs(centbinning - 1.) < 0.01) {
70 if (fabs(centbinning - 2.) < 0.01) {
72 flat[
i]->setCentRes2(
j, thisBin->
x[
i], thisBin->
y[
i]);
74 if (fabs(centbinning - 5.) < 0.01) {
76 flat[
i]->setCentRes5(
j, thisBin->
x[
i], thisBin->
y[
i]);
78 if (fabs(centbinning - 10.) < 0.01) {
80 flat[
i]->setCentRes10(
j, thisBin->
x[
i], thisBin->
y[
i]);
82 if (fabs(centbinning - 20.) < 0.01) {
84 flat[
i]->setCentRes20(
j, thisBin->
x[
i], thisBin->
y[
i]);
86 if (fabs(centbinning - 25.) < 0.01) {
88 flat[
i]->setCentRes25(
j, thisBin->
x[
i], thisBin->
y[
i]);
90 if (fabs(centbinning - 30.) < 0.01) {
92 flat[
i]->setCentRes30(
j, thisBin->
x[
i], thisBin->
y[
i]);
94 if (fabs(centbinning - 40.) < 0.01) {
96 flat[
i]->setCentRes40(
j, thisBin->
x[
i], thisBin->
y[
i]);
100 cbins += ncentbins + 1;
void setCentRes1(unsigned int bin, double res, double err)
void setXoffDB(unsigned int indx, double val)
void setXDB(unsigned int indx, double val)
void setYDB(unsigned int indx, double val)
void setYoffDB(unsigned int indx, double val)
std::vector< EP > m_table
void setPt2DB(unsigned int indx, double val)
if(conf_.getParameter< bool >("UseStripCablingDB"))
void setPtDB(unsigned int indx, double val)
static const int NumEPNames