1 #ifndef __HiEvtPlaneFlatten__
2 #define __HiEvtPlaneFlatten__
79 int cutIndx(
int centbin,
double vtx,
int iord)
const {
88 if (cut < 0 || cut >=
hbins_)
101 cut = nvtxbins_ * ibin + ivtx;
102 if (cut < 0 || cut >
hbins_)
107 void fill(
double psi,
double vtx,
int centbin) {
113 int indx =
cutIndx(centbin, vtx,
k);
130 void fillPt(
double ptval,
double vtx,
int centbin) {
134 pt2_[indx] += ptval * ptval;
144 double etScale(
double vtx,
int centbin)
const {
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);
160 double getW(
double pt,
double vtx,
int centbin)
const {
166 double rv = pt * scale - pt2val / ptval;
176 int indx =
cutIndx(centbin, vtx,
k);
178 correction += (2. / (double)((
k + 1) *
vorder_)) *
187 double soffset(
double s,
double vtx,
int centbin)
const {
196 double coffset(
double c,
double vtx,
int centbin)
const {
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) {
double getCentResErr25(unsigned int bin) const
double xoffDB_[MAXCUTOFF]
void fillOffset(double s, double c, uint m, double vtx, int centbin)
static const int MAXCUTOFF
double getPt2DB(unsigned int bin) const
void setCentRes1(unsigned int bin, double res, double err)
const edm::EventSetup & c
double bounds(double ang) const
void setXoffDB(unsigned int indx, double val)
double getPtDB(unsigned int bin) const
double getXYoffmult(unsigned int bin) const
void setXDB(unsigned int indx, double val)
double getXYoffcnt(unsigned int bin) const
double getPtcnt(unsigned int bin) const
double getCentResErr5(unsigned int bin) const
double getY(unsigned int bin) const
Sin< T >::type sin(const T &t)
double yoffDB_[MAXCUTOFF]
double getYoffDB(unsigned int bin) const
double getCentRes30(unsigned int bin) const
void setCaloCentRefBins(const int caloCentRefMinBin, const int caloCentRefMaxBin)
void setYDB(unsigned int indx, double val)
double getCentRes1(unsigned int bin) const
void setCentRes30(unsigned int bin, double res, double err)
double getCentResErr40(unsigned int bin) const
double offsetPsi(double s, double c) const
double getCnt(unsigned int bin) const
std::map< std::string, int, std::less< std::string > > psi
double getCentResErr30(unsigned int bin) const
void setCentRes5(unsigned int bin, double res, double err)
double getCentRes40(unsigned int bin) const
const uint16_t range(const Frame &aFrame)
void setCentRes25(unsigned int bin, double res, double err)
double minVtx(int indx) const
void setYoffDB(unsigned int indx, double val)
double getCentResErr1(unsigned int bin) const
float maxCent(int indx) const
double getCentResErr20(unsigned int bin) const
void setPt2DB(unsigned int indx, double val)
double getCentRes10(unsigned int bin) const
void setCentRes2(unsigned int bin, double res, double err)
double soffset(double s, double vtx, int centbin) const
double bounds2(double ang) const
double coffset(double c, double vtx, int centbin) const
void fill(double psi, double vtx, int centbin)
std::string rangeString(int indx)
Cos< T >::type cos(const T &t)
double getPt2(unsigned int bin) const
double maxVtx(int indx) const
uint xyoffmult_[MAXCUTOFF]
double getXoff(unsigned int bin) const
double etScale(double vtx, int centbin) const
double getCentRes20(unsigned int bin) const
double getFlatPsi(double psi, double vtx, int centbin) const
double getYoff(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)
void setCentRes40(unsigned int bin, double res, double err)
double getW(double pt, double vtx, int centbin) const
double getYDB(unsigned int bin) const
double getCentResErr2(unsigned int bin) const
constexpr float correction(int sizeM1, int q_f, int q_l, uint16_t upper_edge_first_pix, uint16_t lower_edge_last_pix, float lorentz_shift, float theThickness, float cot_angle, float pitch, bool first_is_big, bool last_is_big)
double getCentRes5(unsigned int bin) const
double getCentRes25(unsigned int bin) const
double xyoffcnt_[MAXCUTOFF]
double getX(unsigned int bin) const
double getCentRes2(unsigned int bin) const
double getPt(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 getXoffDB(unsigned int bin) const
double getXDB(unsigned int bin) const
int offsetIndx(int centbin, double vtx) const
Power< A, B >::type pow(const A &a, const B &b)
float minCent(int indx) const
void fillPt(double ptval, double vtx, int centbin)
int cutIndx(int centbin, double vtx, int iord) const
double getCentResErr10(unsigned int bin) const