1 #ifndef RecoHI_HiEvtPlaneAlgos_LoadEPDB_h
2 #define RecoHI_HiEvtPlaneAlgos_LoadEPDB_h
35 int flatTableSize = flatparmsDB_->m_table.size();
37 if(flatTableSize<flat[0]->getHBins()+2*flat[0]->getOBins()) {
43 for(
int i = 0;
i<flatTableSize;
i++) {
47 if(indx<0||indx>=hi::NumEPNames) {
55 }
else if(
i>=Hbins &&
i<Hbins+Obins) {
59 }
else if (
i>=Hbins+Obins &&
i<Hbins+2*Obins) {
60 flat[indx]->
setPtDB(
i - Hbins- Obins, thisBin->
x[
j]);
61 flat[indx]->
setPt2DB(
i - Hbins- Obins, thisBin->
y[
j]);
67 while(flatTableSize>Hbins + 2*Obins + cbins) {
68 const RPFlatParams::EP* thisBin = &(flatparmsDB_->m_table[Hbins+2*Obins +cbins]);
69 double centbinning = thisBin->
x[0];
70 int ncentbins = (int) thisBin->
y[0]+0.01;
71 if(ncentbins==0)
break;
72 for(
int j = 0;
j< ncentbins;
j++) {
73 const RPFlatParams::EP* thisBin = &(flatparmsDB_->m_table[Hbins+2*Obins +cbins+
j+1]);
74 if(fabs(centbinning-1.)<0.01) {
77 if(fabs(centbinning-2.)<0.01) {
80 if(fabs(centbinning-5.)<0.01) {
83 if(fabs(centbinning-10.)<0.01) {
86 if(fabs(centbinning-20.)<0.01) {
89 if(fabs(centbinning-25.)<0.01) {
92 if(fabs(centbinning-30.)<0.01) {
95 if(fabs(centbinning-40.)<0.01) {
void setXoffDB(int indx, double val)
LoadEPDB(const edm::ESHandle< RPFlatParams > flatparmsDB_, HiEvtPlaneFlatten **flat)
void setPtDB(int indx, double val)
void setPt2DB(int indx, double val)
void setXDB(int indx, double val)
void setYoffDB(int indx, double val)
static const int NumEPNames
void setYDB(int indx, double val)