Definition at line 28 of file LoadEPDB.h.
Definition at line 30 of file LoadEPDB.h.
33 int flatTableSize = flatparmsDB_->
m_table.size();
35 if (flatTableSize < flat[0]->getHBins() + 2 * flat[0]->getOBins()) {
41 for (
int i = 0;
i < flatTableSize;
i++) {
53 }
else if (
i >= Hbins &&
i < Hbins + Obins) {
56 }
else if (
i >= Hbins + Obins &&
i < Hbins + 2 * Obins) {
57 flat[indx]->
setPtDB(
i - Hbins - Obins, thisBin->
x[
j]);
58 flat[indx]->
setPt2DB(
i - Hbins - Obins, thisBin->
y[
j]);
64 while (flatTableSize > Hbins + 2 * Obins + cbins) {
66 double centbinning = thisBin->
x[0];
67 int ncentbins = (
int)thisBin->
y[0] + 0.01;
70 for (
int j = 0;
j < ncentbins;
j++) {
72 if (fabs(centbinning - 1.) < 0.01) {
77 if (fabs(centbinning - 2.) < 0.01) {
79 flat[
i]->setCentRes2(
j, thisBin->
x[
i], thisBin->
y[
i]);
81 if (fabs(centbinning - 5.) < 0.01) {
83 flat[
i]->setCentRes5(
j, thisBin->
x[
i], thisBin->
y[
i]);
85 if (fabs(centbinning - 10.) < 0.01) {
87 flat[
i]->setCentRes10(
j, thisBin->
x[
i], thisBin->
y[
i]);
89 if (fabs(centbinning - 20.) < 0.01) {
91 flat[
i]->setCentRes20(
j, thisBin->
x[
i], thisBin->
y[
i]);
93 if (fabs(centbinning - 25.) < 0.01) {
95 flat[
i]->setCentRes25(
j, thisBin->
x[
i], thisBin->
y[
i]);
97 if (fabs(centbinning - 30.) < 0.01) {
99 flat[
i]->setCentRes30(
j, thisBin->
x[
i], thisBin->
y[
i]);
101 if (fabs(centbinning - 40.) < 0.01) {
103 flat[
i]->setCentRes40(
j, thisBin->
x[
i], thisBin->
y[
i]);
107 cbins += ncentbins + 1;
References genFlatPsi_, HiEvtPlaneFlatten::getHBins(), HiEvtPlaneFlatten::getOBins(), mps_fire::i, if(), createfilelist::int, dqmiolumiharvest::j, RPFlatParams::m_table, hi::NumEPNames, RPFlatParams::EP::RPNameIndx, HiEvtPlaneFlatten::setCentRes1(), HiEvtPlaneFlatten::setPt2DB(), HiEvtPlaneFlatten::setPtDB(), HiEvtPlaneFlatten::setXDB(), HiEvtPlaneFlatten::setXoffDB(), HiEvtPlaneFlatten::setYDB(), HiEvtPlaneFlatten::setYoffDB(), RPFlatParams::EP::x, and RPFlatParams::EP::y.