Go to the documentation of this file. 1 #ifndef __HiEvtPlaneFlatten__
2 #define __HiEvtPlaneFlatten__
77 if (cut < 0 || cut >=
hbins_)
91 if (cut < 0 || cut >
hbins_)
123 pt2_[indx] += ptval * ptval;
136 double caloCentRefVal_ = 0;
137 for (
int i = refmin;
i <= refmax;
i++) {
140 caloCentRefVal_ /= refmax - refmin + 1.;
144 if (indx < 0 || caloCentRefVal_ == 0 ||
getPtDB(indx) == 0)
146 return caloCentRefVal_ /
getPtDB(indx);
156 return pt *
scale - pt2val / ptval;
193 if ((fabs(
s) < 1
e-4) && (fabs(
c) < 1
e-4))
252 while (ang < -
range) {
255 while (ang >
range) {
void setCentRes30(unsigned int bin, double res, double err)
double getCentResErr2(unsigned int bin) const
double getXYoffcnt(unsigned int bin) const
void setCaloCentRefBins(const int caloCentRefMinBin, const int caloCentRefMaxBin)
void setYDB(unsigned int indx, double val)
double getW(double pt, double vtx, int centbin) const
void setCentRes10(unsigned int bin, double res, double err)
static constexpr double minvtx_
double getCentResErr40(unsigned int bin) const
void setCentRes5(unsigned int bin, double res, double err)
double getPt2(unsigned int bin) const
void fillOffset(double s, double c, uint m, double vtx, int centbin)
static const int MAXCUTOFF
void setCentRes2(unsigned int bin, double res, double err)
void setCentRes1(unsigned int bin, double res, double err)
double getPt(unsigned int bin) const
void fill(double psi, double vtx, int centbin)
double getYoff(unsigned int bin) const
double getCentRes30(unsigned int bin) const
void setXoffDB(unsigned int indx, double val)
double getYoffDB(unsigned int bin) const
double getCentRes1(unsigned int bin) const
double getOffsetPsi(double s, double c) const
Sin< T >::type sin(const T &t)
double getX(unsigned int bin) const
double getFlatPsi(double psi, double vtx, int centbin) const
Cos< T >::type cos(const T &t)
void setCentRes40(unsigned int bin, double res, double err)
static constexpr int nvtxbins_
double getCoffset(double c, double vtx, int centbin) const
double getXoff(unsigned int bin) const
double getPtcnt(unsigned int bin) const
double getCentResErr25(unsigned int bin) const
double getXYoffmult(unsigned int bin) const
double getCentRes10(unsigned int bin) const
double xyoffcnt_[MAXCUTOFF]
void setYoffDB(unsigned int indx, double val)
double getCentRes20(unsigned int bin) const
double getCentResErr1(unsigned int bin) const
double getPtDB(unsigned int bin) const
double getCentRes25(unsigned int bin) const
int getCutIndx(int centbin, double vtx, int iord) const
double getSoffset(double s, double vtx, int centbin) const
void setPt2DB(unsigned int indx, double val)
void setCentRes25(unsigned int bin, double res, double err)
void setPtDB(unsigned int indx, double val)
double getCentResErr5(unsigned int bin) const
double getXDB(unsigned int bin) const
double getEtScale(double vtx, int centbin) const
double getY(unsigned int bin) const
void setCentRes20(unsigned int bin, double res, double err)
uint xyoffmult_[MAXCUTOFF]
double getCentResErr10(unsigned int bin) const
double bounds2(double ang) const
std::map< std::string, int, std::less< std::string > > psi
double getCentResErr30(unsigned int bin) const
double getCentRes40(unsigned int bin) const
double getCentRes5(unsigned int bin) const
double xoffDB_[MAXCUTOFF]
static constexpr double delvtx_
void fillPt(double ptval, double vtx, int centbin)
double getCentRes2(unsigned int bin) const
double getCnt(unsigned int bin) const
double bounds(double ang) const
double getPt2DB(unsigned int bin) const
void init(int order, int nbins, std::string tag, int vord)
Power< A, B >::type pow(const A &a, const B &b)
int getOffsetIndx(int centbin, double vtx) const
double yoffDB_[MAXCUTOFF]
double getYDB(unsigned int bin) const
double getCentResErr20(unsigned int bin) const
double getXoffDB(unsigned int bin) const
void setXDB(unsigned int indx, double val)