1 #ifndef RecoHI_HiEvtPlaneAlgos_LoadEPDB_h 2 #define RecoHI_HiEvtPlaneAlgos_LoadEPDB_h 37 int flatTableSize = flatparmsDB_->
m_table.size();
39 if(flatTableSize<flat[0]->getHBins()+2*flat[0]->getOBins()) {
45 for(
int i = 0;
i<flatTableSize;
i++) {
49 if(indx<0||indx>=hi::NumEPNames) {
55 flat[indx]->
setXDB(
i, thisBin->
x[j]);
56 flat[indx]->
setYDB(
i, thisBin->
y[j]);
57 }
else if(
i>=Hbins &&
i<Hbins+Obins) {
61 }
else if (
i>=Hbins+Obins &&
i<Hbins+2*Obins) {
62 flat[indx]->
setPtDB(
i - Hbins- Obins, thisBin->
x[j]);
63 flat[indx]->
setPt2DB(
i - Hbins- Obins, thisBin->
y[j]);
69 while(flatTableSize>Hbins + 2*Obins + cbins) {
71 double centbinning = thisBin->
x[0];
72 int ncentbins = (
int) thisBin->
y[0]+0.01;
73 if(ncentbins==0)
break;
74 for(
int j = 0; j< ncentbins; j++) {
76 if(fabs(centbinning-1.)<0.01) {
79 if(fabs(centbinning-2.)<0.01) {
82 if(fabs(centbinning-5.)<0.01) {
85 if(fabs(centbinning-10.)<0.01) {
88 if(fabs(centbinning-20.)<0.01) {
91 if(fabs(centbinning-25.)<0.01) {
94 if(fabs(centbinning-30.)<0.01) {
97 if(fabs(centbinning-40.)<0.01) {
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)
LoadEPDB(const edm::ESHandle< RPFlatParams > flatparmsDB_, HiEvtPlaneFlatten **flat)
void setPtDB(unsigned int indx, double val)
static const int NumEPNames