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