1 #ifndef __HiEvtPlaneFlatten__ 2 #define __HiEvtPlaneFlatten__ 79 if (cut < 0 || cut >=
hbins_)
93 if (cut < 0 || cut >
hbins_)
125 pt2_[indx] += ptval * ptval;
138 double caloCentRefVal_ = 0;
139 for (
int i = refmin;
i <= refmax;
i++) {
142 caloCentRefVal_ /= refmax - refmin + 1.;
146 if (indx < 0 || caloCentRefVal_ == 0 ||
getPtDB(indx) == 0)
148 return caloCentRefVal_ /
getPtDB(indx);
157 double rv =
pt *
scale - pt2val / ptval;
197 if ((fabs(
s) < 1
e-4) && (fabs(
c) < 1
e-4))
206 return ibin * 100. /
nbins_;
211 return (ibin + 1) * 100. /
nbins_;
282 while (ang < -
range) {
285 while (ang >
range) {
double getCentResErr40(unsigned int bin) const
double xoffDB_[MAXCUTOFF]
void fillOffset(double s, double c, uint m, double vtx, int centbin)
static const int MAXCUTOFF
double offsetPsi(double s, double c) const
double minVtx(int indx) const
void setCentRes1(unsigned int bin, double res, double err)
double getCentRes2(unsigned int bin) const
double bounds(double ang) const
void setXoffDB(unsigned int indx, double val)
void setXDB(unsigned int indx, double val)
Sin< T >::type sin(const T &t)
double yoffDB_[MAXCUTOFF]
void setCaloCentRefBins(const int caloCentRefMinBin, const int caloCentRefMaxBin)
double getPtcnt(unsigned int bin) const
void setYDB(unsigned int indx, double val)
double getXoffDB(unsigned int bin) const
double getW(double pt, double vtx, int centbin) const
double getCentResErr25(unsigned int bin) const
void setCentRes30(unsigned int bin, double res, double err)
double getCentResErr1(unsigned int bin) const
std::map< std::string, int, std::less< std::string > > psi
float minCent(int indx) const
int cutIndx(int centbin, double vtx, int iord) const
void setCentRes5(unsigned int bin, double res, double err)
double getXoff(unsigned int bin) const
void setCentRes25(unsigned int bin, double res, double err)
double getCentRes10(unsigned int bin) const
double getYoff(unsigned int bin) const
double getCentRes30(unsigned int bin) const
void setYoffDB(unsigned int indx, double val)
double getPt2(unsigned int bin) const
double maxVtx(int indx) const
void setPt2DB(unsigned int indx, double val)
void setCentRes2(unsigned int bin, double res, double err)
double getPt(unsigned int bin) const
double getCentResErr10(unsigned int bin) const
float maxCent(int indx) const
double getX(unsigned int bin) const
void fill(double psi, double vtx, int centbin)
double getCentResErr30(unsigned int bin) const
int offsetIndx(int centbin, double vtx) const
std::string rangeString(int indx)
Cos< T >::type cos(const T &t)
double getFlatPsi(double psi, double vtx, int centbin) const
double getCentRes5(unsigned int bin) const
double getYoffDB(unsigned int bin) const
double getCentRes1(unsigned int bin) const
double getY(unsigned int bin) const
double coffset(double c, double vtx, int centbin) const
uint xyoffmult_[MAXCUTOFF]
double getCnt(unsigned int bin) const
double getCentRes40(unsigned int bin) const
void init(int order, int nbins, int nvtxbins=10, double minvtx=-25, double delvtx=5, std::string tag="", int vord=2)
double etScale(double vtx, int centbin) const
void setCentRes40(unsigned int bin, double res, double err)
double getPt2DB(unsigned int bin) const
double soffset(double s, double vtx, int centbin) const
double getYDB(unsigned int bin) const
double getXYoffmult(unsigned int bin) const
double getCentResErr5(unsigned int bin) const
double xyoffcnt_[MAXCUTOFF]
double getCentRes20(unsigned int bin) const
double getXDB(unsigned int bin) const
double getXYoffcnt(unsigned int bin) const
double getCentResErr20(unsigned int bin) const
double getPtDB(unsigned int bin) const
double getCentRes25(unsigned int bin) const
void setCentRes20(unsigned int bin, double res, double err)
void setCentRes10(unsigned int bin, double res, double err)
void setPtDB(unsigned int indx, double val)
double bounds2(double ang) const
double getCentResErr2(unsigned int bin) const
Power< A, B >::type pow(const A &a, const B &b)
void fillPt(double ptval, double vtx, int centbin)
MPlex< T, D1, D2, N > atan2(const MPlex< T, D1, D2, N > &y, const MPlex< T, D1, D2, N > &x)