CMS 3D CMS Logo

HiEvtPlaneFlatten.h
Go to the documentation of this file.
1 #ifndef __HiEvtPlaneFlatten__
2 #define __HiEvtPlaneFlatten__
3 #include <memory>
4 #include <iostream>
5 #include <string>
6 
9 
12 
14 
17 
19 
20 #include <vector>
21 #include <cmath>
22 
23 //
24 // class declaration
25 //
26 
28 public:
29  explicit HiEvtPlaneFlatten() {
30  hbins_ = 1;
31  hOrder_ = 9;
32  vorder_ = 2; //sets default order of event plane
33  }
34 
35  void init(int order, int nbins, std::string tag, int vord) {
36  hOrder_ = order; //order of flattening
37  vorder_ = vord; //1(v1), 2(v2), 3(v3), 4(v4)
38  caloCentRefMinBin_ = -1;
39  caloCentRefMaxBin_ = -1;
42  if (hbins_ > MAXCUT) {
43  hbins_ = 1;
44  hOrder_ = 9;
45  }
46  for (int i = 0; i < hbins_; i++) {
47  flatX_[i] = 0;
48  flatY_[i] = 0;
49  flatXDB_[i] = 0;
50  flatYDB_[i] = 0;
51  flatCnt_[i] = 0;
52  }
53  for (int i = 0; i < obins_; i++) {
54  xoff_[i] = 0;
55  yoff_[i] = 0;
56  xoffDB_[i] = 0;
57  yoffDB_[i] = 0;
58  xyoffcnt_[i] = 0;
59  xyoffmult_[i] = 0;
60  pt_[i] = 0;
61  pt2_[i] = 0;
62  ptDB_[i] = 0;
63  pt2DB_[i] = 0;
64  ptcnt_[i] = 0;
65  }
66  }
67 
68  int getCutIndx(int centbin, double vtx, int iord) const {
69  int cut;
70  if (centbin < 0)
71  return -1;
72  int ibin = centbin;
73  int ivtx = (vtx - minvtx_) / delvtx_;
74  if (vtx < minvtx_ || ivtx >= nvtxbins_)
75  return -1;
76  cut = hOrder_ * nvtxbins_ * ibin + hOrder_ * ivtx + iord;
77  if (cut < 0 || cut >= hbins_)
78  return -1;
79  return cut;
80  }
81 
82  int getOffsetIndx(int centbin, double vtx) const {
83  int cut;
84  if (centbin < 0)
85  return -1;
86  int ibin = centbin;
87  int ivtx = (vtx - minvtx_) / delvtx_;
88  if (ivtx < 0 || ivtx > nvtxbins_)
89  return -1;
90  cut = nvtxbins_ * ibin + ivtx;
91  if (cut < 0 || cut > hbins_)
92  return -1;
93  return cut;
94  }
95 
96  void fill(double psi, double vtx, int centbin) {
97  if (fabs(psi) > 4)
98  return;
99  for (int k = 0; k < hOrder_; k++) {
100  double fsin = sin(vorder_ * (k + 1) * psi);
101  double fcos = cos(vorder_ * (k + 1) * psi);
102  int indx = getCutIndx(centbin, vtx, k);
103  if (indx >= 0) {
104  flatX_[indx] += fcos;
105  flatY_[indx] += fsin;
106  ++flatCnt_[indx];
107  }
108  }
109  }
110  void fillOffset(double s, double c, uint m, double vtx, int centbin) {
111  int indx = getOffsetIndx(centbin, vtx);
112  if (indx >= 0) {
113  xoff_[indx] += c;
114  yoff_[indx] += s;
115  xyoffmult_[indx] += m;
116  ++xyoffcnt_[indx];
117  }
118  }
119  void fillPt(double ptval, double vtx, int centbin) {
120  int indx = getOffsetIndx(centbin, vtx);
121  if (indx >= 0) {
122  pt_[indx] += ptval;
123  pt2_[indx] += ptval * ptval;
124  ++ptcnt_[indx];
125  }
126  }
127 
128  void setCaloCentRefBins(const int caloCentRefMinBin, const int caloCentRefMaxBin) {
129  caloCentRefMinBin_ = caloCentRefMinBin;
130  caloCentRefMaxBin_ = caloCentRefMaxBin;
131  }
132 
133  double getEtScale(double vtx, int centbin) const {
134  int refmin = getOffsetIndx(caloCentRefMinBin_, vtx);
135  int refmax = getOffsetIndx(caloCentRefMaxBin_, vtx);
136  double caloCentRefVal_ = 0;
137  for (int i = refmin; i <= refmax; i++) {
138  caloCentRefVal_ += getPtDB(i);
139  }
140  caloCentRefVal_ /= refmax - refmin + 1.;
141  if (caloCentRefMinBin_ < 0)
142  return 1.;
143  int indx = getOffsetIndx(centbin, vtx);
144  if (indx < 0 || caloCentRefVal_ == 0 || getPtDB(indx) == 0)
145  return 1.;
146  return caloCentRefVal_ / getPtDB(indx);
147  }
148 
149  double getW(double pt, double vtx, int centbin) const {
150  int indx = getOffsetIndx(centbin, vtx);
151  if (indx >= 0) {
152  double scale = getEtScale(vtx, centbin);
153  double ptval = getPtDB(indx) * scale;
154  double pt2val = getPt2DB(indx) * pow(scale, 2);
155  if (ptval > 0)
156  return pt * scale - pt2val / ptval;
157  }
158  return 0.;
159  }
160 
161  double getFlatPsi(double psi, double vtx, int centbin) const {
162  double correction = 0;
163  for (int k = 0; k < hOrder_; k++) {
164  int indx = getCutIndx(centbin, vtx, k);
165  if (indx >= 0)
166  correction += (2. / (double)((k + 1) * vorder_)) *
167  (flatXDB_[indx] * sin(vorder_ * (k + 1) * psi) - flatYDB_[indx] * cos(vorder_ * (k + 1) * psi));
168  }
169  psi += correction;
170  psi = bounds(psi);
171  psi = bounds2(psi);
172  return psi;
173  }
174 
175  double getSoffset(double s, double vtx, int centbin) const {
176  int indx = getOffsetIndx(centbin, vtx);
177  if (indx >= 0)
178  return s - yoffDB_[indx];
179  else
180  return s;
181  }
182 
183  double getCoffset(double c, double vtx, int centbin) const {
184  int indx = getOffsetIndx(centbin, vtx);
185  if (indx >= 0)
186  return c - xoffDB_[indx];
187  else
188  return c;
189  }
190 
191  double getOffsetPsi(double s, double c) const {
192  double psi = atan2(s, c) / vorder_;
193  if ((fabs(s) < 1e-4) && (fabs(c) < 1e-4))
194  psi = 0.;
195  psi = bounds(psi);
196  psi = bounds2(psi);
197  return psi;
198  }
199 
201  int getHBins() const { return hbins_; }
202  int getOBins() const { return obins_; }
203  int getNvtx() const { return nvtxbins_; }
204  double getVtxMin() const { return minvtx_; }
205  double getVtxMax() const { return minvtx_ + nvtxbins_ * delvtx_; }
206  int getNcent() const { return hbins_; }
207 
208  double getX(unsigned int bin) const { return flatX_[bin]; }
209  double getY(unsigned int bin) const { return flatY_[bin]; }
210  double getXoff(unsigned int bin) const { return xoff_[bin]; }
211  double getYoff(unsigned int bin) const { return yoff_[bin]; }
212  double getXoffDB(unsigned int bin) const { return xoffDB_[bin]; }
213  double getYoffDB(unsigned int bin) const { return yoffDB_[bin]; }
214  double getXYoffcnt(unsigned int bin) const { return xyoffcnt_[bin]; }
215  double getXYoffmult(unsigned int bin) const { return xyoffmult_[bin]; }
216  double getPt(unsigned int bin) const { return pt_[bin]; }
217  double getPt2(unsigned int bin) const { return pt2_[bin]; }
218  double getPtDB(unsigned int bin) const {
219  if (bin < MAXCUTOFF) {
220  return ptDB_[bin];
221  } else {
222  return 0.;
223  }
224  }
225  double getPt2DB(unsigned int bin) const {
226  if (bin < MAXCUTOFF) {
227  return pt2DB_[bin];
228  } else {
229  return 0.;
230  }
231  }
232  double getPtcnt(unsigned int bin) const { return ptcnt_[bin]; }
233  double getXDB(unsigned int bin) const { return flatXDB_[bin]; }
234  double getYDB(unsigned int bin) const { return flatYDB_[bin]; }
235 
236  double getCnt(unsigned int bin) const { return flatCnt_[bin]; }
237  void setXDB(unsigned int indx, double val) { flatXDB_[indx] = val; }
238  void setYDB(unsigned int indx, double val) { flatYDB_[indx] = val; }
239  void setXoffDB(unsigned int indx, double val) { xoffDB_[indx] = val; }
240  void setYoffDB(unsigned int indx, double val) { yoffDB_[indx] = val; }
241  void setPtDB(unsigned int indx, double val) { ptDB_[indx] = val; }
242  void setPt2DB(unsigned int indx, double val) { pt2DB_[indx] = val; }
243  double bounds(double ang) const {
244  if (ang < -M_PI)
245  ang += 2. * M_PI;
246  if (ang > M_PI)
247  ang -= 2. * M_PI;
248  return ang;
249  }
250  double bounds2(double ang) const {
251  double range = M_PI / (double)vorder_;
252  while (ang < -range) {
253  ang += 2 * range;
254  }
255  while (ang > range) {
256  ang -= 2 * range;
257  }
258  return ang;
259  }
260  void setCentRes1(unsigned int bin, double res, double err) {
261  if (bin < 100) {
262  centRes1_[bin] = res;
263  centResErr1_[bin] = err;
264  }
265  }
266  void setCentRes2(unsigned int bin, double res, double err) {
267  if (bin < 50) {
268  centRes2_[bin] = res;
269  centResErr2_[bin] = err;
270  }
271  }
272  void setCentRes5(unsigned int bin, double res, double err) {
273  if (bin < 20) {
274  centRes5_[bin] = res;
275  centResErr5_[bin] = err;
276  }
277  }
278  void setCentRes10(unsigned int bin, double res, double err) {
279  if (bin < 10) {
280  centRes10_[bin] = res;
281  centResErr10_[bin] = err;
282  }
283  }
284  void setCentRes20(unsigned int bin, double res, double err) {
285  if (bin < 5) {
286  centRes20_[bin] = res;
287  centResErr20_[bin] = err;
288  }
289  }
290  void setCentRes25(unsigned int bin, double res, double err) {
291  if (bin < 4) {
292  centRes25_[bin] = res;
293  centResErr25_[bin] = err;
294  }
295  }
296  void setCentRes30(unsigned int bin, double res, double err) {
297  if (bin < 3) {
298  centRes30_[bin] = res;
299  centResErr30_[bin] = err;
300  }
301  }
302  void setCentRes40(unsigned int bin, double res, double err) {
303  if (bin < 2) {
304  centRes40_[bin] = res;
305  centResErr40_[bin] = err;
306  }
307  }
308 
309  double getCentRes1(unsigned int bin) const {
310  if (bin < 100) {
311  return centRes1_[bin];
312  } else {
313  return 0.;
314  }
315  }
316  double getCentRes2(unsigned int bin) const {
317  if (bin < 50) {
318  return centRes2_[bin];
319  } else {
320  return 0.;
321  }
322  }
323  double getCentRes5(unsigned int bin) const {
324  if (bin < 20) {
325  return centRes5_[bin];
326  } else {
327  return 0.;
328  }
329  }
330  double getCentRes10(unsigned int bin) const {
331  if (bin < 10) {
332  return centRes10_[bin];
333  } else {
334  return 0.;
335  }
336  }
337  double getCentRes20(unsigned int bin) const {
338  if (bin < 5) {
339  return centRes20_[bin];
340  } else {
341  return 0.;
342  }
343  }
344  double getCentRes25(unsigned int bin) const {
345  if (bin < 4) {
346  return centRes25_[bin];
347  } else {
348  return 0.;
349  }
350  }
351  double getCentRes30(unsigned int bin) const {
352  if (bin < 3) {
353  return centRes30_[bin];
354  } else {
355  return 0.;
356  }
357  }
358  double getCentRes40(unsigned int bin) const {
359  if (bin < 2) {
360  return centRes40_[bin];
361  } else {
362  return 0.;
363  }
364  }
365 
366  double getCentResErr1(unsigned int bin) const {
367  if (bin < 100) {
368  return centResErr1_[bin];
369  } else {
370  return 0.;
371  }
372  }
373  double getCentResErr2(unsigned int bin) const {
374  if (bin < 50) {
375  return centResErr2_[bin];
376  } else {
377  return 0.;
378  }
379  }
380  double getCentResErr5(unsigned int bin) const {
381  if (bin < 20) {
382  return centResErr5_[bin];
383  } else {
384  return 0.;
385  }
386  }
387  double getCentResErr10(unsigned int bin) const {
388  if (bin < 10) {
389  return centResErr10_[bin];
390  } else {
391  return 0.;
392  }
393  }
394  double getCentResErr20(unsigned int bin) const {
395  if (bin < 5) {
396  return centResErr20_[bin];
397  } else {
398  return 0.;
399  }
400  }
401  double getCentResErr25(unsigned int bin) const {
402  if (bin < 4) {
403  return centResErr25_[bin];
404  } else {
405  return 0.;
406  }
407  }
408  double getCentResErr30(unsigned int bin) const {
409  if (bin < 3) {
410  return centResErr30_[bin];
411  } else {
412  return 0.;
413  }
414  }
415  double getCentResErr40(unsigned int bin) const {
416  if (bin < 2) {
417  return centResErr40_[bin];
418  } else {
419  return 0.;
420  }
421  }
422 
423 private:
424  static constexpr int nvtxbins_ = 10;
425  static constexpr double minvtx_ = -25.;
426  static constexpr double delvtx_ = 5.;
427  static const int MAXCUT = 10000;
428  static const int MAXCUTOFF = 1000;
429 
430  double flatX_[MAXCUT];
431  double flatY_[MAXCUT];
432  double flatXDB_[MAXCUT];
433  double flatYDB_[MAXCUT];
434  double flatCnt_[MAXCUT];
435 
436  double xoff_[MAXCUTOFF];
437  double yoff_[MAXCUTOFF];
442 
443  double pt_[MAXCUTOFF];
444  double pt2_[MAXCUTOFF];
445  double ptDB_[MAXCUTOFF];
446  double pt2DB_[MAXCUTOFF];
447  double ptcnt_[MAXCUTOFF];
448 
449  double centRes1_[100];
450  double centResErr1_[100];
451 
452  double centRes2_[50];
453  double centResErr2_[50];
454 
455  double centRes5_[20];
456  double centResErr5_[20];
457 
458  double centRes10_[10];
459  double centResErr10_[10];
460 
461  double centRes20_[5];
462  double centResErr20_[5];
463 
464  double centRes25_[4];
465  double centResErr25_[4];
466 
467  double centRes30_[3];
468  double centResErr30_[3];
469 
470  double centRes40_[2];
471  double centResErr40_[2];
472 
473  int hOrder_; //flattening order
474  int hbins_; //number of bins needed for flattening
475  int obins_; //number of (x,y) offset bins
476  int vorder_; //order of flattened event plane
477  int caloCentRefMinBin_; //min ref centrality bin for calo weight scale
478  int caloCentRefMaxBin_; //max ref centrality bin for calo weight scale
479 };
480 
481 #endif
HiEvtPlaneFlatten::setCentRes30
void setCentRes30(unsigned int bin, double res, double err)
Definition: HiEvtPlaneFlatten.h:296
EvtPlane.h
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
HiEvtPlaneFlatten::flatX_
double flatX_[MAXCUT]
Definition: HiEvtPlaneFlatten.h:430
Handle.h
HiEvtPlaneFlatten::ptDB_
double ptDB_[MAXCUTOFF]
Definition: HiEvtPlaneFlatten.h:445
HiEvtPlaneFlatten::centResErr5_
double centResErr5_[20]
Definition: HiEvtPlaneFlatten.h:456
mps_fire.i
i
Definition: mps_fire.py:355
HiEvtPlaneFlatten::getCentResErr2
double getCentResErr2(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:373
HiEvtPlaneFlatten::pt_
double pt_[MAXCUTOFF]
Definition: HiEvtPlaneFlatten.h:443
HiEvtPlaneFlatten::getXYoffcnt
double getXYoffcnt(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:214
HiEvtPlaneFlatten::setCaloCentRefBins
void setCaloCentRefBins(const int caloCentRefMinBin, const int caloCentRefMaxBin)
Definition: HiEvtPlaneFlatten.h:128
HiEvtPlaneFlatten::setYDB
void setYDB(unsigned int indx, double val)
Definition: HiEvtPlaneFlatten.h:238
HiEvtPlaneFlatten::centRes2_
double centRes2_[50]
Definition: HiEvtPlaneFlatten.h:452
EDProducer.h
TkAlMuonSelectors_cfi.cut
cut
Definition: TkAlMuonSelectors_cfi.py:5
ESHandle.h
HiEvtPlaneFlatten::getW
double getW(double pt, double vtx, int centbin) const
Definition: HiEvtPlaneFlatten.h:149
HiEvtPlaneFlatten::setCentRes10
void setCentRes10(unsigned int bin, double res, double err)
Definition: HiEvtPlaneFlatten.h:278
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
HiEvtPlaneFlatten::centRes1_
double centRes1_[100]
Definition: HiEvtPlaneFlatten.h:449
HiEvtPlaneFlatten::minvtx_
static constexpr double minvtx_
Definition: HiEvtPlaneFlatten.h:425
HiEvtPlaneFlatten::centRes20_
double centRes20_[5]
Definition: HiEvtPlaneFlatten.h:461
HiEvtPlaneFlatten
Definition: HiEvtPlaneFlatten.h:27
HiEvtPlaneFlatten::getCentResErr40
double getCentResErr40(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:415
HiEvtPlaneFlatten::setCentRes5
void setCentRes5(unsigned int bin, double res, double err)
Definition: HiEvtPlaneFlatten.h:272
HiEvtPlaneFlatten::getPt2
double getPt2(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:217
HiEvtPlaneFlatten::centRes40_
double centRes40_[2]
Definition: HiEvtPlaneFlatten.h:470
HiEvtPlaneFlatten::obins_
int obins_
Definition: HiEvtPlaneFlatten.h:475
HiEvtPlaneFlatten::fillOffset
void fillOffset(double s, double c, uint m, double vtx, int centbin)
Definition: HiEvtPlaneFlatten.h:110
HiEvtPlaneFlatten::MAXCUTOFF
static const int MAXCUTOFF
Definition: HiEvtPlaneFlatten.h:428
HiEvtPlaneFlatten::setCentRes2
void setCentRes2(unsigned int bin, double res, double err)
Definition: HiEvtPlaneFlatten.h:266
HiEvtPlaneFlatten::setCentRes1
void setCentRes1(unsigned int bin, double res, double err)
Definition: HiEvtPlaneFlatten.h:260
HiEvtPlaneFlatten::getPt
double getPt(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:216
HiEvtPlaneFlatten::fill
void fill(double psi, double vtx, int centbin)
Definition: HiEvtPlaneFlatten.h:96
HiEvtPlaneFlatten::getYoff
double getYoff(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:211
HiEvtPlaneFlatten::getCentRes30
double getCentRes30(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:351
HiEvtPlaneFlatten::MAXCUT
static const int MAXCUT
Definition: HiEvtPlaneFlatten.h:427
HiEvtPlaneFlatten::setXoffDB
void setXoffDB(unsigned int indx, double val)
Definition: HiEvtPlaneFlatten.h:239
HiEvtPlaneFlatten::getYoffDB
double getYoffDB(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:213
HiEvtPlaneFlatten::getCentRes1
double getCentRes1(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:309
parallelization.uint
uint
Definition: parallelization.py:124
HiEvtPlaneFlatten::getOffsetPsi
double getOffsetPsi(double s, double c) const
Definition: HiEvtPlaneFlatten.h:191
HiEvtPlaneFlatten::getNvtx
int getNvtx() const
Definition: HiEvtPlaneFlatten.h:203
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
HiEvtPlaneFlatten::getX
double getX(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:208
MakerMacros.h
HiEvtPlaneFlatten::getFlatPsi
double getFlatPsi(double psi, double vtx, int centbin) const
Definition: HiEvtPlaneFlatten.h:161
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HiEvtPlaneFlatten::ptcnt_
double ptcnt_[MAXCUTOFF]
Definition: HiEvtPlaneFlatten.h:447
HiEvtPlaneFlatten::centRes10_
double centRes10_[10]
Definition: HiEvtPlaneFlatten.h:458
HiEvtPlaneFlatten::hbins_
int hbins_
Definition: HiEvtPlaneFlatten.h:474
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
HiEvtPlaneFlatten::setCentRes40
void setCentRes40(unsigned int bin, double res, double err)
Definition: HiEvtPlaneFlatten.h:302
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
HiEvtPlaneFlatten::centResErr2_
double centResErr2_[50]
Definition: HiEvtPlaneFlatten.h:453
HiEvtPlaneFlatten::getVtxMax
double getVtxMax() const
Definition: HiEvtPlaneFlatten.h:205
HiEvtPlaneFlatten::nvtxbins_
static constexpr int nvtxbins_
Definition: HiEvtPlaneFlatten.h:424
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
dqmdumpme.k
k
Definition: dqmdumpme.py:60
HiEvtPlaneFlatten::centResErr20_
double centResErr20_[5]
Definition: HiEvtPlaneFlatten.h:462
HiEvtPlaneFlatten::getCoffset
double getCoffset(double c, double vtx, int centbin) const
Definition: HiEvtPlaneFlatten.h:183
HiEvtPlaneFlatten::getXoff
double getXoff(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:210
HiEvtPlaneFlatten::xoff_
double xoff_[MAXCUTOFF]
Definition: HiEvtPlaneFlatten.h:436
HiEvtPlaneFlatten::getPtcnt
double getPtcnt(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:232
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition: badGlobalMuonTaggersAOD_cff.py:5
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HiEvtPlaneFlatten::getCentResErr25
double getCentResErr25(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:401
HiEvtPlaneFlatten::getXYoffmult
double getXYoffmult(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:215
HiEvtPlaneFlatten::getCentRes10
double getCentRes10(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:330
Scenarios_cff.scale
scale
Definition: Scenarios_cff.py:2186
HiEvtPlaneFlatten::xyoffcnt_
double xyoffcnt_[MAXCUTOFF]
Definition: HiEvtPlaneFlatten.h:440
HiEvtPlaneFlatten::setYoffDB
void setYoffDB(unsigned int indx, double val)
Definition: HiEvtPlaneFlatten.h:240
HiEvtPlaneFlatten::getCentRes20
double getCentRes20(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:337
Event.h
HiEvtPlaneFlatten::getCentResErr1
double getCentResErr1(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:366
runTheMatrix.err
err
Definition: runTheMatrix.py:288
HiEvtPlaneFlatten::getPtDB
double getPtDB(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:218
HiEvtPlaneFlatten::getCentRes25
double getCentRes25(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:344
pfMETCorrectionType0_cfi.correction
correction
Definition: pfMETCorrectionType0_cfi.py:39
HiEvtPlaneFlatten::getCutIndx
int getCutIndx(int centbin, double vtx, int iord) const
Definition: HiEvtPlaneFlatten.h:68
HiEvtPlaneFlatten::yoff_
double yoff_[MAXCUTOFF]
Definition: HiEvtPlaneFlatten.h:437
HiEvtPlaneFlatten::getNcent
int getNcent() const
Definition: HiEvtPlaneFlatten.h:206
HiEvtPlaneFlatten::centResErr25_
double centResErr25_[4]
Definition: HiEvtPlaneFlatten.h:465
HiEvtPlaneFlatten::getSoffset
double getSoffset(double s, double vtx, int centbin) const
Definition: HiEvtPlaneFlatten.h:175
eventshapeDQM_cfi.order
order
Definition: eventshapeDQM_cfi.py:8
HiEvtPlaneFlatten::setPt2DB
void setPt2DB(unsigned int indx, double val)
Definition: HiEvtPlaneFlatten.h:242
HiEvtPlaneFlatten::setCentRes25
void setCentRes25(unsigned int bin, double res, double err)
Definition: HiEvtPlaneFlatten.h:290
HiEvtPlaneFlatten::setPtDB
void setPtDB(unsigned int indx, double val)
Definition: HiEvtPlaneFlatten.h:241
HiEvtPlaneFlatten::caloCentRefMaxBin_
int caloCentRefMaxBin_
Definition: HiEvtPlaneFlatten.h:478
HiEvtPlaneFlatten::getCentResErr5
double getCentResErr5(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:380
HiEvtPlaneFlatten::HiEvtPlaneFlatten
HiEvtPlaneFlatten()
Definition: HiEvtPlaneFlatten.h:29
M_PI
#define M_PI
Definition: BXVectorInputProducer.cc:50
HiEvtPlaneFlatten::hOrder_
int hOrder_
Definition: HiEvtPlaneFlatten.h:473
HiEvtPlaneFlatten::centRes30_
double centRes30_[3]
Definition: HiEvtPlaneFlatten.h:467
HiEvtPlaneFlatten::getXDB
double getXDB(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:233
HiEvtPlaneFlatten::getOBins
int getOBins() const
Definition: HiEvtPlaneFlatten.h:202
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
HiEvtPlaneFlatten::flatYDB_
double flatYDB_[MAXCUT]
Definition: HiEvtPlaneFlatten.h:433
HiEvtPlaneFlatten::centResErr40_
double centResErr40_[2]
Definition: HiEvtPlaneFlatten.h:471
res
Definition: Electron.h:6
HiEvtPlaneFlatten::centResErr10_
double centResErr10_[10]
Definition: HiEvtPlaneFlatten.h:459
HiEvtPlaneFlatten::centRes5_
double centRes5_[20]
Definition: HiEvtPlaneFlatten.h:455
HiEvtPlaneFlatten::flatXDB_
double flatXDB_[MAXCUT]
Definition: HiEvtPlaneFlatten.h:432
HiEvtPlaneFlatten::getEtScale
double getEtScale(double vtx, int centbin) const
Definition: HiEvtPlaneFlatten.h:133
HiEvtPlaneFlatten::getY
double getY(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:209
HiEvtPlaneFlatten::setCentRes20
void setCentRes20(unsigned int bin, double res, double err)
Definition: HiEvtPlaneFlatten.h:284
HiEvtPlaneFlatten::xyoffmult_
uint xyoffmult_[MAXCUTOFF]
Definition: HiEvtPlaneFlatten.h:441
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
HiEvtPlaneFlatten::flatY_
double flatY_[MAXCUT]
Definition: HiEvtPlaneFlatten.h:431
HiEvtPlaneFlatten::getCentResErr10
double getCentResErr10(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:387
HiEvtPlaneFlatten::bounds2
double bounds2(double ang) const
Definition: HiEvtPlaneFlatten.h:250
psi
std::map< std::string, int, std::less< std::string > > psi
Definition: CountProcessesAction.h:15
HiEvtPlaneFlatten::getHBins
int getHBins() const
Definition: HiEvtPlaneFlatten.h:201
HiEvtPlaneFlatten::getCentResErr30
double getCentResErr30(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:408
HiEvtPlaneFlatten::caloCentRefMinBin_
int caloCentRefMinBin_
Definition: HiEvtPlaneFlatten.h:477
heppy_batch.val
val
Definition: heppy_batch.py:351
HiEvtPlaneFlatten::getCentRes40
double getCentRes40(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:358
HiEvtPlaneFlatten::getCentRes5
double getCentRes5(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:323
HiEvtPlaneFlatten::xoffDB_
double xoffDB_[MAXCUTOFF]
Definition: HiEvtPlaneFlatten.h:438
HiEvtPlaneFlatten::getVtxMin
double getVtxMin() const
Definition: HiEvtPlaneFlatten.h:204
HiEvtPlaneFlatten::delvtx_
static constexpr double delvtx_
Definition: HiEvtPlaneFlatten.h:426
Frameworkfwd.h
HiEvtPlaneFlatten::fillPt
void fillPt(double ptval, double vtx, int centbin)
Definition: HiEvtPlaneFlatten.h:119
HiEvtPlaneFlatten::getCentRes2
double getCentRes2(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:316
HiEvtPlaneFlatten::getCnt
double getCnt(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:236
HiEvtPlaneFlatten::bounds
double bounds(double ang) const
Definition: HiEvtPlaneFlatten.h:243
HiEvtPlaneFlatten::flatCnt_
double flatCnt_[MAXCUT]
Definition: HiEvtPlaneFlatten.h:434
HiEvtPlaneFlatten::vorder_
int vorder_
Definition: HiEvtPlaneFlatten.h:476
HiEvtPlaneFlatten::getPt2DB
double getPt2DB(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:225
HiEvtPlaneFlatten::pt2DB_
double pt2DB_[MAXCUTOFF]
Definition: HiEvtPlaneFlatten.h:446
HiEvtPlaneFlatten::init
void init(int order, int nbins, std::string tag, int vord)
Definition: HiEvtPlaneFlatten.h:35
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
HiEvtPlaneFlatten::centResErr1_
double centResErr1_[100]
Definition: HiEvtPlaneFlatten.h:450
ParameterSet.h
HiEvtPlaneFlatten::getOffsetIndx
int getOffsetIndx(int centbin, double vtx) const
Definition: HiEvtPlaneFlatten.h:82
HiEvtPlaneFlatten::~HiEvtPlaneFlatten
~HiEvtPlaneFlatten()
Definition: HiEvtPlaneFlatten.h:200
HiEvtPlaneFlatten::pt2_
double pt2_[MAXCUTOFF]
Definition: HiEvtPlaneFlatten.h:444
HiEvtPlaneFlatten::yoffDB_
double yoffDB_[MAXCUTOFF]
Definition: HiEvtPlaneFlatten.h:439
HiEvtPlaneFlatten::centResErr30_
double centResErr30_[3]
Definition: HiEvtPlaneFlatten.h:468
HiEvtPlaneFlatten::getYDB
double getYDB(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:234
HiEvtPlaneFlatten::getCentResErr20
double getCentResErr20(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:394
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HiEvtPlaneFlatten::getXoffDB
double getXoffDB(unsigned int bin) const
Definition: HiEvtPlaneFlatten.h:212
HiEvtPlaneFlatten::centRes25_
double centRes25_[4]
Definition: HiEvtPlaneFlatten.h:464
HiEvtPlaneFlatten::setXDB
void setXDB(unsigned int indx, double val)
Definition: HiEvtPlaneFlatten.h:237