Go to the documentation of this file. 1 #ifndef __HiEvtPlaneFlatten__
2 #define __HiEvtPlaneFlatten__
88 if (cut < 0 || cut >=
hbins_)
102 if (cut < 0 || cut >
hbins_)
134 pt2_[indx] += ptval * ptval;
147 double caloCentRefVal_ = 0;
148 for (
int i = refmin;
i <= refmax;
i++) {
151 caloCentRefVal_ /= refmax - refmin + 1.;
155 if (indx < 0 || caloCentRefVal_ == 0 ||
getPtDB(indx) == 0)
157 return caloCentRefVal_ /
getPtDB(indx);
166 double rv =
pt *
scale - pt2val / ptval;
206 if ((fabs(
s) < 1
e-4) && (fabs(
c) < 1
e-4))
215 return ibin * 100. /
nbins_;
220 return (ibin + 1) * 100. /
nbins_;
291 while (ang < -
range) {
294 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)
double getCentResErr40(unsigned int bin) const
float minCent(int indx) const
int cutIndx(int centbin, double vtx, int iord) 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
int offsetIndx(int centbin, double vtx) const
std::string rangeString(int indx)
void setXoffDB(unsigned int indx, double val)
double getYoffDB(unsigned int bin) const
double getCentRes1(unsigned int bin) const
double maxVtx(int indx) 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)
double coffset(double c, double vtx, int centbin) const
double soffset(double s, double vtx, int centbin) const
double getXoff(unsigned int bin) const
double etScale(double vtx, int centbin) 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
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 getY(unsigned int bin) const
void setCentRes20(unsigned int bin, double res, double err)
uint xyoffmult_[MAXCUTOFF]
double getCentResErr10(unsigned int bin) const
float maxCent(int indx) 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]
double minVtx(int indx) const
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
Power< A, B >::type pow(const A &a, const B &b)
void init(int order, int nbins, int nvtxbins=10, double minvtx=-25, double delvtx=5, std::string tag="", int vord=2)
double offsetPsi(double s, double c) 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)